Enum wgpu::StencilOperation [−][src]
#[repr(C)]
pub enum StencilOperation {
Keep,
Zero,
Replace,
Invert,
IncrementClamp,
DecrementClamp,
IncrementWrap,
DecrementWrap,
}
Expand description
Operation to perform on the stencil value.
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
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StencilOperation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StencilOperation, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.