Enum wgpu_types::StencilOperation[][src]

#[repr(C)]
pub enum StencilOperation {
    Keep,
    Zero,
    Replace,
    Invert,
    IncrementClamp,
    DecrementClamp,
    IncrementWrap,
    DecrementWrap,
}

Operation to perform on the stencil value.

Variants

Keep

Keep stencil value unchanged.

Zero

Set stencil value to zero.

Replace

Replace stencil value with value provided in most recent call to [RenderPass::set_stencil_reference].

Invert

Bitwise inverts stencil value.

IncrementClamp

Increments stencil value by one, clamping on overflow.

DecrementClamp

Decrements stencil value by one, clamping on underflow.

IncrementWrap

Increments stencil value by one, wrapping on overflow.

DecrementWrap

Decrements stencil value by one, wrapping on underflow.

Trait Implementations

impl Clone for StencilOperation[src]

impl Copy for StencilOperation[src]

impl Debug for StencilOperation[src]

impl Default for StencilOperation[src]

impl Eq for StencilOperation[src]

impl Hash for StencilOperation[src]

impl PartialEq<StencilOperation> for StencilOperation[src]

impl StructuralEq for StencilOperation[src]

impl StructuralPartialEq for StencilOperation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.