pub enum TextureCompression {
RgbDxt1 = 33_776,
RgbaDxt1 = 33_777,
RgbaDxt3 = 33_778,
RgbaDxt5 = 33_779,
}
Expand description
Variants§
RgbDxt1 = 33_776
A DXT1-compressed image in an RGB image format.
RgbaDxt1 = 33_777
A DXT1-compressed image in an RGB image format with a simple on/off alpha value.
RgbaDxt3 = 33_778
A DXT3-compressed image in an RGBA image format. Compared to a 32-bit RGBA texture, it offers 4:1 compression.
RgbaDxt5 = 33_779
A DXT5-compressed image in an RGBA image format. It also provides a 4:1 compression, but differs to the DXT3 compression in how the alpha compression is done.
Trait Implementations§
Source§impl Clone for TextureCompression
impl Clone for TextureCompression
Source§fn clone(&self) -> TextureCompression
fn clone(&self) -> TextureCompression
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextureCompression
impl Debug for TextureCompression
impl Copy for TextureCompression
Auto Trait Implementations§
impl Freeze for TextureCompression
impl RefUnwindSafe for TextureCompression
impl Send for TextureCompression
impl Sync for TextureCompression
impl Unpin for TextureCompression
impl UnwindSafe for TextureCompression
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
Mutably borrows from an owned value. Read more