[][src]Enum glium::texture::InternalFormat

pub enum InternalFormat {
    OneComponent {
        ty1: InternalFormatType,
        bits1: usize,
    },
    TwoComponents {
        ty1: InternalFormatType,
        bits1: usize,
        ty2: InternalFormatType,
        bits2: usize,
    },
    ThreeComponents {
        ty1: InternalFormatType,
        bits1: usize,
        ty2: InternalFormatType,
        bits2: usize,
        ty3: InternalFormatType,
        bits3: usize,
    },
    FourComponents {
        ty1: InternalFormatType,
        bits1: usize,
        ty2: InternalFormatType,
        bits2: usize,
        ty3: InternalFormatType,
        bits3: usize,
        ty4: InternalFormatType,
        bits4: usize,
    },
}

Internal format of a texture.

The actual format of a texture is not necessarily one of the predefined ones, so we have to use a very generic description.

Variants

OneComponent

The format has one component.

Fields of OneComponent

ty1: InternalFormatType

Type of the first component of the format.

bits1: usize

Number of bits of the first component.

TwoComponents

The format has two components.

Fields of TwoComponents

ty1: InternalFormatType

Type of the first component of the format.

bits1: usize

Number of bits of the first component.

ty2: InternalFormatType

Type of the second component.

bits2: usize

Number of bits of the second component.

ThreeComponents

The format has three components.

Fields of ThreeComponents

ty1: InternalFormatType

Type of the first component of the format.

bits1: usize

Number of bits of the first component.

ty2: InternalFormatType

Type of the second component.

bits2: usize

Number of bits of the second component.

ty3: InternalFormatType

Type of the third component.

bits3: usize

Number of bits of the third component.

FourComponents

The format has four components.

Fields of FourComponents

ty1: InternalFormatType

Type of the first component of the format.

bits1: usize

Number of bits of the first component.

ty2: InternalFormatType

Type of the second component.

bits2: usize

Number of bits of the second component.

ty3: InternalFormatType

Type of the third component.

bits3: usize

Number of bits of the third component.

ty4: InternalFormatType

Type of the fourth component.

bits4: usize

Number of bits of the fourth component.

Implementations

impl InternalFormat[src]

pub fn get_total_bits(&self) -> usize[src]

Returns the total number of bits of this format.

Trait Implementations

impl Clone for InternalFormat[src]

impl Copy for InternalFormat[src]

impl Debug for InternalFormat[src]

impl Eq for InternalFormat[src]

impl PartialEq<InternalFormat> for InternalFormat[src]

impl StructuralEq for InternalFormat[src]

impl StructuralPartialEq for InternalFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for InternalFormat

impl Send for InternalFormat

impl Sync for InternalFormat

impl Unpin for InternalFormat

impl UnwindSafe for InternalFormat

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> Content for T where
    T: Copy
[src]

type Owned = T

A type that holds a sized version of the content.

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.