Enum tetra::graphics::StencilTest
source · #[non_exhaustive]
pub enum StencilTest {
Never,
LessThan,
LessThanOrEqualTo,
EqualTo,
NotEqualTo,
GreaterThan,
GreaterThanOrEqualTo,
Always,
}
Expand description
The test for whether a pixel is visible when using a stencil.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Never
The pixel is never visible.
LessThan
The pixel is visible if the reference value is less than the value in the stencil buffer.
LessThanOrEqualTo
The pixel is visible if the reference value is less than or equal to the value in the stencil buffer.
EqualTo
The pixel is visible if the reference value is equal to the value in the stencil buffer.
NotEqualTo
The pixel is visible if the reference value is not equal to the value in the stencil buffer.
GreaterThan
The pixel is visible if the reference value is greater than the value in the stencil buffer.
GreaterThanOrEqualTo
The pixel is visible if the reference value is greater than or equal to the value in the stencil buffer.
Always
The pixel is always visible.
Trait Implementations§
source§impl Clone for StencilTest
impl Clone for StencilTest
source§fn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StencilTest
impl Debug for StencilTest
source§impl PartialEq<StencilTest> for StencilTest
impl PartialEq<StencilTest> for StencilTest
source§fn eq(&self, other: &StencilTest) -> bool
fn eq(&self, other: &StencilTest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.