pub struct Stencil {
pub read_mask: u8,
pub write_mask: u8,
pub reference: Option<u8>,
pub front: StencilFace,
pub back: StencilFace,
}Expand description
An enabled stencil test (a disabled one is None in RenderState::stencil).
Fields§
§read_mask: u8Mask applied to the reference and the stored value before they are compared.
write_mask: u8Mask of the stencil bits a write changes.
reference: Option<u8>The reference value the test compares against and Replace writes, where the source states one (D3D12 sets it
per draw: a source that stores it per draw states none).
front: StencilFaceThe operations for front-facing triangles.
back: StencilFaceThe operations for back-facing triangles.
Trait Implementations§
impl Copy for Stencil
impl Eq for Stencil
impl StructuralPartialEq for Stencil
Auto Trait Implementations§
impl Freeze for Stencil
impl RefUnwindSafe for Stencil
impl Send for Stencil
impl Sync for Stencil
impl Unpin for Stencil
impl UnsafeUnpin for Stencil
impl UnwindSafe for Stencil
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