Enum mallumo_gls::raw::StencilTest
[−]
[src]
pub enum StencilTest { AlwaysPass, AlwaysFail, Less { reference: i32, mask: u32, }, LessOrEqual { reference: i32, mask: u32, }, Greater { reference: i32, mask: u32, }, GreaterOrEqual { reference: i32, mask: u32, }, Equal { reference: i32, mask: u32, }, NotEqual { reference: i32, mask: u32, }, }
Variants
AlwaysPass
The stencil test always passes.
AlwaysFail
The stencil test always fails.
Less
(ref & mask) < (stencil & mask)
Fields of Less
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
LessOrEqual
(ref & mask) <= (stencil & mask)
Fields of LessOrEqual
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
Greater
(ref & mask) > (stencil & mask)
Fields of Greater
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
GreaterOrEqual
(ref & mask) >= (stencil & mask)
Fields of GreaterOrEqual
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
Equal
(ref & mask) == (stencil & mask)
Fields of Equal
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
NotEqual
(ref & mask) != (stencil & mask)
Fields of NotEqual
reference: i32 | The reference value that is and'ed with the mask clamped to the range [0, 2n - 1], where n is the number of bitplanes in the stencil buffer |
mask: u32 | The mask that is and'ed with the stencil buffer |
Methods
impl StencilTest
[src]
Trait Implementations
impl Debug for StencilTest
[src]
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 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 !=
.
impl Eq for StencilTest
[src]
impl Default for StencilTest
[src]
fn default() -> StencilTest
[src]
Returns the "default value" for a type. Read more