#[repr(u32)]pub enum ImageFormat {
Show 40 variants
Unknown = 0,
Rgba32f = 1,
Rgba16f = 2,
R32f = 3,
Rgba8 = 4,
Rgba8Snorm = 5,
Rg32f = 6,
Rg16f = 7,
R11fG11fB10f = 8,
R16f = 9,
Rgba16 = 10,
Rgb10A2 = 11,
Rg16 = 12,
Rg8 = 13,
R16 = 14,
R8 = 15,
Rgba16Snorm = 16,
Rg16Snorm = 17,
Rg8Snorm = 18,
R16Snorm = 19,
R8Snorm = 20,
Rgba32i = 21,
Rgba16i = 22,
Rgba8i = 23,
R32i = 24,
Rg32i = 25,
Rg16i = 26,
Rg8i = 27,
R16i = 28,
R8i = 29,
Rgba32ui = 30,
Rgba16ui = 31,
Rgba8ui = 32,
R32ui = 33,
Rgb10a2ui = 34,
Rg32ui = 35,
Rg16ui = 36,
Rg8ui = 37,
R16ui = 38,
R8ui = 39,
}
Variants§
Unknown = 0
Rgba32f = 1
Rgba16f = 2
R32f = 3
Rgba8 = 4
Rgba8Snorm = 5
Rg32f = 6
Rg16f = 7
R11fG11fB10f = 8
R16f = 9
Rgba16 = 10
Rgb10A2 = 11
Rg16 = 12
Rg8 = 13
R16 = 14
R8 = 15
Rgba16Snorm = 16
Rg16Snorm = 17
Rg8Snorm = 18
R16Snorm = 19
R8Snorm = 20
Rgba32i = 21
Rgba16i = 22
Rgba8i = 23
R32i = 24
Rg32i = 25
Rg16i = 26
Rg8i = 27
R16i = 28
R8i = 29
Rgba32ui = 30
Rgba16ui = 31
Rgba8ui = 32
R32ui = 33
Rgb10a2ui = 34
Rg32ui = 35
Rg16ui = 36
Rg8ui = 37
R16ui = 38
R8ui = 39
Implementations§
Source§impl ImageFormat
impl ImageFormat
pub fn from(val: u32) -> Option<ImageFormat>
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
Returns a copy 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 ImageFormat
impl Debug for ImageFormat
Source§impl Hash for ImageFormat
impl Hash for ImageFormat
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
impl Copy for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)