[][src]Enum golem::blend::BlendFunction

pub enum BlendFunction {
    Same {
        source: BlendFactor,
        destination: BlendFactor,
    },
    Separate {
        source_color: BlendFactor,
        source_alpha: BlendFactor,
        destination_color: BlendFactor,
        destination_alpha: BlendFactor,
    },
}

The blend function controls how the source and destination are transformed

Before being passed to the BlendEquation, the source and destination are multiplied by the value determined by BlendFunction.

Variants

Same

Use the same BlendFactor on the color and alpha channels

Fields of Same

source: BlendFactordestination: BlendFactor
Separate

Use different BlendFactors on the color and alpha channels

Fields of Separate

source_color: BlendFactorsource_alpha: BlendFactordestination_color: BlendFactordestination_alpha: BlendFactor

Trait Implementations

impl Clone for BlendFunction[src]

impl Copy for BlendFunction[src]

impl Debug for BlendFunction[src]

impl Default for BlendFunction[src]

impl Eq for BlendFunction[src]

impl Hash for BlendFunction[src]

impl PartialEq<BlendFunction> for BlendFunction[src]

impl StructuralEq for BlendFunction[src]

impl StructuralPartialEq for BlendFunction[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.