Struct sierra::StencilTest [−][src]
pub struct StencilTest { pub compare: CompareOp, pub compare_mask: State<u32>, pub write_mask: State<u32>, pub reference: State<u32>, pub fail: StencilOp, pub pass: StencilOp, pub depth_fail: StencilOp, }
Fields
compare: CompareOp
Comparison operation between value stored in stencil buffer and refence value.
compare_mask: State<u32>
Selects the bits of the unsigned integer stencil values participating in the stencil test.
write_mask: State<u32>
Selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil buffer.
reference: State<u32>
Reference value for comparison and operations.
fail: StencilOp
Action performed on samples that fail the stencil test.
pass: StencilOp
Action performed on samples that pass both the depth and stencil tests.
depth_fail: StencilOp
Action performed on samples that pass the stencil test and fail the depth test.
Trait Implementations
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 StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more