Enum librashader_common::ImageFormat
source · #[repr(u32)]pub enum ImageFormat {
Show 31 variants
Unknown = 0,
R8Unorm = 1,
R8Uint = 2,
R8Sint = 3,
R8G8Unorm = 4,
R8G8Uint = 5,
R8G8Sint = 6,
R8G8B8A8Unorm = 7,
R8G8B8A8Uint = 8,
R8G8B8A8Sint = 9,
R8G8B8A8Srgb = 10,
A2B10G10R10UnormPack32 = 11,
A2B10G10R10UintPack32 = 12,
R16Uint = 13,
R16Sint = 14,
R16Sfloat = 15,
R16G16Uint = 16,
R16G16Sint = 17,
R16G16Sfloat = 18,
R16G16B16A16Uint = 19,
R16G16B16A16Sint = 20,
R16G16B16A16Sfloat = 21,
R32Uint = 22,
R32Sint = 23,
R32Sfloat = 24,
R32G32Uint = 25,
R32G32Sint = 26,
R32G32Sfloat = 27,
R32G32B32A32Uint = 28,
R32G32B32A32Sint = 29,
R32G32B32A32Sfloat = 30,
}
Expand description
Supported image formats for textures.
Variants§
Unknown = 0
R8Unorm = 1
R8Uint = 2
R8Sint = 3
R8G8Unorm = 4
R8G8Uint = 5
R8G8Sint = 6
R8G8B8A8Unorm = 7
R8G8B8A8Uint = 8
R8G8B8A8Sint = 9
R8G8B8A8Srgb = 10
A2B10G10R10UnormPack32 = 11
A2B10G10R10UintPack32 = 12
R16Uint = 13
R16Sint = 14
R16Sfloat = 15
R16G16Uint = 16
R16G16Sint = 17
R16G16Sfloat = 18
R16G16B16A16Uint = 19
R16G16B16A16Sint = 20
R16G16B16A16Sfloat = 21
R32Uint = 22
R32Sint = 23
R32Sfloat = 24
R32G32Uint = 25
R32G32Sint = 26
R32G32Sfloat = 27
R32G32B32A32Uint = 28
R32G32B32A32Sint = 29
R32G32B32A32Sfloat = 30
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 Default for ImageFormat
impl Default for ImageFormat
source§fn default() -> ImageFormat
fn default() -> ImageFormat
Returns the “default value” for a type. Read more
source§impl FromStr for ImageFormat
impl FromStr for ImageFormat
source§impl Hash for ImageFormat
impl Hash for ImageFormat
source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
source§fn eq(&self, other: &ImageFormat) -> bool
fn eq(&self, other: &ImageFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageFormat
impl Eq for ImageFormat
impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more