[][src]Enum wgpu::StencilOperation

#[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<'de> Deserialize<'de> for StencilOperation[src]

impl Eq for StencilOperation[src]

impl Hash for StencilOperation[src]

impl PartialEq<StencilOperation> for StencilOperation[src]

impl Serialize for StencilOperation[src]

impl StructuralEq for StencilOperation[src]

impl StructuralPartialEq for StencilOperation[src]

Auto Trait Implementations

impl RefUnwindSafe for StencilOperation[src]

impl Send for StencilOperation[src]

impl Sync for StencilOperation[src]

impl Unpin for StencilOperation[src]

impl UnwindSafe for StencilOperation[src]

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> CallHasher for T where
    T: Hash
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument 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.

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