pub enum TexelFormat {
Show 41 variants
Rgba8Unorm,
Rgba8Snorm,
Rgba8Uint,
Rgba8Sint,
Rgba16Uint,
Rgba16Sint,
Rgba16Float,
R32Uint,
R32Sint,
R32Float,
Rg32Uint,
Rg32Sint,
Rg32Float,
Rgba32Uint,
Rgba32Sint,
Rgba32Float,
Bgra8Unorm,
R8Unorm,
R8Snorm,
R8Uint,
R8Sint,
R16Unorm,
R16Snorm,
R16Uint,
R16Sint,
R16Float,
Rg8Unorm,
Rg8Snorm,
Rg8Uint,
Rg8Sint,
Rg16Unorm,
Rg16Snorm,
Rg16Uint,
Rg16Sint,
Rg16Float,
Rgb10a2Uint,
Rgb10a2Unorm,
Rg11b10Ufloat,
R64Uint,
Rgba16Unorm,
Rgba16Snorm,
}Expand description
Texel format enumeration.
Reference: https://www.w3.org/TR/WGSL/#texel-format
Variants§
Rgba8Unorm
Rgba8Snorm
Rgba8Uint
Rgba8Sint
Rgba16Uint
Rgba16Sint
Rgba16Float
R32Uint
R32Sint
R32Float
Rg32Uint
Rg32Sint
Rg32Float
Rgba32Uint
Rgba32Sint
Rgba32Float
Bgra8Unorm
R8Unorm
R8Snorm
R8Uint
R8Sint
R16Unorm
R16Snorm
R16Uint
R16Sint
R16Float
Rg8Unorm
Rg8Snorm
Rg8Uint
Rg8Sint
Rg16Unorm
Rg16Snorm
Rg16Uint
Rg16Sint
Rg16Float
Rgb10a2Uint
Rgb10a2Unorm
Rg11b10Ufloat
R64Uint
Rgba16Unorm
Rgba16Snorm
Implementations§
Source§impl TexelFormat
impl TexelFormat
pub fn channel_type(&self) -> SampledType
pub fn num_channels(&self) -> u32
Trait Implementations§
Source§impl Clone for TexelFormat
impl Clone for TexelFormat
Source§fn clone(&self) -> TexelFormat
fn clone(&self) -> TexelFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TexelFormat
Source§impl Debug for TexelFormat
impl Debug for TexelFormat
Source§impl Display for TexelFormat
impl Display for TexelFormat
impl Eq for TexelFormat
Source§impl FromStr for TexelFormat
impl FromStr for TexelFormat
Source§impl Hash for TexelFormat
impl Hash for TexelFormat
Source§impl PartialEq for TexelFormat
impl PartialEq for TexelFormat
impl StructuralPartialEq for TexelFormat
Auto Trait Implementations§
impl Freeze for TexelFormat
impl RefUnwindSafe for TexelFormat
impl Send for TexelFormat
impl Sync for TexelFormat
impl Unpin for TexelFormat
impl UnsafeUnpin for TexelFormat
impl UnwindSafe for TexelFormat
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more