VkSparseImageMemoryBindInfo
Memory can be bound to sparse image blocks of VkImage
objects created
with the VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag using the following
structure:
typedef struct VkSparseImageMemoryBindInfo {
VkImage image;
uint32_t bindCount;
const VkSparseImageMemoryBind* pBinds;
} VkSparseImageMemoryBindInfo;
image
is the VkImage object to be boundbindCount
is the number of VkSparseImageMemoryBind structures inpBinds
arraypBinds
is a pointer to an array of VkSparseImageMemoryBind structures
Valid Usage
VUID-VkSparseImageMemoryBindInfo-subresource-01722
The subresource.mipLevel
member of each element of pBinds
must be less than the mipLevels
specified in
VkImageCreateInfo when image
was created
VUID-VkSparseImageMemoryBindInfo-subresource-01723
The subresource.arrayLayer
member of each element of pBinds
must be less than the arrayLayers
specified in
VkImageCreateInfo when image
was created
VUID-VkSparseImageMemoryBindInfo-subresource-01106
The subresource.aspectMask
member of each element of pBinds
must be valid for the format
specified in VkImageCreateInfo
when image
was created
VUID-VkSparseImageMemoryBindInfo-image-02901
image
must have been created with
VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT
set
Valid Usage (Implicit)
VUID-VkSparseImageMemoryBindInfo-image-parameter
image
must be a valid VkImage handle
VUID-VkSparseImageMemoryBindInfo-pBinds-parameter
pBinds
must be a valid pointer to an array of bindCount
valid VkSparseImageMemoryBind structures
VUID-VkSparseImageMemoryBindInfo-bindCount-arraylength
bindCount
must be greater than 0