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,
Rg11b10Float,
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
Available on crate feature
naga-ext only.R8Snorm
Available on crate feature
naga-ext only.R8Uint
Available on crate feature
naga-ext only.R8Sint
Available on crate feature
naga-ext only.R16Unorm
Available on crate feature
naga-ext only.R16Snorm
Available on crate feature
naga-ext only.R16Uint
Available on crate feature
naga-ext only.R16Sint
Available on crate feature
naga-ext only.R16Float
Available on crate feature
naga-ext only.Rg8Unorm
Available on crate feature
naga-ext only.Rg8Snorm
Available on crate feature
naga-ext only.Rg8Uint
Available on crate feature
naga-ext only.Rg8Sint
Available on crate feature
naga-ext only.Rg16Unorm
Available on crate feature
naga-ext only.Rg16Snorm
Available on crate feature
naga-ext only.Rg16Uint
Available on crate feature
naga-ext only.Rg16Sint
Available on crate feature
naga-ext only.Rg16Float
Available on crate feature
naga-ext only.Rgb10a2Uint
Available on crate feature
naga-ext only.Rgb10a2Unorm
Available on crate feature
naga-ext only.Rg11b10Float
Available on crate feature
naga-ext only.R64Uint
Available on crate feature
naga-ext only.Rgba16Unorm
Available on crate feature
naga-ext only.Rgba16Snorm
Available on crate feature
naga-ext only.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 · 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 TexelFormat
impl Debug for TexelFormat
Source§impl<'de> Deserialize<'de> for TexelFormat
impl<'de> Deserialize<'de> for TexelFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TexelFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TexelFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TexelFormat
impl Display 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
Source§impl Serialize for TexelFormat
impl Serialize for TexelFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TokRepr for TexelFormat
impl TokRepr for TexelFormat
fn tok_repr(&self) -> TokenStream
impl Copy for TexelFormat
impl Eq 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 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
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