Struct vulkano::pipeline::graphics::depth_stencil::StencilOps
source · pub struct StencilOps {
pub fail_op: StencilOp,
pub pass_op: StencilOp,
pub depth_fail_op: StencilOp,
pub compare_op: CompareOp,
}
Fields§
§fail_op: StencilOp
The operation to perform when the stencil test failed.
The default value is StencilOp::Keep
.
pass_op: StencilOp
The operation to perform when both the depth test and the stencil test passed.
The default value is StencilOp::Keep
.
depth_fail_op: StencilOp
The operation to perform when the stencil test passed but the depth test failed.
The default value is StencilOp::Keep
.
compare_op: CompareOp
The comparison to perform between the existing stencil value in the stencil buffer, and
the reference value (given by reference
).
The default value is CompareOp::Never
.
Trait Implementations§
source§impl Clone for StencilOps
impl Clone for StencilOps
source§fn clone(&self) -> StencilOps
fn clone(&self) -> StencilOps
Returns a copy 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 StencilOps
impl Debug for StencilOps
source§impl Default for StencilOps
impl Default for StencilOps
impl Copy for StencilOps
Auto Trait Implementations§
impl RefUnwindSafe for StencilOps
impl Send for StencilOps
impl Sync for StencilOps
impl Unpin for StencilOps
impl UnwindSafe for StencilOps
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