#[repr(C)]pub enum TextureAspect {
All = 0,
StencilOnly = 1,
DepthOnly = 2,
Plane0 = 3,
Plane1 = 4,
Plane2 = 5,
}Expand description
Selects a subset of the data a Texture holds.
Used in texture views and texture copy operations.
Corresponds to WebGPU GPUTextureAspect.
Variants§
All = 0
All applicable aspects
For formats with a single aspect (including regular color formats), this means that aspect. For combined depth+stencil formats, this means both the depth and stencil aspects. For multi-planar formats, this means all planes.
StencilOnly = 1
Stencil.
DepthOnly = 2
Depth.
Plane0 = 3
Plane 0.
Plane1 = 4
Plane 1.
Plane2 = 5
Plane 2.
Implementations§
Source§impl TextureAspect
impl TextureAspect
Sourcepub const fn default() -> Self
pub const fn default() -> Self
This function is identical to Default::default() except that it is a const fn.
Trait Implementations§
Source§impl Clone for TextureAspect
impl Clone for TextureAspect
impl Copy for TextureAspect
Source§impl Debug for TextureAspect
impl Debug for TextureAspect
Source§impl Default for TextureAspect
impl Default for TextureAspect
Source§impl<'de> Deserialize<'de> for TextureAspect
impl<'de> Deserialize<'de> for TextureAspect
Source§fn 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
impl Eq for TextureAspect
Source§impl Hash for TextureAspect
impl Hash for TextureAspect
Source§impl PartialEq for TextureAspect
impl PartialEq for TextureAspect
Source§impl Serialize for TextureAspect
impl Serialize for TextureAspect
impl StructuralPartialEq for TextureAspect
Auto Trait Implementations§
impl Forget for TextureAspect
impl Freeze for TextureAspect
impl Move for TextureAspect
impl RefUnwindSafe for TextureAspect
impl Send for TextureAspect
impl Sync for TextureAspect
impl Unpin for TextureAspect
impl UnsafeUnpin for TextureAspect
impl UnwindSafe for TextureAspect
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.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