Struct vulkano::image::ImageCreateFlags
source · pub struct ImageCreateFlags(/* private fields */);
Expand description
Flags specifying additional properties of an image.
Implementations§
source§impl ImageCreateFlags
impl ImageCreateFlags
sourcepub const MUTABLE_FORMAT: Self = _
pub const MUTABLE_FORMAT: Self = _
For non-multi-planar formats, whether an image view wrapping the image can have a different format.
For multi-planar formats, whether an image view wrapping the image can be created from a single plane of the image.
sourcepub const CUBE_COMPATIBLE: Self = _
pub const CUBE_COMPATIBLE: Self = _
For 2D images, whether an image view of type ImageViewType::Cube
or
ImageViewType::CubeArray
can be created from the image.
sourcepub const DIM2D_ARRAY_COMPATIBLE: Self = _
pub const DIM2D_ARRAY_COMPATIBLE: Self = _
For 3D images, whether an image view of type ImageViewType::Dim2d
or
ImageViewType::Dim2dArray
can be created from the image.
2D image views created from 3D images with this flag cannot be written to a
descriptor set and accessed in shaders, but can be used as a framebuffer attachment.
To write such an image view to a descriptor set, use the DIM2D_VIEW_COMPATIBLE
flag.
On portability subset devices, the image_view2_d_on3_d_image
feature must be enabled
on the device.
sourcepub const BLOCK_TEXEL_VIEW_COMPATIBLE: Self = _
pub const BLOCK_TEXEL_VIEW_COMPATIBLE: Self = _
For images with a compressed format, whether an image view with an uncompressed format can be created from the image, where each texel in the view will correspond to a compressed texel block in the image.
Requires MUTABLE_FORMAT
.
sourcepub const EXTENDED_USAGE: Self = _
pub const EXTENDED_USAGE: Self = _
If MUTABLE_FORMAT
is also enabled, allows specifying a usage
for the image that is not
supported by the format
of the image, as long as there is a format that does support the
usage, that an image view created from the image can have.
sourcepub const DISJOINT: Self = _
pub const DISJOINT: Self = _
For images with a multi-planar format, whether each plane will have its memory bound separately, rather than having a single memory binding for the whole image.
sourcepub const DIM2D_VIEW_COMPATIBLE: Self = _
pub const DIM2D_VIEW_COMPATIBLE: Self = _
For 3D images, whether an image view of type ImageViewType::Dim2d
(but not ImageViewType::Dim2dArray
) can be created from the image.
Unlike DIM2D_ARRAY_COMPATIBLE
, 2D image views created from 3D images with this flag
can be written to a descriptor set and accessed in shaders. To do this,
a feature must also be enabled, depending on the descriptor type:
image2_d_view_of3_d
for storage images.sampler2_d_view_of3_d
for sampled images.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ImageCreateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for ImageCreateFlags
impl BitAnd for ImageCreateFlags
source§impl BitAndAssign for ImageCreateFlags
impl BitAndAssign for ImageCreateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for ImageCreateFlags
impl BitOr for ImageCreateFlags
source§impl BitOrAssign for ImageCreateFlags
impl BitOrAssign for ImageCreateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for ImageCreateFlags
impl BitXor for ImageCreateFlags
source§impl BitXorAssign for ImageCreateFlags
impl BitXorAssign for ImageCreateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for ImageCreateFlags
impl Clone for ImageCreateFlags
source§fn clone(&self) -> ImageCreateFlags
fn clone(&self) -> ImageCreateFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageCreateFlags
impl Debug for ImageCreateFlags
source§impl Default for ImageCreateFlags
impl Default for ImageCreateFlags
source§impl From<ImageCreateFlags> for ImageCreateFlags
impl From<ImageCreateFlags> for ImageCreateFlags
source§fn from(val: ImageCreateFlags) -> Self
fn from(val: ImageCreateFlags) -> Self
source§impl From<ImageCreateFlags> for ImageCreateFlags
impl From<ImageCreateFlags> for ImageCreateFlags
source§fn from(val: ImageCreateFlags) -> Self
fn from(val: ImageCreateFlags) -> Self
source§impl From<SwapchainCreateFlags> for ImageCreateFlags
impl From<SwapchainCreateFlags> for ImageCreateFlags
source§fn from(flags: SwapchainCreateFlags) -> Self
fn from(flags: SwapchainCreateFlags) -> Self
source§impl Hash for ImageCreateFlags
impl Hash for ImageCreateFlags
source§impl PartialEq for ImageCreateFlags
impl PartialEq for ImageCreateFlags
source§fn eq(&self, other: &ImageCreateFlags) -> bool
fn eq(&self, other: &ImageCreateFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ImageCreateFlags
impl Sub for ImageCreateFlags
source§impl SubAssign for ImageCreateFlags
impl SubAssign for ImageCreateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more