#[repr(i32)]pub enum StencilOp {
Keep = 0,
Zero = 1,
Replace = 2,
IncrementClamp = 3,
DecrementClamp = 4,
Invert = 5,
IncrementWrap = 6,
DecrementWrap = 7,
}
Expand description
Stencil action function
Variants§
Keep = 0
Keeps the current value
Zero = 1
Sets the value to 0
Replace = 2
Sets the value to reference
IncrementClamp = 3
Increments the current value and clamps to the maximum representable unsigned value
DecrementClamp = 4
Decrements the current value and clamps to 0
Invert = 5
Bitwise-inverts the current value
IncrementWrap = 6
Increments the current value and wraps to 0 when the maximum value would have been exceeded
DecrementWrap = 7
Decrements the current value and wraps to the maximum possible value when the value would go below 0
Trait Implementations§
impl Copy for StencilOp
impl Eq for StencilOp
impl StructuralPartialEq for StencilOp
Auto Trait Implementations§
impl Freeze for StencilOp
impl RefUnwindSafe for StencilOp
impl Send for StencilOp
impl Sync for StencilOp
impl Unpin for StencilOp
impl UnwindSafe for StencilOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more