[][src]Enum golem::blend::BlendEquation

pub enum BlendEquation {
    Same(BlendOperation),
    Separate {
        color: BlendOperation,
        alpha: BlendOperation,
    },
}

How to combine the values when blending

Almost all the time you'll want BlendEquation::Same(BlendOperation::Add), but there are cases where other blend equatiosn come in handy.

Variants

Apply the same equation to the color and alpha of the blended pixels

Separate

Apply a different equation to the color and alpha channel of the blended pixels

Fields of Separate

color: BlendOperationalpha: BlendOperation

Trait Implementations

impl Clone for BlendEquation[src]

impl Copy for BlendEquation[src]

impl Debug for BlendEquation[src]

impl Default for BlendEquation[src]

impl Eq for BlendEquation[src]

impl Hash for BlendEquation[src]

impl PartialEq<BlendEquation> for BlendEquation[src]

impl StructuralEq for BlendEquation[src]

impl StructuralPartialEq for BlendEquation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.