Enum GraphicsStencilOperation
#[repr(i32)]pub enum GraphicsStencilOperation {
Keep = 0,
Zero = 1,
Replace = 2,
Increment = 3,
IncrementWrap = 4,
Decrement = 5,
DecrementWrap = 6,
Invert = 7,
}Expand description
Renderer stencil operations.
Variants§
Keep = 0
Keeps the current stencil buffer value.
Zero = 1
Sets stencil buffer value to zero.
Replace = 2
Set stencil buffer value to reference value, specified by StencilFunction.
Increment = 3
Increases current stencil buffer value.
IncrementWrap = 4
Increases stencil buffer value, wraps to zero when reaching maximum.
Decrement = 5
Decreases current stencil buffer value.
DecrementWrap = 6
Decreases stencil buffer value, wraps to maximum - 1 when below 0.
Invert = 7
Inverts current stencil buffer value.
Implementations§
§impl GraphicsStencilOperation
impl GraphicsStencilOperation
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> GraphicsStencilOperation
Trait Implementations§
§impl Clone for GraphicsStencilOperation
impl Clone for GraphicsStencilOperation
§fn clone(&self) -> GraphicsStencilOperation
fn clone(&self) -> GraphicsStencilOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GraphicsStencilOperation
impl Debug for GraphicsStencilOperation
§impl Display for GraphicsStencilOperation
impl Display for GraphicsStencilOperation
§impl PartialEq for GraphicsStencilOperation
impl PartialEq for GraphicsStencilOperation
§impl VariantConstraint for GraphicsStencilOperation
impl VariantConstraint for GraphicsStencilOperation
§type DataArg<'a> = GraphicsStencilOperation
type DataArg<'a> = GraphicsStencilOperation
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = GraphicsStencilOperation
type RetArg = GraphicsStencilOperation
§fn as_arg(&self) -> <GraphicsStencilOperation as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <GraphicsStencilOperation as VariantConstraint>::DataArg<'_>
impl Copy for GraphicsStencilOperation
impl Eq for GraphicsStencilOperation
impl PropertyTypeConstraint for GraphicsStencilOperation
impl StructuralPartialEq for GraphicsStencilOperation
Auto Trait Implementations§
impl Freeze for GraphicsStencilOperation
impl RefUnwindSafe for GraphicsStencilOperation
impl Send for GraphicsStencilOperation
impl Sync for GraphicsStencilOperation
impl Unpin for GraphicsStencilOperation
impl UnwindSafe for GraphicsStencilOperation
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