#[repr(u8)]pub enum ColorFormat {
Show 14 variants
Rgba8 = 0,
Rgb8 = 1,
Rgba5551 = 2,
Rgb565 = 3,
Rgba4 = 4,
La8 = 5,
Hilo8 = 6,
L8 = 7,
A8 = 8,
La4 = 9,
L4 = 10,
A4 = 11,
Etc1 = 12,
Etc1A4 = 13,
}Expand description
Supported texture formats.
Variants§
Rgba8 = 0
8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
Rgb8 = 1
8-bit Red + 8-bit Green + 8-bit Blue #[doc(alias = “GPU_RGB8”)]
Rgba5551 = 2
5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha
Rgb565 = 3
5-bit Red + 6-bit Green + 5-bit Blue
Rgba4 = 4
4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha
La8 = 5
8-bit Luminance + 8-bit Alpha
Hilo8 = 6
8-bit Hi + 8-bit Lo
L8 = 7
8-bit Luminance
A8 = 8
8-bit Alpha
La4 = 9
4-bit Luminance + 4-bit Alpha
L4 = 10
4-bit Luminance
A4 = 11
4-bit Alpha
Etc1 = 12
ETC1 texture compression
Etc1A4 = 13
ETC1 texture compression + 4-bit Alpha
Trait Implementations§
Source§impl Clone for ColorFormat
impl Clone for ColorFormat
Source§fn clone(&self) -> ColorFormat
fn clone(&self) -> ColorFormat
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorFormat
impl Debug for ColorFormat
Source§impl PartialEq for ColorFormat
impl PartialEq for ColorFormat
Source§impl TryFrom<u8> for ColorFormat
impl TryFrom<u8> for ColorFormat
impl Copy for ColorFormat
impl Eq for ColorFormat
impl StructuralPartialEq for ColorFormat
Auto Trait Implementations§
impl Freeze for ColorFormat
impl RefUnwindSafe for ColorFormat
impl Send for ColorFormat
impl Sync for ColorFormat
impl Unpin for ColorFormat
impl UnwindSafe for ColorFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)