Struct vulkano::image::ImageCreateFlags
source · [−]pub struct ImageCreateFlags {
pub sparse_binding: bool,
pub sparse_residency: bool,
pub sparse_aliased: bool,
pub mutable_format: bool,
pub cube_compatible: bool,
pub array_2d_compatible: bool,
pub block_texel_view_compatible: bool,
}
Expand description
Flags that can be set when creating a new image.
Fields
sparse_binding: bool
The image will be backed by sparsely bound memory.
Requires the sparse_binding
feature to be
enabled.
sparse_residency: bool
The image is allowed to be only partially resident in memory, not all parts of the image must be backed by memory.
Requires the sparse_binding
flag, and depending on the image dimensions, either the
sparse_residency_image2_d
or the
sparse_residency_image3_d
feature to
be enabled. For a multisampled image, this also requires the appropriate sparse residency
feature for the number of samples to be enabled.
sparse_aliased: bool
The image can be backed by memory that is shared (aliased) with other images.
Requires the sparse_binding
flag and the
sparse_residency_aliased
feature to
be enabled.
mutable_format: bool
For non-multi-planar formats, an image view wrapping this image can have a different format.
For multi-planar formats, an image view wrapping this image can be created from a single plane of the image.
cube_compatible: bool
For 2D images, allows creation of an image view of type Cube
or CubeArray
.
array_2d_compatible: bool
For 3D images, allows creation of an image view of type Dim2d
or Dim2dArray
.
block_texel_view_compatible: bool
For images with a compressed format, allows creation of an image view with an uncompressed format, where each texel in the view will correspond to a compressed texel block in the image.
Requires mutable_format
.
Implementations
Trait Implementations
sourceimpl Clone for ImageCreateFlags
impl Clone for ImageCreateFlags
sourcefn clone(&self) -> ImageCreateFlags
fn clone(&self) -> ImageCreateFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageCreateFlags
impl Debug for ImageCreateFlags
sourceimpl Default for ImageCreateFlags
impl Default for ImageCreateFlags
sourcefn default() -> ImageCreateFlags
fn default() -> ImageCreateFlags
Returns the “default value” for a type. Read more
sourceimpl From<ImageCreateFlags> for ImageCreateFlags
impl From<ImageCreateFlags> for ImageCreateFlags
sourcefn from(flags: ImageCreateFlags) -> Self
fn from(flags: ImageCreateFlags) -> Self
Performs the conversion.
sourceimpl PartialEq<ImageCreateFlags> for ImageCreateFlags
impl PartialEq<ImageCreateFlags> for ImageCreateFlags
sourcefn eq(&self, other: &ImageCreateFlags) -> bool
fn eq(&self, other: &ImageCreateFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageCreateFlags) -> bool
fn ne(&self, other: &ImageCreateFlags) -> bool
This method tests for !=
.
impl Copy for ImageCreateFlags
impl Eq for ImageCreateFlags
impl StructuralEq for ImageCreateFlags
impl StructuralPartialEq for ImageCreateFlags
Auto Trait Implementations
impl RefUnwindSafe for ImageCreateFlags
impl Send for ImageCreateFlags
impl Sync for ImageCreateFlags
impl Unpin for ImageCreateFlags
impl UnwindSafe for ImageCreateFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more