Enum 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 necessarly one of the predefined ones, so we have to use a very generic description.
Variants
OneComponent | The format has one component. Fields
| ||||||||||||||||
TwoComponents | The format has two components. Fields
| ||||||||||||||||
ThreeComponents | The format has three components. Fields
| ||||||||||||||||
FourComponents | The format has four components. Fields
|
Methods
impl InternalFormat
fn get_total_bits(&self) -> usize
Returns the total number of bits of this format.