[][src]Struct golem::blend::BlendMode

pub struct BlendMode {
    pub equation: BlendEquation,
    pub function: BlendFunction,
    pub global_color: [f32; 4],
}

The state of the blend pipeline

See Context::set_blend_mode

Fields

equation: BlendEquation

How to combine the source and destination

function: BlendFunction

How to transform the inputs to the equation

global_color: [f32; 4]

A color in blending that's neither the source nor destination, specified as [R, G, B, A]

This provides the value for BlendInput::GlobalBlend

Trait Implementations

impl Clone for BlendMode[src]

impl Copy for BlendMode[src]

impl Debug for BlendMode[src]

impl Default for BlendMode[src]

impl PartialEq<BlendMode> for BlendMode[src]

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