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§
source§impl Clone for StencilOperation
impl Clone for StencilOperation
source§fn clone(&self) -> StencilOperation
fn clone(&self) -> StencilOperation
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 StencilOperation
impl Debug for StencilOperation
source§impl Default for StencilOperation
impl Default for StencilOperation
source§fn default() -> StencilOperation
fn default() -> StencilOperation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StencilOperation
impl<'de> Deserialize<'de> for StencilOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for StencilOperation
impl Hash for StencilOperation
source§impl PartialEq<StencilOperation> for StencilOperation
impl PartialEq<StencilOperation> for StencilOperation
source§fn eq(&self, other: &StencilOperation) -> bool
fn eq(&self, other: &StencilOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.