#[repr(C)]pub enum BlendOperation {
Add = 0,
Subtract = 1,
ReverseSubtract = 2,
Min = 3,
Max = 4,
}
Expand description
Alpha blend operation.
Corresponds to WebGPU GPUBlendOperation
.
For further details on how the blend operations are applied, see the analogous functionality in OpenGL: https://www.khronos.org/opengl/wiki/Blending#Blend_Equations.
Variants§
Add = 0
Src + Dst
Subtract = 1
Src - Dst
ReverseSubtract = 2
Dst - Src
Min = 3
min(Src, Dst)
Max = 4
max(Src, Dst)
Trait Implementations§
Source§impl Clone for BlendOperation
impl Clone for BlendOperation
Source§fn clone(&self) -> BlendOperation
fn clone(&self) -> BlendOperation
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 BlendOperation
impl Debug for BlendOperation
Source§impl Default for BlendOperation
impl Default for BlendOperation
Source§fn default() -> BlendOperation
fn default() -> BlendOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlendOperation
impl<'de> Deserialize<'de> for BlendOperation
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 BlendOperation
impl Hash for BlendOperation
Source§impl PartialEq for BlendOperation
impl PartialEq for BlendOperation
Source§impl Serialize for BlendOperation
impl Serialize for BlendOperation
impl Copy for BlendOperation
impl Eq for BlendOperation
impl StructuralPartialEq for BlendOperation
Auto Trait Implementations§
impl Freeze for BlendOperation
impl RefUnwindSafe for BlendOperation
impl Send for BlendOperation
impl Sync for BlendOperation
impl Unpin for BlendOperation
impl UnwindSafe for BlendOperation
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
)