[][src]Enum fna3d::BlendFunction

#[repr(u32)]pub enum BlendFunction {
    Add,
    Substract,
    ReverseSubstract,
    Max,
    Min,
}

BlendState component, which specifies color blending function (expression)

Variants

Add

(src_color * src_blend) + (dest_color * dest_blend)

Substract

(src_color * src_blend) - (dest_color * dest_blend)

ReverseSubstract

(dest_color * dest_blend) - (src_color * src_blend)

Max

min((src_color * src_blend),(dest_color * dest_blend))

Min

max((src_color * src_blend),(dest_color * dest_blend))

Trait Implementations

impl Clone for BlendFunction[src]

impl Copy for BlendFunction[src]

impl Debug for BlendFunction[src]

impl Eq for BlendFunction[src]

impl FromPrimitive for BlendFunction[src]

impl Hash for BlendFunction[src]

impl PartialEq<BlendFunction> for BlendFunction[src]

impl StructuralEq for BlendFunction[src]

impl StructuralPartialEq for BlendFunction[src]

impl ToPrimitive for BlendFunction[src]

impl TryFrom<i16> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i32> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i64> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i8> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u16> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u32> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u64> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u8> for BlendFunction[src]

type Error = &'static str

The type returned in the event of a conversion error.

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.