VkImageMemoryRequirementsInfo2
The VkImageMemoryRequirementsInfo2 structure is defined as:
typedef struct VkImageMemoryRequirementsInfo2 {
VkStructureType sType;
const void* pNext;
VkImage image;
} VkImageMemoryRequirementsInfo2;
or the equivalent
typedef VkImageMemoryRequirementsInfo2 VkImageMemoryRequirementsInfo2KHR;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.imageis the image to query.
Valid Usage
VUID-VkImageMemoryRequirementsInfo2-image-01589
If image was created with a multi-planar format and the
VK_IMAGE_CREATE_DISJOINT_BIT flag, there must be a
VkImagePlaneMemoryRequirementsInfo included in the pNext
chain of the VkImageMemoryRequirementsInfo2 structure
VUID-VkImageMemoryRequirementsInfo2-image-02279
If image was created with VK_IMAGE_CREATE_DISJOINT_BIT and
with VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must be
a VkImagePlaneMemoryRequirementsInfo included in the pNext
chain of the VkImageMemoryRequirementsInfo2 structure
VUID-VkImageMemoryRequirementsInfo2-image-01590
If image was not created with the
VK_IMAGE_CREATE_DISJOINT_BIT flag, there must not be a
VkImagePlaneMemoryRequirementsInfo included in the pNext
chain of the VkImageMemoryRequirementsInfo2 structure
VUID-VkImageMemoryRequirementsInfo2-image-02280
If image was created with a single-plane format and with any
tiling other than VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT,
then there must not be a VkImagePlaneMemoryRequirementsInfo
included in the pNext chain of the
VkImageMemoryRequirementsInfo2 structure
VUID-VkImageMemoryRequirementsInfo2-image-01897
If image was created with the
VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID
external memory handle type, then image must be bound to memory
VUID-VkImageMemoryRequirementsInfo2-image-08961
If image was created with the
VK_EXTERNAL_MEMORY_HANDLE_TYPE_SCREEN_BUFFER_BIT_QNX external
memory handle type, then image must be bound to memory
Valid Usage (Implicit)
VUID-VkImageMemoryRequirementsInfo2-sType-sType
sType must be VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2
VUID-VkImageMemoryRequirementsInfo2-pNext-pNext
pNext must be NULL or a pointer to a valid instance of VkImagePlaneMemoryRequirementsInfo
VUID-VkImageMemoryRequirementsInfo2-sType-unique
The sType value of each structure in the pNext chain must be unique
VUID-VkImageMemoryRequirementsInfo2-image-parameter
image must be a valid VkImage handle