Enum nannou::ui::backend::glium::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
S3TC DXT1 without alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt1Alpha
S3TC DXT1 with 1-bit alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt3Alpha
S3TC DXT3, see https://www.opengl.org/wiki/S3_Texture_Compression.
S3tcDxt5Alpha
S3TC DXT5, see https://www.opengl.org/wiki/S3_Texture_Compression.
Methods
impl CompressedFormat
[src]
impl CompressedFormat
pub fn get_formats_list() -> Vec<CompressedFormat>
[src]
pub fn get_formats_list() -> Vec<CompressedFormat>
Returns a list of all the possible values of this enumeration.
pub fn to_texture_format(self) -> TextureFormat
[src]
pub fn to_texture_format(self) -> TextureFormat
Turns this format into a more generic TextureFormat
.
pub fn is_supported<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
pub fn is_supported<C>(&self, context: &C) -> bool where
C: CapabilitiesSource + ?Sized,
Returns true if this format is supported by the backend.
Trait Implementations
impl Hash for CompressedFormat
[src]
impl Hash for CompressedFormat
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for CompressedFormat
[src]
impl Clone for CompressedFormat
fn clone(&self) -> CompressedFormat
[src]
fn clone(&self) -> CompressedFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for CompressedFormat
[src]
impl Debug for CompressedFormat
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for CompressedFormat
[src]
impl Copy for CompressedFormat
impl Eq for CompressedFormat
[src]
impl Eq for CompressedFormat
impl PartialEq<CompressedFormat> for CompressedFormat
[src]
impl PartialEq<CompressedFormat> for CompressedFormat
Auto Trait Implementations
impl Send for CompressedFormat
impl Send for CompressedFormat
impl Sync for CompressedFormat
impl Sync for CompressedFormat