Enum librashader_common::ImageFormat
source · #[repr(u32)]
pub enum ImageFormat {
Show 31 variants
Unknown,
R8Unorm,
R8Uint,
R8Sint,
R8G8Unorm,
R8G8Uint,
R8G8Sint,
R8G8B8A8Unorm,
R8G8B8A8Uint,
R8G8B8A8Sint,
R8G8B8A8Srgb,
A2B10G10R10UnormPack32,
A2B10G10R10UintPack32,
R16Uint,
R16Sint,
R16Sfloat,
R16G16Uint,
R16G16Sint,
R16G16Sfloat,
R16G16B16A16Uint,
R16G16B16A16Sint,
R16G16B16A16Sfloat,
R32Uint,
R32Sint,
R32Sfloat,
R32G32Uint,
R32G32Sint,
R32G32Sfloat,
R32G32B32A32Uint,
R32G32B32A32Sint,
R32G32B32A32Sfloat,
}
Expand description
Supported image formats for textures.
Variants§
Unknown
R8Unorm
R8Uint
R8Sint
R8G8Unorm
R8G8Uint
R8G8Sint
R8G8B8A8Unorm
R8G8B8A8Uint
R8G8B8A8Sint
R8G8B8A8Srgb
A2B10G10R10UnormPack32
A2B10G10R10UintPack32
R16Uint
R16Sint
R16Sfloat
R16G16Uint
R16G16Sint
R16G16Sfloat
R16G16B16A16Uint
R16G16B16A16Sint
R16G16B16A16Sfloat
R32Uint
R32Sint
R32Sfloat
R32G32Uint
R32G32Sint
R32G32Sfloat
R32G32B32A32Uint
R32G32B32A32Sint
R32G32B32A32Sfloat
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<ImageFormat> for ImageFormat
impl PartialEq<ImageFormat> 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 ==
.