Enum
VkImageAspectFlagBits
Bitmask specifying which aspects of an image are included in a view
Bits which can be set in an aspect mask to specify aspects of an image for purposes such as identifying a subresource, are:
typedef enum VkImageAspectFlagBits {
VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001,
VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002,
VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004,
VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008,
// Provided by extensions
VK_IMAGE_ASPECT_PLANE_0_BIT = 0x00000010,
VK_IMAGE_ASPECT_PLANE_1_BIT = 0x00000020,
VK_IMAGE_ASPECT_PLANE_2_BIT = 0x00000040,
VK_IMAGE_ASPECT_NONE = 0,
VK_IMAGE_ASPECT_PLANE_0_BIT_KHR = VK_IMAGE_ASPECT_PLANE_0_BIT,
VK_IMAGE_ASPECT_PLANE_1_BIT_KHR = VK_IMAGE_ASPECT_PLANE_1_BIT,
VK_IMAGE_ASPECT_PLANE_2_BIT_KHR = VK_IMAGE_ASPECT_PLANE_2_BIT,
VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT = 0x00000080,
VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXT = 0x00000100,
VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXT = 0x00000200,
VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT = 0x00000400,
VK_IMAGE_ASPECT_NONE_KHR = VK_IMAGE_ASPECT_NONE,
VK_IMAGE_ASPECT_RESERVED_11_BIT_HUAWEI = 0x00000800,
} VkImageAspectFlagBits;
pub struct ImageAspectFlagBits(u32);
impl ImageAspectFlagBits {
pub const COLOR: Self = 0x00000001;
pub const DEPTH: Self = 0x00000002;
pub const STENCIL: Self = 0x00000004;
pub const METADATA: Self = 0x00000008;
pub const PLANE_0: Self = 0x00000010;
pub const PLANE_1: Self = 0x00000020;
pub const PLANE_2: Self = 0x00000040;
pub const NONE: Self = 0;
pub const PLANE_0_KHR: Self = Self::PLANE_0;
pub const PLANE_1_KHR: Self = Self::PLANE_1;
pub const PLANE_2_KHR: Self = Self::PLANE_2;
pub const MEMORY_PLANE_0_EXT: Self = 0x00000080;
pub const MEMORY_PLANE_1_EXT: Self = 0x00000100;
pub const MEMORY_PLANE_2_EXT: Self = 0x00000200;
pub const MEMORY_PLANE_3_EXT: Self = 0x00000400;
pub const NONE_KHR: Self = Self::NONE;
pub const RESERVED_11_HUAWEI: Self = 0x00000800;
}
VK_IMAGE_ASPECT_NONEspecifies no image aspect, or the image aspect is not applicable.VK_IMAGE_ASPECT_COLOR_BITspecifies the color aspect.VK_IMAGE_ASPECT_DEPTH_BITspecifies the depth aspect.VK_IMAGE_ASPECT_STENCIL_BITspecifies the stencil aspect.VK_IMAGE_ASPECT_METADATA_BITspecifies the metadata aspect used for sparse resource operations.VK_IMAGE_ASPECT_PLANE_0_BITspecifies plane 0 of a multi-planar image format.VK_IMAGE_ASPECT_PLANE_1_BITspecifies plane 1 of a multi-planar image format.VK_IMAGE_ASPECT_PLANE_2_BITspecifies plane 2 of a multi-planar image format.VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXTspecifies memory plane 0.VK_IMAGE_ASPECT_MEMORY_PLANE_1_BIT_EXTspecifies memory plane 1.VK_IMAGE_ASPECT_MEMORY_PLANE_2_BIT_EXTspecifies memory plane 2.VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXTspecifies memory plane 3.
Parent
VK_VERSION_1_0Type
Enum