[−][src]Enum golem::depth::DepthTestFunction
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
Pixel is never drawn
Pixel is drawn if it's depth value is less than the stored one
Pixel is drawn if it's depth value is equal to the stored one
Pixel is drawn if it's depth value is less than or equal to the stored one
Pixel is drawn if it's depth value is greater than the stored one
Pixel is drawn if it's depth value is not equal to the stored one
Pixel is drawn if it's depth value is greater than or equal to the stored one
Pixel is always drawn
Trait Implementations
impl Clone for DepthTestFunction
[src]
fn clone(&self) -> DepthTestFunction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DepthTestFunction> for DepthTestFunction
[src]
fn eq(&self, other: &DepthTestFunction) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for DepthTestFunction
[src]
impl StructuralPartialEq for DepthTestFunction
[src]
Auto Trait Implementations
impl RefUnwindSafe for DepthTestFunction
impl Send for DepthTestFunction
impl Sync for DepthTestFunction
impl Unpin for DepthTestFunction
impl UnwindSafe for DepthTestFunction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,