pub struct RasterizationState {
pub depth_clamp_enable: bool,
pub rasterizer_discard_enable: bool,
pub polygon_mode: PolygonMode,
pub cull_mode: CullModeFlags,
pub front_face: FrontFace,
pub depth_bias_enable: bool,
pub depth_bias_constant_factor: f32,
pub depth_bias_clamp: f32,
pub depth_bias_slope_factor: f32,
pub flags: PipelineRasterizationStateCreateFlags,
pub line_width: f32,
}Fields§
§depth_clamp_enable: bool§rasterizer_discard_enable: bool§polygon_mode: PolygonMode§cull_mode: CullModeFlags§front_face: FrontFace§depth_bias_enable: bool§depth_bias_constant_factor: f32§depth_bias_clamp: f32§depth_bias_slope_factor: f32§flags: PipelineRasterizationStateCreateFlags§line_width: f32Implementations§
Source§impl RasterizationState
impl RasterizationState
pub fn default() -> Self
pub fn with_depth_clamp_enable(self, enable: bool) -> Self
pub fn with_rasterizer_discard_enable(self, enable: bool) -> Self
pub fn with_polygon_mode(self, mode: PolygonMode) -> Self
pub fn with_cull_mode(self, mode: CullModeFlags) -> Self
pub fn with_front_face(self, face: FrontFace) -> Self
pub fn with_depth_bias_enable(self, enable: bool) -> Self
pub fn with_depth_bias( self, constant_factor: f32, clamp: f32, slope_factor: f32, ) -> Self
pub fn with_flags(self, flags: PipelineRasterizationStateCreateFlags) -> Self
pub fn with_line_width(self, width: f32) -> Self
pub fn to_vk_rasterization_state( &self, ) -> PipelineRasterizationStateCreateInfo<'_>
Auto Trait Implementations§
impl Freeze for RasterizationState
impl RefUnwindSafe for RasterizationState
impl Send for RasterizationState
impl Sync for RasterizationState
impl Unpin for RasterizationState
impl UnsafeUnpin for RasterizationState
impl UnwindSafe for RasterizationState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more