[][src]Enum rendy_core::hal::pso::BlendOp

pub enum BlendOp {
    Add {
        src: Factor,
        dst: Factor,
    },
    Sub {
        src: Factor,
        dst: Factor,
    },
    RevSub {
        src: Factor,
        dst: Factor,
    },
    Min,
    Max,
}

Blending operations.

Variants

Add

Adds source and destination. Source and destination are multiplied by factors before addition.

Fields of Add

src: Factordst: Factor
Sub

Subtracts destination from source. Source and destination are multiplied by factors before subtraction.

Fields of Sub

src: Factordst: Factor
RevSub

Subtracts source from destination. Source and destination are multiplied by factors before subtraction.

Fields of RevSub

src: Factordst: Factor
Min

Component-wise minimum value of source and destination.

Max

Component-wise maximum value of source and destination.

Implementations

impl BlendOp[src]

pub const REPLACE: BlendOp[src]

Replace the destination value with the source.

pub const ADD: BlendOp[src]

Add the source and destination together.

pub const ALPHA: BlendOp[src]

Alpha blend the source and destination together.

pub const PREMULTIPLIED_ALPHA: BlendOp[src]

Alpha blend a premultiplied-alpha source with the destination.

Trait Implementations

impl Clone for BlendOp[src]

impl Copy for BlendOp[src]

impl Debug for BlendOp[src]

impl Eq for BlendOp[src]

impl Hash for BlendOp[src]

impl Ord for BlendOp[src]

impl PartialEq<BlendOp> for BlendOp[src]

impl PartialOrd<BlendOp> for BlendOp[src]

impl StructuralEq for BlendOp[src]

impl StructuralPartialEq for BlendOp[src]

Auto Trait Implementations

impl RefUnwindSafe for BlendOp

impl Send for BlendOp

impl Sync for BlendOp

impl Unpin for BlendOp

impl UnwindSafe for BlendOp

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.