Struct sierra::StencilTest[][src]

pub struct StencilTest {
    pub compare: CompareOp,
    pub compare_mask: State<u32>,
    pub write_mask: State<u32>,
    pub reference: State<u32>,
    pub fail: StencilOp,
    pub pass: StencilOp,
    pub depth_fail: StencilOp,
}

Fields

compare: CompareOp

Comparison operation between value stored in stencil buffer and refence value.

compare_mask: State<u32>

Selects the bits of the unsigned integer stencil values participating in the stencil test.

write_mask: State<u32>

Selects the bits of the unsigned integer stencil values updated by the stencil test in the stencil buffer.

reference: State<u32>

Reference value for comparison and operations.

fail: StencilOp

Action performed on samples that fail the stencil test.

pass: StencilOp

Action performed on samples that pass both the depth and stencil tests.

depth_fail: StencilOp

Action performed on samples that pass the stencil test and fail the depth test.

Trait Implementations

impl Clone for StencilTest[src]

impl Copy for StencilTest[src]

impl Debug for StencilTest[src]

impl Eq for StencilTest[src]

impl Hash for StencilTest[src]

impl PartialEq<StencilTest> for StencilTest[src]

impl StructuralEq for StencilTest[src]

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