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
impl Ord for StencilOp
impl Ord for StencilOp
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialOrd<StencilOp> for StencilOp
impl PartialOrd<StencilOp> for StencilOp
fn partial_cmp(&self, other: &StencilOp) -> Option<Ordering>
fn partial_cmp(&self, other: &StencilOp) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StencilOp
impl Eq for StencilOp
impl StructuralEq for StencilOp
impl StructuralPartialEq for StencilOp
Auto Trait Implementations
impl RefUnwindSafe for StencilOp
impl Send for StencilOp
impl Sync for StencilOp
impl Unpin for StencilOp
impl UnwindSafe for StencilOp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.