Enum naga::StorageFormat
source · pub enum StorageFormat {
Show 40 variants
R8Unorm,
R8Snorm,
R8Uint,
R8Sint,
R16Uint,
R16Sint,
R16Float,
Rg8Unorm,
Rg8Snorm,
Rg8Uint,
Rg8Sint,
R32Uint,
R32Sint,
R32Float,
Rg16Uint,
Rg16Sint,
Rg16Float,
Rgba8Unorm,
Rgba8Snorm,
Rgba8Uint,
Rgba8Sint,
Bgra8Unorm,
Rgb10a2Uint,
Rgb10a2Unorm,
Rg11b10Ufloat,
Rg32Uint,
Rg32Sint,
Rg32Float,
Rgba16Uint,
Rgba16Sint,
Rgba16Float,
Rgba32Uint,
Rgba32Sint,
Rgba32Float,
R16Unorm,
R16Snorm,
Rg16Unorm,
Rg16Snorm,
Rgba16Unorm,
Rgba16Snorm,
}
Expand description
Image storage format.
Variants§
R8Unorm
R8Snorm
R8Uint
R8Sint
R16Uint
R16Sint
R16Float
Rg8Unorm
Rg8Snorm
Rg8Uint
Rg8Sint
R32Uint
R32Sint
R32Float
Rg16Uint
Rg16Sint
Rg16Float
Rgba8Unorm
Rgba8Snorm
Rgba8Uint
Rgba8Sint
Bgra8Unorm
Rgb10a2Uint
Rgb10a2Unorm
Rg11b10Ufloat
Rg32Uint
Rg32Sint
Rg32Float
Rgba16Uint
Rgba16Sint
Rgba16Float
Rgba32Uint
Rgba32Sint
Rgba32Float
R16Unorm
R16Snorm
Rg16Unorm
Rg16Snorm
Rgba16Unorm
Rgba16Snorm
Implementations§
Trait Implementations§
source§impl Clone for StorageFormat
impl Clone for StorageFormat
source§fn clone(&self) -> StorageFormat
fn clone(&self) -> StorageFormat
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 StorageFormat
impl Debug for StorageFormat
source§impl<'de> Deserialize<'de> for StorageFormat
impl<'de> Deserialize<'de> for StorageFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<StorageFormat> for ImageFormat
impl From<StorageFormat> for ImageFormat
source§fn from(format: StorageFormat) -> Self
fn from(format: StorageFormat) -> Self
Converts to this type from the input type.
source§impl From<StorageFormat> for Scalar
impl From<StorageFormat> for Scalar
source§fn from(format: StorageFormat) -> Self
fn from(format: StorageFormat) -> Self
Converts to this type from the input type.
source§impl Hash for StorageFormat
impl Hash for StorageFormat
source§impl Ord for StorageFormat
impl Ord for StorageFormat
source§fn cmp(&self, other: &StorageFormat) -> Ordering
fn cmp(&self, other: &StorageFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StorageFormat
impl PartialEq for StorageFormat
source§fn eq(&self, other: &StorageFormat) -> bool
fn eq(&self, other: &StorageFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StorageFormat
impl PartialOrd for StorageFormat
source§fn partial_cmp(&self, other: &StorageFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &StorageFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for StorageFormat
impl Serialize for StorageFormat
impl Copy for StorageFormat
impl Eq for StorageFormat
impl StructuralPartialEq for StorageFormat
Auto Trait Implementations§
impl Freeze for StorageFormat
impl RefUnwindSafe for StorageFormat
impl Send for StorageFormat
impl Sync for StorageFormat
impl Unpin for StorageFormat
impl UnwindSafe for StorageFormat
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.