pub enum TextureType {
Show 20 variants
Sampled1D(SampledType),
Sampled2D(SampledType),
Sampled2DArray(SampledType),
Sampled3D(SampledType),
SampledCube(SampledType),
SampledCubeArray(SampledType),
Multisampled2D(SampledType),
DepthMultisampled2D,
External,
Storage1D(TexelFormat, AccessMode),
Storage2D(TexelFormat, AccessMode),
Storage2DArray(TexelFormat, AccessMode),
Storage3D(TexelFormat, AccessMode),
Depth2D,
Depth2DArray,
DepthCube,
DepthCubeArray,
Sampled1DArray(SampledType),
Storage1DArray(TexelFormat, AccessMode),
Multisampled2DArray(SampledType),
}Variants§
Sampled1D(SampledType)
Sampled2D(SampledType)
Sampled2DArray(SampledType)
Sampled3D(SampledType)
SampledCube(SampledType)
SampledCubeArray(SampledType)
Multisampled2D(SampledType)
DepthMultisampled2D
External
Storage1D(TexelFormat, AccessMode)
Storage2D(TexelFormat, AccessMode)
Storage2DArray(TexelFormat, AccessMode)
Storage3D(TexelFormat, AccessMode)
Depth2D
Depth2DArray
DepthCube
DepthCubeArray
Sampled1DArray(SampledType)
Available on crate feature
naga-ext only.Storage1DArray(TexelFormat, AccessMode)
Available on crate feature
naga-ext only.Multisampled2DArray(SampledType)
Available on crate feature
naga-ext only.Implementations§
Source§impl TextureType
impl TextureType
pub fn dimensions(&self) -> TextureDimensions
pub fn sampled_type(&self) -> Option<SampledType>
pub fn channel_type(&self) -> SampledType
pub fn is_depth(&self) -> bool
pub fn is_storage(&self) -> bool
pub fn is_sampled(&self) -> bool
pub fn is_arrayed(&self) -> bool
pub fn is_multisampled(&self) -> bool
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
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 TextureType
impl Debug for TextureType
Source§impl Display for TextureType
impl Display for TextureType
Source§impl Hash for TextureType
impl Hash for TextureType
Source§impl PartialEq for TextureType
impl PartialEq for TextureType
impl Eq for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
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