Enum glium::texture::CompressedSrgbFormat [] [src]

pub enum CompressedSrgbFormat {
    Bptc,
    S3tcDxt1NoAlpha,
    S3tcDxt1Alpha,
    S3tcDxt3Alpha,
    S3tcDxt5Alpha,
}

List of compressed pixel formats in the sRGB color space.

Variants

Bptc

BPTC format. sRGB with alpha. Also called BC7 by DirectX.

S3tcDxt1NoAlpha
S3tcDxt1Alpha
S3tcDxt3Alpha
S3tcDxt5Alpha

Methods

impl CompressedSrgbFormat

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

Derived Implementations

impl Eq for CompressedSrgbFormat

impl PartialEq for CompressedSrgbFormat

fn eq(&self, __arg_0: &CompressedSrgbFormat) -> bool

fn ne(&self, __arg_0: &CompressedSrgbFormat) -> bool

impl Hash for CompressedSrgbFormat

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Copy for CompressedSrgbFormat

impl Clone for CompressedSrgbFormat

fn clone(&self) -> CompressedSrgbFormat

fn clone_from(&mut self, source: &Self)

impl Debug for CompressedSrgbFormat

fn fmt(&self, __arg_0: &mut Formatter) -> Result