pub struct DepthStencilState {
pub format: TextureFormat,
pub depth_write_enabled: bool,
pub depth_compare: CompareFunction,
pub stencil: StencilState,
pub bias: DepthBiasState,
}Expand description
Describes the depth/stencil state in a render pipeline.
Fields§
§format: TextureFormatFormat of the depth/stencil texture view.
depth_write_enabled: boolIf disabled, depth will not be written to.
depth_compare: CompareFunctionComparison function used to compare depth values in the depth test.
stencil: StencilStateStencil state.
bias: DepthBiasStateDepth bias state.
Trait Implementations§
Source§impl Clone for DepthStencilState
impl Clone for DepthStencilState
Source§fn clone(&self) -> DepthStencilState
fn clone(&self) -> DepthStencilState
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 moreAuto Trait Implementations§
impl Freeze for DepthStencilState
impl RefUnwindSafe for DepthStencilState
impl Send for DepthStencilState
impl Sync for DepthStencilState
impl Unpin 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