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

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

The stencil test always passes.

The stencil test always fails.

(ref & mask) < (stencil & mask)

Fields of Less

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

The mask that is and'ed with the stencil buffer

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

Fields of LessOrEqual

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

The mask that is and'ed with the stencil buffer

(ref & mask) > (stencil & mask)

Fields of Greater

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

The mask that is and'ed with the stencil buffer

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

Fields of GreaterOrEqual

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

The mask that is and'ed with the stencil buffer

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

Fields of Equal

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

The mask that is and'ed with the stencil buffer

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

Fields of NotEqual

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

The mask that is and'ed with the stencil buffer

Methods

impl StencilTest
[src]

Trait Implementations

impl Debug for StencilTest
[src]

Formats the value using the given formatter.

impl Copy for StencilTest
[src]

impl Clone for StencilTest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for StencilTest
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for StencilTest
[src]

impl Default for StencilTest
[src]

Returns the "default value" for a type. Read more