Enum cogl::TextureComponents[][src]

#[non_exhaustive]
pub enum TextureComponents {
    A,
    Rg,
    Rgb,
    Rgba,
    Depth,
    // some variants omitted
}

See Texture::set_components.

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.
A

Only the alpha component

Rg

Red and green components. Note that this can only be used if the FeatureID::OglFeatureIdTextureRg feature is advertised.

Rgb

Red, green and blue components

Rgba

Red, green, blue and alpha components

Depth

Only a depth component

Trait Implementations

impl Clone for TextureComponents[src]

impl Copy for TextureComponents[src]

impl Debug for TextureComponents[src]

impl Display for TextureComponents[src]

impl Eq for TextureComponents[src]

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

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

impl Hash for TextureComponents[src]

impl Ord for TextureComponents[src]

impl PartialEq<TextureComponents> for TextureComponents[src]

impl PartialOrd<TextureComponents> for TextureComponents[src]

impl SetValue for TextureComponents[src]

impl StaticType for TextureComponents[src]

impl StructuralEq for TextureComponents[src]

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