#[repr(C)]pub enum BlendOperation {
Add = 0,
Subtract = 1,
ReverseSubtract = 2,
Min = 3,
Max = 4,
}
Expand description
Alpha blend operation.
Alpha blending is very complicated: see the OpenGL or Vulkan spec for more information.
Corresponds to WebGPU GPUBlendOperation
.
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 Hash for BlendOperation
impl Hash for BlendOperation
Source§impl PartialEq for BlendOperation
impl PartialEq 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
)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.