Enum glium::draw_parameters::StencilTest
[−]
[src]
pub enum StencilTest {
AlwaysPass,
AlwaysFail,
IfLess {
mask: u32,
},
IfLessOrEqual {
mask: u32,
},
IfMore {
mask: u32,
},
IfMoreOrEqual {
mask: u32,
},
IfEqual {
mask: u32,
},
IfNotEqual {
mask: u32,
},
}Specifies which comparison the GPU will do to determine whether a sample passes the stencil
test. The general equation is (ref & mask) CMP (stencil & mask), where ref is the reference
value (stencil_reference_value_clockwise or stencil_reference_value_counter_clockwise),
CMP is the comparison chosen, and stencil is the current value in the stencil buffer.
Variants
AlwaysPassThe stencil test always passes.
AlwaysFailThe stencil test always fails.
IfLess(ref & mask) < (stencil & mask)
Fields of IfLess
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
IfLessOrEqual(ref & mask) <= (stencil & mask)
Fields of IfLessOrEqual
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
IfMore(ref & mask) > (stencil & mask)
Fields of IfMore
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
IfMoreOrEqual(ref & mask) >= (stencil & mask)
Fields of IfMoreOrEqual
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
IfEqual(ref & mask) == (stencil & mask)
Fields of IfEqual
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
IfNotEqual(ref & mask) != (stencil & mask)
Fields of IfNotEqual
mask: u32 | The mask that is and'ed with the reference value and stencil buffer. |
Trait Implementations
impl Copy for StencilTest[src]
impl Clone for StencilTest[src]
fn clone(&self) -> StencilTest[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for StencilTest[src]
impl PartialEq for StencilTest[src]
fn eq(&self, __arg_0: &StencilTest) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StencilTest) -> bool[src]
This method tests for !=.