#[repr(u8)]pub enum StencilOp {
Keep = 0,
Zero = 1,
Replace = 2,
IncrementClamp = 3,
DecrementClamp = 4,
Invert = 5,
IncrementWrap = 6,
DecrementWrap = 7,
}
Expand description
The operation to use for stencil masking.
Variants§
Keep = 0
Keep the current value in the stencil buffer (no change).
Zero = 1
Set the value in the stencil buffer to zero.
Replace = 2
Set the stencil buffer value to reference
from StencilFace
.
IncrementClamp = 3
Increment the stencil buffer value, clamping to its maximum value.
DecrementClamp = 4
Decrement the stencil buffer value, clamping to its minimum value.
Invert = 5
Bitwise invert the current value in the stencil buffer.
IncrementWrap = 6
Increment the stencil buffer value, wrapping around to 0 on overflow.
DecrementWrap = 7
Decrement the stencil buffer value, wrapping around to the maximum value on overflow.
Trait Implementations§
Source§impl Ord for StencilOp
impl Ord for StencilOp
Source§impl PartialOrd for StencilOp
impl PartialOrd for StencilOp
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