Enum naga::StorageFormat
source · [−]pub enum StorageFormat {
Show 32 variants
R8Unorm,
R8Snorm,
R8Uint,
R8Sint,
R16Uint,
R16Sint,
R16Float,
Rg8Unorm,
Rg8Snorm,
Rg8Uint,
Rg8Sint,
R32Uint,
R32Sint,
R32Float,
Rg16Uint,
Rg16Sint,
Rg16Float,
Rgba8Unorm,
Rgba8Snorm,
Rgba8Uint,
Rgba8Sint,
Rgb10a2Unorm,
Rg11b10Float,
Rg32Uint,
Rg32Sint,
Rg32Float,
Rgba16Uint,
Rgba16Sint,
Rgba16Float,
Rgba32Uint,
Rgba32Sint,
Rgba32Float,
}
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
Rgb10a2Unorm
Rg11b10Float
Rg32Uint
Rg32Sint
Rg32Float
Rgba16Uint
Rgba16Sint
Rgba16Float
Rgba32Uint
Rgba32Sint
Rgba32Float
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for StorageFormat
impl<'arbitrary> Arbitrary<'arbitrary> for StorageFormat
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Clone for StorageFormat
impl Clone for StorageFormat
sourcefn clone(&self) -> StorageFormat
fn clone(&self) -> StorageFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StorageFormat
impl Debug for StorageFormat
sourceimpl<'de> Deserialize<'de> for StorageFormat
impl<'de> Deserialize<'de> for StorageFormat
sourcefn 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
sourceimpl From<StorageFormat> for ImageFormat
impl From<StorageFormat> for ImageFormat
sourcefn from(format: StorageFormat) -> Self
fn from(format: StorageFormat) -> Self
Converts to this type from the input type.
sourceimpl From<StorageFormat> for ScalarKind
impl From<StorageFormat> for ScalarKind
sourcefn from(format: StorageFormat) -> Self
fn from(format: StorageFormat) -> Self
Converts to this type from the input type.
sourceimpl Hash for StorageFormat
impl Hash for StorageFormat
sourceimpl Ord for StorageFormat
impl Ord for StorageFormat
sourceimpl PartialEq<StorageFormat> for StorageFormat
impl PartialEq<StorageFormat> for StorageFormat
sourceimpl PartialOrd<StorageFormat> for StorageFormat
impl PartialOrd<StorageFormat> for StorageFormat
sourcefn partial_cmp(&self, other: &StorageFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &StorageFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Serialize for StorageFormat
impl Serialize for StorageFormat
impl Copy for StorageFormat
impl Eq for StorageFormat
impl StructuralEq for StorageFormat
impl StructuralPartialEq for StorageFormat
Auto Trait Implementations
impl RefUnwindSafe for StorageFormat
impl Send for StorageFormat
impl Sync for StorageFormat
impl Unpin for StorageFormat
impl UnwindSafe for StorageFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.