pub enum StencilOp {
Keep,
Zero,
Replace,
IncrementClamp,
IncrementWrap,
DecrementClamp,
DecrementWrap,
Invert,
}Expand description
Stencil mask operation.
Variants§
Keep
Keep the current value in the stencil buffer (no change).
Zero
Set the value in the stencil buffer to zero.
Replace
Set the stencil buffer value to value from StencilSide
IncrementClamp
Increment the stencil buffer value, clamping to its maximum value.
IncrementWrap
Increment the stencil buffer value, wrapping around to 0 on overflow.
DecrementClamp
Decrement the stencil buffer value, clamping to its minimum value.
DecrementWrap
Decrement the stencil buffer value, wrapping around to the maximum value on overflow.
Invert
Bitwise invert the current value in the stencil buffer.
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