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 stencil value unchanged.
Set stencil value to zero.
Replace stencil value with value provided in most recent call to [RenderPass::set_stencil_reference
].
Bitwise inverts stencil value.
Increments stencil value by one, clamping on overflow.
Decrements stencil value by one, clamping on underflow.
Increments stencil value by one, wrapping on overflow.
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
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Compare self to key
and return true
if they are equal.