Struct gfx::device::state::Depth [] [src]

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

Depth test state.

Fields

fun

Comparison function to use.

write

Specify whether to write to the depth buffer or not.

Trait Implementations

impl Default for Depth

fn default() -> Depth

Derived Implementations

impl Debug for Depth

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

impl Clone for Depth

fn clone(&self) -> Depth

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

impl Copy for Depth

impl Hash for Depth

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd<Depth> for Depth

fn partial_cmp(&self, __arg_0: &Depth) -> Option<Ordering>

fn lt(&self, __arg_0: &Depth) -> bool

fn le(&self, __arg_0: &Depth) -> bool

fn gt(&self, __arg_0: &Depth) -> bool

fn ge(&self, __arg_0: &Depth) -> bool

impl PartialEq<Depth> for Depth

fn eq(&self, __arg_0: &Depth) -> bool

fn ne(&self, __arg_0: &Depth) -> bool

impl Ord for Depth

fn cmp(&self, __arg_0: &Depth) -> Ordering

impl Eq for Depth