Struct sierra::StencilTest
source · 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§
source§impl Clone for StencilTest
impl Clone for StencilTest
source§fn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a copy 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 moresource§impl Debug for StencilTest
impl Debug for StencilTest
source§impl Hash for StencilTest
impl Hash for StencilTest
source§impl PartialEq<StencilTest> for StencilTest
impl PartialEq<StencilTest> for StencilTest
source§fn eq(&self, other: &StencilTest) -> bool
fn eq(&self, other: &StencilTest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.