Enum bedrock::StencilOp
[−]
[src]
#[repr(C)]pub enum StencilOp { Keep, Zero, Replace, IncrementClamp, DecrementClamp, Invert, IncrementWrap, DecrementWrap, }
Stencil action function
Variants
Keep
Keeps the current value
Zero
Sets the value to 0
Replace
Sets the value to reference
IncrementClamp
Increments the current value and clamps to the maximum representable unsigned value
DecrementClamp
Decrements the current value and clamps to 0
Invert
Bitwise-inverts the current value
IncrementWrap
Increments the current value and wraps to 0 when the maximum value would have been exceeded
DecrementWrap
Decrements the current value and wraps to the maximum possible value when the value would go below 0
Trait Implementations
impl Debug for StencilOp
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for StencilOp
[src]
fn clone(&self) -> StencilOp
[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 Copy for StencilOp
[src]
impl PartialEq for StencilOp
[src]
fn eq(&self, __arg_0: &StencilOp) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.