[][src]Struct grr::DepthStencil

pub struct DepthStencil {
    pub depth_test: bool,
    pub depth_write: bool,
    pub depth_compare_op: Compare,
    pub stencil_test: bool,
    pub stencil_front: StencilFace,
    pub stencil_back: StencilFace,
}

Depth and stencil test and associated options.

Fields

depth_test: bool

Whether or not a depth test is applied to fragments.

depth_write: bool

Whether or not the depth buffer is written to.

depth_compare_op: Compare

Determines how depth values are compared for passing the depth tests.

stencil_test: bool

Whether or not a stencil test is applied to fragments.

stencil_front: StencilFace

Stencil options for front-facing polygons.

stencil_back: StencilFace

Stencil options for back-facing polygons.

Trait Implementations

impl Clone for DepthStencil[src]

impl Copy for DepthStencil[src]

impl Debug for DepthStencil[src]

impl Default for DepthStencil[src]

fn default() -> DepthStencil[src]

By default in OpenGL, both and depth and stencil tests are disabled.

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.