pub enum StencilOp {
Keep,
Zero,
Replace,
IncrementClamp,
DecrementClamp,
Invert,
IncrementWrap,
DecrementWrap,
}Expand description
A stencil operation (D3D12 and Vulkan have the same eight).
Variants§
Keep
Keep the stored value.
Zero
Set it to zero.
Replace
Set it to the reference value.
IncrementClamp
Increment, clamped at the maximum.
DecrementClamp
Decrement, clamped at zero.
Invert
Invert its bits.
IncrementWrap
Increment, wrapping to zero.
DecrementWrap
Decrement, wrapping to the maximum.
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 UnsafeUnpin 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