[][src]Struct miniquad::graphics::StencilFaceState

pub struct StencilFaceState {
    pub fail_op: StencilOp,
    pub depth_fail_op: StencilOp,
    pub pass_op: StencilOp,
    pub test_func: CompareFunc,
    pub test_ref: i32,
    pub test_mask: u32,
    pub write_mask: u32,
}

Fields

fail_op: StencilOp

Operation to use when stencil test fails

depth_fail_op: StencilOp

Operation to use when stencil test passes, but depth test fails

pass_op: StencilOp

Operation to use when both stencil and depth test pass, or when stencil pass and no depth or depth disabled

test_func: CompareFunc

Used for stencil testing with test_ref and test_mask: if (test_ref & test_mask) test_func (stencil && test_mask) Default is Always, which means "always pass"

test_ref: i32

Default value: 0

test_mask: u32

Default value: all 1s

write_mask: u32

Specifies a bit mask to enable or disable writing of individual bits in the stencil planes Default value: all 1s

Trait Implementations

impl Clone for StencilFaceState[src]

impl Copy for StencilFaceState[src]

impl Debug for StencilFaceState[src]

impl PartialEq<StencilFaceState> for StencilFaceState[src]

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