Enum wgpu_types::StencilOperation
source · [−]#[repr(C)]
pub enum StencilOperation {
Keep,
Zero,
Replace,
Invert,
IncrementClamp,
DecrementClamp,
IncrementWrap,
DecrementWrap,
}
Expand description
Operation to perform on the stencil value.
Corresponds to WebGPU GPUStencilOperation
.
Variants
Keep
Keep stencil value unchanged.
Zero
Set stencil value to zero.
Replace
Replace stencil value with value provided in most recent call to
RenderPass::set_stencil_reference
.
Invert
Bitwise inverts stencil value.
IncrementClamp
Increments stencil value by one, clamping on overflow.
DecrementClamp
Decrements stencil value by one, clamping on underflow.
IncrementWrap
Increments stencil value by one, wrapping on overflow.
DecrementWrap
Decrements stencil value by one, wrapping on underflow.
Trait Implementations
sourceimpl Clone for StencilOperation
impl Clone for StencilOperation
sourcefn clone(&self) -> StencilOperation
fn clone(&self) -> StencilOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StencilOperation
impl Debug for StencilOperation
sourceimpl Default for StencilOperation
impl Default for StencilOperation
sourceimpl Hash for StencilOperation
impl Hash for StencilOperation
sourceimpl PartialEq<StencilOperation> for StencilOperation
impl PartialEq<StencilOperation> for StencilOperation
impl Copy for StencilOperation
impl Eq for StencilOperation
impl StructuralEq for StencilOperation
impl StructuralPartialEq for StencilOperation
Auto Trait Implementations
impl RefUnwindSafe for StencilOperation
impl Send for StencilOperation
impl Sync for StencilOperation
impl Unpin for StencilOperation
impl UnwindSafe for StencilOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more