Enum nannou::ui::backend::glium::glium::texture::InternalFormat [] [src]

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

The format has one component.

Fields of OneComponent

Type of the first component of the format.

Number of bits of the first component.

The format has two components.

Fields of TwoComponents

Type of the first component of the format.

Number of bits of the first component.

Type of the second component.

Number of bits of the second component.

The format has three components.

Fields of ThreeComponents

Type of the first component of the format.

Number of bits of the first component.

Type of the second component.

Number of bits of the second component.

Type of the third component.

Number of bits of the third component.

The format has four components.

Fields of FourComponents

Type of the first component of the format.

Number of bits of the first component.

Type of the second component.

Number of bits of the second component.

Type of the third component.

Number of bits of the third component.

Type of the fourth component.

Number of bits of the fourth component.

Methods

impl InternalFormat
[src]

[src]

Returns the total number of bits of this format.

Trait Implementations

impl Copy for InternalFormat
[src]

impl Clone for InternalFormat
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<InternalFormat> for InternalFormat
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for InternalFormat
[src]

[src]

Formats the value using the given formatter.

impl Eq for InternalFormat
[src]