[][src]Enum golem::depth::DepthTestFunction

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

Function used to compare each incoming pixel depth value with the depth value present in the depth buffer

"Depth value" is, roughly, how far away the pixel is from the camera; you'll almost always want DepthTestFunction::Less (which is the default).

Variants

Never

Pixel is never drawn

Less

Pixel is drawn if it's depth value is less than the stored one

Equal

Pixel is drawn if it's depth value is equal to the stored one

LessOrEqual

Pixel is drawn if it's depth value is less than or equal to the stored one

Greater

Pixel is drawn if it's depth value is greater than the stored one

NotEqual

Pixel is drawn if it's depth value is not equal to the stored one

GreaterOrEqual

Pixel is drawn if it's depth value is greater than or equal to the stored one

Always

Pixel is always drawn

Trait Implementations

impl Clone for DepthTestFunction[src]

impl Copy for DepthTestFunction[src]

impl Debug for DepthTestFunction[src]

impl Default for DepthTestFunction[src]

impl Eq for DepthTestFunction[src]

impl Hash for DepthTestFunction[src]

impl PartialEq<DepthTestFunction> for DepthTestFunction[src]

impl StructuralEq for DepthTestFunction[src]

impl StructuralPartialEq for DepthTestFunction[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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, 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.