[][src]Struct grr::StencilFace

pub struct StencilFace {
    pub fail: StencilOp,
    pub pass: StencilOp,
    pub depth_fail: StencilOp,
    pub compare_op: Compare,
    pub compare_mask: u32,
    pub reference: u32,
}

Stencil operation settings, per-face.

Fields

fail: StencilOp

Action taken on the buffer when the stencil test fails on the new fragment.

pass: StencilOp

Action taken on the buffer when the stencil and depth tests succeed.

depth_fail: StencilOp

Action taken on the buffer when the stencil test succeeds but the depth test fails.

compare_op: Compare

Comparison operation used in testing the reference and buffer stencil values.

compare_mask: u32

Bitwise mask applied to both stencil reference and buffer values before being compared.

reference: u32

Reference value used in certain stencil comparison ops.

Implementations

impl StencilFace[src]

Trait Implementations

impl Clone for StencilFace[src]

impl Copy for StencilFace[src]

impl Debug for StencilFace[src]

impl Default for StencilFace[src]

impl Eq for StencilFace[src]

impl PartialEq<StencilFace> for StencilFace[src]

impl StructuralEq for StencilFace[src]

impl StructuralPartialEq for StencilFace[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.