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

RgtcFormatU

Red/green compressed texture with one unsigned component.

RgtcFormatI

Red/green compressed texture with one signed component.

RgtcFormatUU

Red/green compressed texture with two unsigned components.

RgtcFormatII

Red/green compressed texture with two signed components.

BptcUnorm4

BPTC format with four components represented as integers.

BptcSignedFloat3

BPTC format with three components (no alpha) represented as signed floats.

BptcUnsignedFloat3

BPTC format with three components (no alpha) represented as unsigned floats.

S3tcDxt1NoAlpha
S3tcDxt1Alpha

S3TC DXT1 with 1-bit alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.

S3tcDxt3Alpha
S3tcDxt5Alpha

Methods

impl CompressedFormat

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

Derived Implementations

impl Eq for CompressedFormat

impl PartialEq for CompressedFormat

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

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

impl Hash for CompressedFormat

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

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

impl Copy for CompressedFormat

impl Clone for CompressedFormat

fn clone(&self) -> CompressedFormat

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

impl Debug for CompressedFormat

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