Enum glium::StencilOperation
[−]
[src]
#[repr(u32)]pub enum StencilOperation { Keep, Zero, Replace, Increment, IncrementWrap, Decrement, DecrementWrap, Invert, }
Specificies which operation the GPU will do depending on the result of the stencil test.
Variants
KeepKeeps the value currently in the stencil buffer.
ZeroWrites zero in the stencil buffer.
ReplaceWrites the reference value (stencil_reference_value_clockwise or
stencil_reference_value_counter_clockwise) in the stencil buffer.
IncrementIncrements the value currently in the stencil buffer. If the value is the maximum, don't do anything.
IncrementWrapIncrements the value currently in the stencil buffer. If the value is the
maximum, wrap to 0.
DecrementDecrements the value currently in the stencil buffer. If the value is 0,
don't do anything.
DecrementWrapDecrements the value currently in the stencil buffer. If the value is 0,
wrap to -1.
InvertInverts each bit of the value.
Trait Implementations
impl Copy for StencilOperation[src]
impl Clone for StencilOperation[src]
fn clone(&self) -> StencilOperation[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 StencilOperation[src]
impl PartialEq for StencilOperation[src]
fn eq(&self, __arg_0: &StencilOperation) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.