Struct bedrock::resources::ImageFlags
[−]
[src]
pub struct ImageFlags(pub VkImageCreateFlags);
Bitmask specifying additional parameters of an image
Methods
impl ImageFlags
[src]
pub const EMPTY: Self
EMPTY: Self = ImageFlags(0)
Empty bits
pub const SPARSE_BINDING: Self
SPARSE_BINDING: Self = ImageFlags(VK_IMAGE_CREATE_SPARSE_BINDING_BIT)
The image will be backed using sparse memory binding
pub const SPARSE_RESIDENCY: Self
SPARSE_RESIDENCY: Self = ImageFlags(VK_IMAGE_CREATE_SPARSE_BINDING_BIT | VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT)
The image can be partially backed using sparse memory binding. This bit is with SPARSE_BINDING
implicitly
pub const SPARSE_ALIASED: Self
SPARSE_ALIASED: Self = ImageFlags(VK_IMAGE_CREATE_SPARSE_BINDING_BIT | VK_IMAGE_CREATE_SPARSE_ALIASED_BIT)
The image will be backed using sparse memory binding with memory ranges
that might also simultaneously be backing another image. This bit is with SPARSE_BINDING
implicitly
pub const MUTABLE_FORMAT: Self
MUTABLE_FORMAT: Self = ImageFlags(VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT)
The image can be used to create a ImageView
with a different format from the image
pub const CUBE_COMPATIBLE: Self
CUBE_COMPATIBLE: Self = ImageFlags(VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT)
The image can be used to create a ImageView
of type ImageViewType::Cube
or ImageViewType::CubeArray
pub fn sparse_binding(&self) -> Self
[src]
The image will be backed using sparse memory binding
pub fn sparse_residency(&self) -> Self
[src]
The image can be partially backed using sparse memory binding. This bit is with SPARSE_BINDING
implicitly
pub fn sparse_aliased(&self) -> Self
[src]
The image will be backed using sparse memory binding with memory ranges
that might also simultaneously be backing another image. This bit is with SPARSE_BINDING
implicitly
pub fn mutable_format(&self) -> Self
[src]
The image can be used to create a ImageView
with a different format from the image
pub fn cube_compatible(&self) -> Self
[src]
The image can be used to create a ImageView
of type ImageViewType::Cube
or ImageViewType::CubeArray
Trait Implementations
impl Debug for ImageFlags
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ImageFlags
[src]
fn clone(&self) -> ImageFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ImageFlags
[src]
impl PartialEq for ImageFlags
[src]
fn eq(&self, __arg_0: &ImageFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ImageFlags) -> bool
[src]
This method tests for !=
.