pub struct DepthStencilState {
pub format: Option<TextureFormat>,
pub depth_write_enabled: Option<OptionalBool>,
pub depth_compare: Option<CompareFunction>,
pub stencil_front: Option<StencilFaceState>,
pub stencil_back: Option<StencilFaceState>,
pub stencil_read_mask: Option<u32>,
pub stencil_write_mask: Option<u32>,
pub depth_bias: Option<i32>,
pub depth_bias_slope_scale: Option<f32>,
pub depth_bias_clamp: Option<f32>,
/* private fields */
}Fields§
§format: Option<TextureFormat>§depth_write_enabled: Option<OptionalBool>§depth_compare: Option<CompareFunction>§stencil_front: Option<StencilFaceState>§stencil_back: Option<StencilFaceState>§stencil_read_mask: Option<u32>§stencil_write_mask: Option<u32>§depth_bias: Option<i32>§depth_bias_slope_scale: Option<f32>§depth_bias_clamp: Option<f32>Implementations§
Source§impl DepthStencilState
impl DepthStencilState
pub fn new() -> Self
pub fn with_extension(self, extension: DepthStencilStateExtension) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepthStencilState
impl RefUnwindSafe for DepthStencilState
impl Send for DepthStencilState
impl Sync for DepthStencilState
impl Unpin for DepthStencilState
impl UnsafeUnpin for DepthStencilState
impl UnwindSafe for DepthStencilState
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