[][src]Enum mallumo_gls::raw::StencilTest

pub enum StencilTest {
    AlwaysPass,
    AlwaysFail,
    Less {
        reference: i32,
        mask: u32,
    },
    LessOrEqual {
        reference: i32,
        mask: u32,
    },
    Greater {
        reference: i32,
        mask: u32,
    },
    GreaterOrEqual {
        reference: i32,
        mask: u32,
    },
    Equal {
        reference: i32,
        mask: u32,
    },
    NotEqual {
        reference: i32,
        mask: u32,
    },
}

Variants

AlwaysPass

The stencil test always passes.

AlwaysFail

The stencil test always fails.

Less

(ref & mask) < (stencil & mask)

Fields of Less

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

LessOrEqual

(ref & mask) <= (stencil & mask)

Fields of LessOrEqual

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

Greater

(ref & mask) > (stencil & mask)

Fields of Greater

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

GreaterOrEqual

(ref & mask) >= (stencil & mask)

Fields of GreaterOrEqual

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

Equal

(ref & mask) == (stencil & mask)

Fields of Equal

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

NotEqual

(ref & mask) != (stencil & mask)

Fields of NotEqual

reference: i32

The reference value that is and'ed with the mask clamped to the range [0, 2^n - 1], where n is the number of bitplanes in the stencil buffer

mask: u32

The mask that is and'ed with the stencil buffer

Methods

impl StencilTest[src]

pub fn reference(&self) -> i32[src]

pub fn mask(&self) -> u32[src]

Trait Implementations

impl Copy for StencilTest[src]

impl PartialEq<StencilTest> for StencilTest[src]

impl Default for StencilTest[src]

impl Clone for StencilTest[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for StencilTest[src]

impl Debug for StencilTest[src]

Auto Trait Implementations

impl Send for StencilTest

impl Sync for StencilTest

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.