Expand description
Specifies the dimensionality of an image to be allocated, along with the number of mipmap layers and MSAA samples if applicable.
Variants
D1(Size, Layer)
A single one-dimensional row of texels.
D2(Size, Size, Layer, NumSamples)
Two-dimensional image.
D3(Size, Size, Size)
Volumetric image.
Implementations
sourceimpl Kind
impl Kind
sourcepub fn level_extent(&self, level: Level) -> Extent
pub fn level_extent(&self, level: Level) -> Extent
Get the extent of a particular mipmap level.
sourcepub fn compute_num_levels(&self) -> Level
pub fn compute_num_levels(&self) -> Level
Count the number of mipmap levels.
sourcepub fn num_layers(&self) -> Layer
pub fn num_layers(&self) -> Layer
Return the number of layers in an array type.
Each cube face counts as separate layer.
sourcepub fn num_samples(&self) -> NumSamples
pub fn num_samples(&self) -> NumSamples
Return the number of MSAA samples for the kind.
Trait Implementations
sourceimpl Ord for Kind
impl Ord for Kind
sourceimpl PartialOrd<Kind> for Kind
impl PartialOrd<Kind> for Kind
sourcefn partial_cmp(&self, other: &Kind) -> Option<Ordering>
fn partial_cmp(&self, other: &Kind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Kind
impl Eq for Kind
impl StructuralEq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more