#[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§
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<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
Source§impl Hash for StencilOperation
impl Hash for StencilOperation
Source§impl PartialEq for StencilOperation
impl PartialEq for StencilOperation
Source§impl Serialize for StencilOperation
impl Serialize for StencilOperation
Source§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 StructuralPartialEq for StencilOperation
Auto Trait Implementations§
impl Freeze for StencilOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.