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
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
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
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
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. |
Methods
impl InternalFormat
[src]
fn get_total_bits(&self) -> usize
Returns the total number of bits of this format.
Trait Implementations
impl Eq for InternalFormat
[src]
impl PartialEq for InternalFormat
[src]
fn eq(&self, __arg_0: &InternalFormat) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InternalFormat) -> bool
This method tests for !=
.
impl Debug for InternalFormat
[src]
impl Clone for InternalFormat
[src]
fn clone(&self) -> InternalFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more