#[non_exhaustive]pub enum TextureFormat {
Show 37 variants
R8Unorm,
Rg8Unorm,
Rg8Snorm,
Rgba8Unorm,
Rgba8UnormSrgb,
Bgra8Unorm,
Bgra8UnormSrgb,
Rgba8Snorm,
R16Float,
Rg16Float,
Rgba16Float,
R32Float,
Rg32Float,
Rgba32Float,
R32Uint,
Rg32Uint,
Rgba32Uint,
Depth32Float,
Depth32FloatStencil8Uint,
Stencil8Uint,
Bc1Unorm,
Bc1UnormSrgb,
Bc2Unorm,
Bc2UnormSrgb,
Bc3Unorm,
Bc3UnormSrgb,
Bc4Unorm,
Bc4Snorm,
Bc5Unorm,
Bc5Snorm,
Bc6hUfloat,
Bc6hFloat,
Bc7Unorm,
Bc7UnormSrgb,
Rgb10a2Unorm,
Rg11b10Ufloat,
Rgb9e5Ufloat,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
R8Unorm
Rg8Unorm
Rg8Snorm
Rgba8Unorm
Rgba8UnormSrgb
Bgra8Unorm
Bgra8UnormSrgb
Rgba8Snorm
R16Float
Rg16Float
Rgba16Float
R32Float
Rg32Float
Rgba32Float
R32Uint
Rg32Uint
Rgba32Uint
Depth32Float
Depth32FloatStencil8Uint
Stencil8Uint
Bc1Unorm
Bc1UnormSrgb
Bc2Unorm
Bc2UnormSrgb
Bc3Unorm
Bc3UnormSrgb
Bc4Unorm
Bc4Snorm
Bc5Unorm
Bc5Snorm
Bc6hUfloat
Bc6hFloat
Bc7Unorm
Bc7UnormSrgb
Rgb10a2Unorm
Rg11b10Ufloat
Rgb9e5Ufloat
Implementations§
Source§impl TextureFormat
impl TextureFormat
pub const fn block_info(&self) -> TexelBlockInfo
pub fn aspects(&self) -> TexelAspects
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
Source§fn clone(&self) -> TextureFormat
fn clone(&self) -> TextureFormat
Returns a duplicate 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 TextureFormat
impl Debug for TextureFormat
Source§impl From<TextureFormat> for ColorTargetState
impl From<TextureFormat> for ColorTargetState
Source§fn from(format: TextureFormat) -> Self
fn from(format: TextureFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for TextureFormat
impl Hash for TextureFormat
Source§impl Ord for TextureFormat
impl Ord for TextureFormat
Source§fn cmp(&self, other: &TextureFormat) -> Ordering
fn cmp(&self, other: &TextureFormat) -> 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 TextureFormat
impl PartialEq for TextureFormat
Source§impl PartialOrd for TextureFormat
impl PartialOrd for TextureFormat
impl Copy for TextureFormat
impl Eq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Freeze for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnwindSafe for TextureFormat
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§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.