Struct gfx::state::Depth []

pub struct Depth {
    pub fun: Comparison,
    pub write: bool,
}

Depth test state.

Fields

Comparison function to use.

Specify whether to write to the depth buffer or not.

Trait Implementations

impl PartialOrd<Depth> for Depth

impl Hash for Depth

impl Ord for Depth

impl Eq for Depth

impl PartialEq<Depth> for Depth

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for Depth

Returns the "default value" for a type. Read more

impl Clone for Depth

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Depth

impl Debug for Depth

Formats the value using the given formatter.