Enum luminance::texture::DepthComparison [] [src]

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 Debug for DepthComparison
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for DepthComparison
[src]

impl Clone for DepthComparison
[src]

fn clone(&self) -> DepthComparison

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more