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
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
sourceimpl Clone for StencilTest
impl Clone for StencilTest
sourcefn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StencilTest
impl Debug for StencilTest
sourceimpl PartialEq<StencilTest> for StencilTest
impl PartialEq<StencilTest> for StencilTest
impl Copy for StencilTest
impl Eq for StencilTest
impl StructuralEq for StencilTest
impl StructuralPartialEq for StencilTest
Auto Trait Implementations
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more