Enum vulkano::image::view::ImageViewType
source · #[non_exhaustive]#[repr(i32)]pub enum ImageViewType {
Dim1d = 0,
Dim2d = 1,
Dim3d = 2,
Cube = 3,
Dim1dArray = 4,
Dim2dArray = 5,
CubeArray = 6,
}
Expand description
The geometry type of an image view.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dim1d = 0
A one-dimensional image view with a single array layer.
Dim2d = 1
A two-dimensional image view with a single array layer.
Dim3d = 2
A three-dimensional image view with a single array layer.
Cube = 3
A cube map image view, with six array layers. One array layer is mapped to each of the faces of the cube.
Dim1dArray = 4
An arrayed one-dimensional image view, with one array layer per element.
Dim2dArray = 5
An arrayed two-dimensional image view, with one array layer per element.
CubeArray = 6
An arrayed cube map image view, with a multiple of six array layers. For each array element, one array layer is mapped to each of the faces of the cube.
Implementations§
source§impl ImageViewType
impl ImageViewType
sourcepub fn is_arrayed(self) -> bool
pub fn is_arrayed(self) -> bool
Returns whether the type is arrayed.
sourcepub fn is_compatible_with(self, image_type: ImageType) -> bool
pub fn is_compatible_with(self, image_type: ImageType) -> bool
Returns whether self
is compatible with the given image_type
.
Trait Implementations§
source§impl Clone for ImageViewType
impl Clone for ImageViewType
source§fn clone(&self) -> ImageViewType
fn clone(&self) -> ImageViewType
Returns a copy 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 ImageViewType
impl Debug for ImageViewType
source§impl From<ImageViewType> for ImageViewType
impl From<ImageViewType> for ImageViewType
source§fn from(val: ImageViewType) -> Self
fn from(val: ImageViewType) -> Self
Converts to this type from the input type.
source§impl Hash for ImageViewType
impl Hash for ImageViewType
source§impl PartialEq for ImageViewType
impl PartialEq for ImageViewType
source§fn eq(&self, other: &ImageViewType) -> bool
fn eq(&self, other: &ImageViewType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ImageViewType> for ImageViewType
impl TryFrom<ImageViewType> for ImageViewType
impl Copy for ImageViewType
impl Eq for ImageViewType
impl StructuralEq for ImageViewType
impl StructuralPartialEq for ImageViewType
Auto Trait Implementations§
impl RefUnwindSafe for ImageViewType
impl Send for ImageViewType
impl Sync for ImageViewType
impl Unpin for ImageViewType
impl UnwindSafe for ImageViewType
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