Enum vulkano::image::ImageTiling
source · #[non_exhaustive]#[repr(i32)]pub enum ImageTiling {
Optimal = 0,
Linear = 1,
DrmFormatModifier = 1_000_158_000,
}
Expand description
The arrangement of texels or texel blocks in an image.
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.
Optimal = 0
The arrangement is optimized for access in an implementation-defined way.
This layout is opaque to the user, and cannot be queried. Data can only be read from or written to the image by using Vulkan commands, such as copy commands.
Linear = 1
The texels are laid out in row-major order. This allows easy access by the user, but is much slower for the device, so it should be used only in specific situations that call for it.
You can query the layout by calling Image::subresource_layout
.
DrmFormatModifier = 1_000_158_000
The tiling is defined by a Linux DRM format modifier associated with the image.
You can query the layout by calling Image::subresource_layout
.
Trait Implementations§
source§impl Clone for ImageTiling
impl Clone for ImageTiling
source§fn clone(&self) -> ImageTiling
fn clone(&self) -> ImageTiling
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 ImageTiling
impl Debug for ImageTiling
source§impl From<ImageTiling> for AllocationType
impl From<ImageTiling> for AllocationType
source§fn from(tiling: ImageTiling) -> Self
fn from(tiling: ImageTiling) -> Self
Converts to this type from the input type.
source§impl From<ImageTiling> for ImageTiling
impl From<ImageTiling> for ImageTiling
source§fn from(val: ImageTiling) -> Self
fn from(val: ImageTiling) -> Self
Converts to this type from the input type.
source§impl Hash for ImageTiling
impl Hash for ImageTiling
source§impl PartialEq for ImageTiling
impl PartialEq for ImageTiling
source§fn eq(&self, other: &ImageTiling) -> bool
fn eq(&self, other: &ImageTiling) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ImageTiling> for ImageTiling
impl TryFrom<ImageTiling> for ImageTiling
impl Copy for ImageTiling
impl Eq for ImageTiling
impl StructuralEq for ImageTiling
impl StructuralPartialEq for ImageTiling
Auto Trait Implementations§
impl RefUnwindSafe for ImageTiling
impl Send for ImageTiling
impl Sync for ImageTiling
impl Unpin for ImageTiling
impl UnwindSafe for ImageTiling
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