Enum glium::texture::CompressedFormat
[−]
[src]
pub enum CompressedFormat {
RgtcFormatU,
RgtcFormatI,
RgtcFormatUU,
RgtcFormatII,
BptcUnorm4,
BptcSignedFloat3,
BptcUnsignedFloat3,
S3tcDxt1NoAlpha,
S3tcDxt1Alpha,
S3tcDxt3Alpha,
S3tcDxt5Alpha,
}List of compressed texture formats.
Variants
RgtcFormatURed/green compressed texture with one unsigned component.
RgtcFormatIRed/green compressed texture with one signed component.
RgtcFormatUURed/green compressed texture with two unsigned components.
RgtcFormatIIRed/green compressed texture with two signed components.
BptcUnorm4BPTC format with four components represented as integers.
BptcSignedFloat3BPTC format with three components (no alpha) represented as signed floats.
BptcUnsignedFloat3BPTC format with three components (no alpha) represented as unsigned floats.
S3tcDxt1NoAlphaS3TC DXT1 without alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt1AlphaS3TC DXT1 with 1-bit alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt3AlphaS3TC DXT3, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt5AlphaS3TC DXT5, see https://www.opengl.org/wiki/S3_Texture_Compression.
Methods
impl CompressedFormat[src]
fn get_formats_list() -> Vec<CompressedFormat>
Returns a list of all the possible values of this enumeration.
fn to_texture_format(self) -> TextureFormat
Turns this format into a more generic TextureFormat.
fn is_supported<C>(&self, context: &C) -> bool where C: CapabilitiesSource
Returns true if this format is supported by the backend.
Trait Implementations
impl Eq for CompressedFormat[src]
impl PartialEq for CompressedFormat[src]
fn eq(&self, __arg_0: &CompressedFormat) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for CompressedFormat[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Copy for CompressedFormat[src]
impl Clone for CompressedFormat[src]
fn clone(&self) -> CompressedFormat
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