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: StencilOpAction to take when the depth test passes but not the stencil test.
depth_fails_stencil_passes: StencilOpAction to take when the stencil test passes but not the depth test.
depth_stencil_pass: StencilOpAction to take when both the depth and stencil tests pass.
Implementations§
Source§impl StencilOperations
impl StencilOperations
Sourcepub fn new() -> StencilOperations
pub fn new() -> StencilOperations
Create Default StencilOperations.
Sourcepub fn on_depth_passes_stencil_fails(self, op: StencilOp) -> StencilOperations
pub fn on_depth_passes_stencil_fails(self, op: StencilOp) -> StencilOperations
Set the StencilOp to do when the depth test passes but stencil test fails:
Sourcepub fn on_depth_fails_stencil_passes(self, op: StencilOp) -> StencilOperations
pub fn on_depth_fails_stencil_passes(self, op: StencilOp) -> StencilOperations
Set the StencilOp to do when the depth test fails but stencil test passes:
Sourcepub fn on_depth_stencil_pass(self, op: StencilOp) -> StencilOperations
pub fn on_depth_stencil_pass(self, op: StencilOp) -> StencilOperations
Set the StencilOp to do when both the depth test and stencil test pass:
Trait Implementations§
Source§impl Clone for StencilOperations
impl Clone for StencilOperations
Source§fn clone(&self) -> StencilOperations
fn clone(&self) -> StencilOperations
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StencilOperations
impl Debug for StencilOperations
Source§impl Default for StencilOperations
Default implementation for StencilOperations:
impl Default for StencilOperations
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.
Source§fn default() -> StencilOperations
fn default() -> StencilOperations
Returns the “default value” for a type. Read more
Source§impl PartialEq for StencilOperations
impl PartialEq for StencilOperations
impl Copy for StencilOperations
impl Eq for StencilOperations
impl StructuralPartialEq for StencilOperations
Auto Trait Implementations§
impl Freeze for StencilOperations
impl RefUnwindSafe for StencilOperations
impl Send for StencilOperations
impl Sync for StencilOperations
impl Unpin for StencilOperations
impl UnwindSafe for StencilOperations
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more