[][src]Enum luminance::depth_test::DepthComparison

pub enum DepthComparison {
    Never,
    Always,
    Equal,
    NotEqual,
    Less,
    LessOrEqual,
    Greater,
    GreaterOrEqual,
}

Depth comparison to perform while depth test. a is the incoming fragment’s depth and b is the fragment’s depth that is already stored.

Variants

Never

Depth test never succeeds.

Always

Depth test always succeeds.

Equal

Depth test succeeds if a == b.

NotEqual

Depth test succeeds if a != b.

Less

Depth test succeeds if a < b.

LessOrEqual

Depth test succeeds if a <= b.

Greater

Depth test succeeds if a > b.

GreaterOrEqual

Depth test succeeds if a >= b.

Trait Implementations

impl Eq for DepthComparison[src]

impl Clone for DepthComparison[src]

impl PartialEq<DepthComparison> for DepthComparison[src]

impl Copy for DepthComparison[src]

impl Debug for DepthComparison[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]