Struct luminance::depth_stencil::StencilOperations [−][src]
pub struct StencilOperations {
pub depth_passes_stencil_fails: StencilOp,
pub depth_fails_stencil_passes: StencilOp,
pub depth_stencil_pass: StencilOp,
}
Expand description
The stencil operations are executed whenever a stencil test passes.
Fields
depth_passes_stencil_fails: StencilOp
Action to take when the depth test passes but not the stencil test.
depth_fails_stencil_passes: StencilOp
Action to take when the stencil test passes but not the depth test.
depth_stencil_pass: StencilOp
Action to take when both the depth and stencil tests pass.
Implementations
Create Default
StencilOperations
.
Set the StencilOp
to do when the depth test passes but stencil test fails:
Set the StencilOp
to do when the depth test fails but stencil test passes:
Set the StencilOp
to do when both the depth test and stencil test pass:
Trait Implementations
Default implementation for StencilOperations
:
- when depth test passes but stencil fail:
StencilOp::Keep
. - when depth test fails but stencil passes:
StencilOp::Keep
. - when both depth test and stencil test pass:
StencilOp::Keep
.
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 StencilOperations
impl Send for StencilOperations
impl Sync for StencilOperations
impl Unpin for StencilOperations
impl UnwindSafe for StencilOperations
Blanket Implementations
Mutably borrows from an owned value. Read more