Enum nannou::wgpu::BlendOperation [−]
#[repr(C)] pub enum BlendOperation { Add, Subtract, ReverseSubtract, Min, Max, }
Expand description
Alpha blend operation.
Alpha blending is very complicated: see the OpenGL or Vulkan spec for more information.
Variants
Src + Dst
Src - Dst
Dst - Src
min(Src, Dst)
max(Src, Dst)
Trait Implementations
impl Clone for BlendOperation
impl Clone for BlendOperation
pub fn clone(&self) -> BlendOperation
pub fn clone(&self) -> BlendOperation
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for BlendOperation
impl Debug for BlendOperation
impl Default for BlendOperation
impl Default for BlendOperation
pub fn default() -> BlendOperation
pub fn default() -> BlendOperation
Returns the “default value” for a type. Read more
impl Hash for BlendOperation
impl Hash for BlendOperation
impl PartialEq<BlendOperation> for BlendOperation
impl PartialEq<BlendOperation> for BlendOperation
impl Copy for BlendOperation
impl Eq for BlendOperation
impl StructuralEq for BlendOperation
impl StructuralPartialEq for BlendOperation
Auto Trait Implementations
impl RefUnwindSafe for BlendOperation
impl Send for BlendOperation
impl Sync for BlendOperation
impl Unpin for BlendOperation
impl UnwindSafe for BlendOperation
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V