pub enum TexelFormat {
Show 17 variants
Rgba8Unorm,
Rgba8Snorm,
Rgba8Uint,
Rgba8Sint,
Rgba16Uint,
Rgba16Sint,
Rgba16Float,
R32Uint,
R32Sint,
R32Float,
Rg32Uint,
Rg32Sint,
Rg32Float,
Rgba32Uint,
Rgba32Sint,
Rgba32Float,
Bgra8Unorm,
}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
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 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
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