Enum 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
AlwaysPass | The stencil test always passes. | ||
AlwaysFail | The stencil test always fails. | ||
IfLess |
Fields
| ||
IfLessOrEqual |
Fields
| ||
IfMore |
Fields
| ||
IfMoreOrEqual |
Fields
| ||
IfEqual |
Fields
| ||
IfNotEqual |
Fields
|