Enum wgpu::StencilOperation
#[repr(C)]pub enum StencilOperation {
Keep = 0,
Zero = 1,
Replace = 2,
Invert = 3,
IncrementClamp = 4,
DecrementClamp = 5,
IncrementWrap = 6,
DecrementWrap = 7,
}
Expand description
Operation to perform on the stencil value.
Corresponds to WebGPU GPUStencilOperation
.
Variants§
Keep = 0
Keep stencil value unchanged.
Zero = 1
Set stencil value to zero.
Replace = 2
Replace stencil value with value provided in most recent call to
RenderPass::set_stencil_reference
.
Invert = 3
Bitwise inverts stencil value.
IncrementClamp = 4
Increments stencil value by one, clamping on overflow.
DecrementClamp = 5
Decrements stencil value by one, clamping on underflow.
IncrementWrap = 6
Increments stencil value by one, wrapping on overflow.
DecrementWrap = 7
Decrements stencil value by one, wrapping on underflow.
Trait Implementations§
§impl Clone for StencilOperation
impl Clone for StencilOperation
§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 more§impl Debug for StencilOperation
impl Debug for StencilOperation
§impl Default for StencilOperation
impl Default for StencilOperation
§fn default() -> StencilOperation
fn default() -> StencilOperation
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for StencilOperation
impl<'de> Deserialize<'de> for StencilOperation
§fn deserialize<__D>(
__deserializer: __D
) -> Result<StencilOperation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
§impl Hash for StencilOperation
impl Hash for StencilOperation
§impl PartialEq for StencilOperation
impl PartialEq for StencilOperation
§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 ==
.§impl Serialize for StencilOperation
impl Serialize for StencilOperation
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.