Struct wgpu_types::StencilFaceState [−][src]
#[repr(C)]pub struct StencilFaceState {
pub compare: CompareFunction,
pub fail_op: StencilOperation,
pub depth_fail_op: StencilOperation,
pub pass_op: StencilOperation,
}Expand description
Describes stencil state in a render pipeline.
If you are not using stencil state, set this to StencilFaceState::IGNORE.
Fields
compare: CompareFunctionComparison function that determines if the fail_op or pass_op is used on the stencil buffer.
fail_op: StencilOperationOperation that is preformed when stencil test fails.
depth_fail_op: StencilOperationOperation that is performed when depth test fails but stencil test succeeds.
pass_op: StencilOperationOperation that is performed when stencil test success.
Implementations
Returns true if the face state uses the reference value for testing or operation.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StencilFaceState
impl Send for StencilFaceState
impl Sync for StencilFaceState
impl Unpin for StencilFaceState
impl UnwindSafe for StencilFaceState
Blanket Implementations
Mutably borrows from an owned value. Read more
