pub struct RasterizerDesc(/* private fields */);Expand description
Wrapper around D3D12_RASTERIZER_DESC structure
Implementations§
Source§impl RasterizerDesc
impl RasterizerDesc
pub fn set_fill_mode(&mut self, fill_mode: FillMode) -> &mut Self
pub fn with_fill_mode(self, fill_mode: FillMode) -> Self
pub fn fill_mode(&self) -> FillMode
pub fn set_cull_mode(&mut self, cull_mode: CullMode) -> &mut Self
pub fn with_cull_mode(self, cull_mode: CullMode) -> Self
pub fn cull_mode(&self) -> CullMode
pub fn set_front_counter_clockwise( &mut self, front_counter_clockwise: bool, ) -> &mut Self
pub fn with_front_counter_clockwise(self, front_counter_clockwise: bool) -> Self
pub fn front_counter_clockwise(&self) -> bool
pub fn set_depth_bias(&mut self, depth_bias: i32) -> &mut Self
pub fn with_depth_bias(self, depth_bias: i32) -> Self
pub fn depth_bias(&self) -> i32
pub fn set_depth_bias_clamp(&mut self, depth_bias_clamp: f32) -> &mut Self
pub fn with_depth_bias_clamp(self, depth_bias_clamp: f32) -> Self
pub fn depth_bias_clamp(&self) -> f32
pub fn set_slope_scaled_depth_bias( &mut self, slope_scaled_depth_bias: f32, ) -> &mut Self
pub fn with_slope_scaled_depth_bias(self, slope_scaled_depth_bias: f32) -> Self
pub fn slope_scaled_depth_bias(&self) -> f32
pub fn set_depth_clip_enable(&mut self, depth_clip_enable: bool) -> &mut Self
pub fn with_depth_clip_enable(self, depth_clip_enable: bool) -> Self
pub fn depth_clip_enable(&self) -> bool
pub fn set_multisample_enable(&mut self, multisample_enable: bool) -> &mut Self
pub fn with_multisample_enable(self, multisample_enable: bool) -> Self
pub fn multisample_enable(&self) -> bool
pub fn set_antialiased_line_enable( &mut self, antialiased_line_enable: bool, ) -> &mut Self
pub fn with_antialiased_line_enable(self, antialiased_line_enable: bool) -> Self
pub fn antialiased_line_enable(&self) -> bool
pub fn set_forced_sample_count(&mut self, forced_sample_count: u32) -> &mut Self
pub fn with_forced_sample_count(self, forced_sample_count: u32) -> Self
pub fn forced_sample_count(&self) -> u32
pub fn set_conservative_raster( &mut self, conservative_raster: ConservativeRasterizationMode, ) -> &mut Self
pub fn with_conservative_raster( self, conservative_raster: ConservativeRasterizationMode, ) -> Self
pub fn conservative_raster(&self) -> ConservativeRasterizationMode
Trait Implementations§
Source§impl Clone for RasterizerDesc
impl Clone for RasterizerDesc
Source§fn clone(&self) -> RasterizerDesc
fn clone(&self) -> RasterizerDesc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RasterizerDesc
impl Debug for RasterizerDesc
Source§impl Default for RasterizerDesc
impl Default for RasterizerDesc
impl Copy for RasterizerDesc
Auto Trait Implementations§
impl Freeze for RasterizerDesc
impl RefUnwindSafe for RasterizerDesc
impl Send for RasterizerDesc
impl Sync for RasterizerDesc
impl Unpin for RasterizerDesc
impl UnwindSafe for RasterizerDesc
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