Enum nannou::ui::backend::glium::glium::StencilTest [] [src]

pub enum StencilTest {
    AlwaysPass,
    AlwaysFail,
    IfLess {
        mask: u32,
    },
    IfLessOrEqual {
        mask: u32,
    },
    IfMore {
        mask: u32,
    },
    IfMoreOrEqual {
        mask: u32,
    },
    IfEqual {
        mask: u32,
    },
    IfNotEqual {
        mask: u32,
    },
}

Specifies which comparison the GPU will do to determine whether a sample passes the stencil test. The general equation is (ref & mask) CMP (stencil & mask), where ref is the reference value (stencil_reference_value_clockwise or stencil_reference_value_counter_clockwise), CMP is the comparison chosen, and stencil is the current value in the stencil buffer.

Variants

The stencil test always passes.

The stencil test always fails.

(ref & mask) < (stencil & mask)

Fields of IfLess

The mask that is and'ed with the reference value and stencil buffer.

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

Fields of IfLessOrEqual

The mask that is and'ed with the reference value and stencil buffer.

(ref & mask) > (stencil & mask)

Fields of IfMore

The mask that is and'ed with the reference value and stencil buffer.

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

Fields of IfMoreOrEqual

The mask that is and'ed with the reference value and stencil buffer.

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

Fields of IfEqual

The mask that is and'ed with the reference value and stencil buffer.

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

Fields of IfNotEqual

The mask that is and'ed with the reference value and stencil buffer.

Trait Implementations

impl Copy for StencilTest
[src]

impl Clone for StencilTest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<StencilTest> for StencilTest
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for StencilTest
[src]

[src]

Formats the value using the given formatter.

impl Eq for StencilTest
[src]