Enum glium::texture::CompressedFormat
source · pub enum CompressedFormat {
RgtcFormatU,
RgtcFormatI,
RgtcFormatUU,
RgtcFormatII,
BptcUnorm4,
BptcSignedFloat3,
BptcUnsignedFloat3,
S3tcDxt1NoAlpha,
S3tcDxt1Alpha,
S3tcDxt3Alpha,
S3tcDxt5Alpha,
}
Expand description
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.
Implementations§
source§impl CompressedFormat
impl CompressedFormat
sourcepub fn get_formats_list() -> Vec<CompressedFormat>
pub fn get_formats_list() -> Vec<CompressedFormat>
Returns a list of all the possible values of this enumeration.
sourcepub fn to_texture_format(self) -> TextureFormat
pub fn to_texture_format(self) -> TextureFormat
Turns this format into a more generic TextureFormat
.
sourcepub fn is_supported<C>(&self, context: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
pub fn is_supported<C>(&self, context: &C) -> boolwhere
C: CapabilitiesSource + ?Sized,
Returns true if this format is supported by the backend.
Trait Implementations§
source§impl Clone for CompressedFormat
impl Clone for CompressedFormat
source§fn clone(&self) -> CompressedFormat
fn clone(&self) -> CompressedFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompressedFormat
impl Debug for CompressedFormat
source§impl Hash for CompressedFormat
impl Hash for CompressedFormat
source§impl PartialEq for CompressedFormat
impl PartialEq for CompressedFormat
impl Copy for CompressedFormat
impl Eq for CompressedFormat
impl StructuralPartialEq for CompressedFormat
Auto Trait Implementations§
impl Freeze for CompressedFormat
impl RefUnwindSafe for CompressedFormat
impl Send for CompressedFormat
impl Sync for CompressedFormat
impl Unpin for CompressedFormat
impl UnwindSafe for CompressedFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere
T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.