Enum cogl::MaterialAlphaFunc[][src]

#[non_exhaustive]
pub enum MaterialAlphaFunc {
    Never,
    Less,
    Equal,
    Lequal,
    Greater,
    Notequal,
    Gequal,
    Always,
    // some variants omitted
}

Alpha testing happens before blending primitives with the framebuffer and gives an opportunity to discard fragments based on a comparison with the incoming alpha value and a reference alpha value. The MaterialAlphaFunc determines how the comparison is done.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Never

Never let the fragment through.

Less

Let the fragment through if the incoming alpha value is less than the reference alpha value

Equal

Let the fragment through if the incoming alpha value equals the reference alpha value

Lequal

Let the fragment through if the incoming alpha value is less than or equal to the reference alpha value

Greater

Let the fragment through if the incoming alpha value is greater than the reference alpha value

Notequal

Let the fragment through if the incoming alpha value does not equal the reference alpha value

Gequal

Let the fragment through if the incoming alpha value is greater than or equal to the reference alpha value.

Always

Always let the fragment through.

Trait Implementations

impl Clone for MaterialAlphaFunc[src]

impl Copy for MaterialAlphaFunc[src]

impl Debug for MaterialAlphaFunc[src]

impl Display for MaterialAlphaFunc[src]

impl Eq for MaterialAlphaFunc[src]

impl<'a> FromValue<'a> for MaterialAlphaFunc[src]

impl<'a> FromValueOptional<'a> for MaterialAlphaFunc[src]

impl Hash for MaterialAlphaFunc[src]

impl Ord for MaterialAlphaFunc[src]

impl PartialEq<MaterialAlphaFunc> for MaterialAlphaFunc[src]

impl PartialOrd<MaterialAlphaFunc> for MaterialAlphaFunc[src]

impl SetValue for MaterialAlphaFunc[src]

impl StaticType for MaterialAlphaFunc[src]

impl StructuralEq for MaterialAlphaFunc[src]

impl StructuralPartialEq for MaterialAlphaFunc[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> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

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.