Enum glium::texture::CompressedSrgbFormat
[−]
[src]
pub enum CompressedSrgbFormat {
Bptc,
S3tcDxt1NoAlpha,
S3tcDxt1Alpha,
S3tcDxt3Alpha,
S3tcDxt5Alpha,
}List of compressed pixel formats in the sRGB color space.
Variants
BptcBPTC format. sRGB with alpha. Also called BC7 by DirectX.
S3tcDxt1NoAlphaS3tcDxt1AlphaS3tcDxt3AlphaS3tcDxt5AlphaMethods
impl CompressedSrgbFormat[src]
fn get_formats_list() -> Vec<CompressedSrgbFormat>
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 CompressedSrgbFormat[src]
impl PartialEq for CompressedSrgbFormat[src]
fn eq(&self, __arg_0: &CompressedSrgbFormat) -> 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 CompressedSrgbFormat[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 CompressedSrgbFormat[src]
impl Clone for CompressedSrgbFormat[src]
fn clone(&self) -> CompressedSrgbFormat
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