Struct wgpu_types::StencilState [−][src]
#[repr(C)]pub struct StencilState { pub front: StencilFaceState, pub back: StencilFaceState, pub read_mask: u32, pub write_mask: u32, }
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
impl StencilState
[src]
impl StencilState
[src]pub fn is_enabled(&self) -> bool
[src]
Returns true if the stencil test is enabled.
pub fn is_read_only(&self) -> bool
[src]
Returns true if the state doesn’t mutate the target values.
pub fn needs_ref_value(&self) -> bool
[src]
Returns true if the stencil state uses the reference value for testing.
Trait Implementations
impl Clone for StencilState
[src]
impl Clone for StencilState
[src]fn clone(&self) -> StencilState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for StencilState
[src]
impl Default for StencilState
[src]fn default() -> StencilState
[src]
impl Eq for StencilState
[src]
impl Eq for StencilState
[src]impl Hash for StencilState
[src]
impl Hash for StencilState
[src]impl PartialEq<StencilState> for StencilState
[src]
impl PartialEq<StencilState> for StencilState
[src]fn eq(&self, other: &StencilState) -> bool
[src]
fn ne(&self, other: &StencilState) -> bool
[src]
impl StructuralEq for StencilState
[src]
impl StructuralEq for StencilState
[src]impl StructuralPartialEq for StencilState
[src]
impl StructuralPartialEq for StencilState
[src]Auto Trait Implementations
impl RefUnwindSafe for StencilState
impl RefUnwindSafe for StencilState
impl Send for StencilState
impl Send for StencilState
impl Sync for StencilState
impl Sync for StencilState
impl Unpin for StencilState
impl Unpin for StencilState
impl UnwindSafe for StencilState
impl UnwindSafe for StencilState