Struct wgpu_types::StencilState [−][src]
#[repr(C)]pub struct StencilState { pub front: StencilFaceState, pub back: StencilFaceState, pub read_mask: u32, pub write_mask: u32, }
Expand description
State of the stencil operation (fixed-pipeline stage).
Fields
front: StencilFaceState
Front face mode.
back: StencilFaceState
Back face mode.
read_mask: u32
Stencil values are AND’d with this mask when reading and writing from the stencil buffer. Only low 8 bits are used.
write_mask: u32
Stencil values are AND’d with this mask when writing to the stencil buffer. Only low 8 bits are used.
Implementations
Returns true if the stencil test is enabled.
Returns true if the state doesn’t mutate the target values.
Returns true if the stencil state uses the reference value for testing.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for StencilState
impl Send for StencilState
impl Sync for StencilState
impl Unpin for StencilState
impl UnwindSafe for StencilState
Blanket Implementations
Mutably borrows from an owned value. Read more