pub enum TextureFormat {
Rgba8,
Rgb8,
WebP,
Ktx2Etc1s,
Ktx2Uastc,
Rgba32Float,
}Expand description
Supported texture formats
Variants§
Rgba8
Standard RGBA 8-bit per channel
Rgb8
Standard RGB 8-bit per channel
WebP
WebP compressed format
Ktx2Etc1s
KTX2 with ETC1S compression (efficient for distribution)
Ktx2Uastc
KTX2 with UASTC compression (high quality, transcodable)
Rgba32Float
HDR 32-bit Float per channel (RGBA32F)
Implementations§
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
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 TextureFormat
impl Debug for TextureFormat
Source§impl PartialEq for TextureFormat
impl PartialEq for TextureFormat
impl Copy for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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