[][src]Enum glium::StencilOperation

#[repr(u32)]pub enum StencilOperation {
    Keep,
    Zero,
    Replace,
    Increment,
    IncrementWrap,
    Decrement,
    DecrementWrap,
    Invert,
}

Specificies which operation the GPU will do depending on the result of the stencil test.

Variants

Keep

Keeps the value currently in the stencil buffer.

Zero

Writes zero in the stencil buffer.

Replace

Writes the reference value (stencil_reference_value_clockwise or stencil_reference_value_counter_clockwise) in the stencil buffer.

Increment

Increments the value currently in the stencil buffer. If the value is the maximum, don't do anything.

IncrementWrap

Increments the value currently in the stencil buffer. If the value is the maximum, wrap to 0.

Decrement

Decrements the value currently in the stencil buffer. If the value is 0, don't do anything.

DecrementWrap

Decrements the value currently in the stencil buffer. If the value is 0, wrap to -1.

Invert

Inverts each bit of the value.

Trait Implementations

impl Clone for StencilOperation[src]

impl Copy for StencilOperation[src]

impl Debug for StencilOperation[src]

impl Eq for StencilOperation[src]

impl PartialEq<StencilOperation> for StencilOperation[src]

impl StructuralEq for StencilOperation[src]

impl StructuralPartialEq for StencilOperation[src]

Auto Trait Implementations

impl RefUnwindSafe for StencilOperation

impl Send for StencilOperation

impl Sync for StencilOperation

impl Unpin for StencilOperation

impl UnwindSafe for StencilOperation

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

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.