Structures

VkTileMemoryRequirementsQCOM

Structure specifying tile memory requirements

To determine the tile memory allocation requirements of a buffer or image resource, add a VkTileMemoryRequirementsQCOM structure to the pNext chain of the VkMemoryRequirements2 structure passed as the pMemoryRequirements parameter of vkGetBufferMemoryRequirements2 or vkGetImageMemoryRequirements2, respectively. The VkTileMemoryRequirementsQCOM structure is defined as:

typedef struct VkTileMemoryRequirementsQCOM {
    VkStructureType sType;
    void* pNext;
    VkDeviceSize size;
    VkDeviceSize alignment;
} VkTileMemoryRequirementsQCOM;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • size is the size, in bytes, of the tile memory allocation required for the resource.
  • alignment is the alignment, in bytes, of the offset within the tile memory allocation required for the resource.

The size and alignment must be used when the resource is bound to a VkDeviceMemory object that was allocated from a VkMemoryType that has a heapIndex that corresponds to a VkMemoryHeap with the VK_MEMORY_HEAP_TILE_MEMORY_BIT_QCOM property.

If the resource cannot be bound to tile memory, then size and alignment is filled with zero by the implementation.

Valid Usage (Implicit)

VUID-VkTileMemoryRequirementsQCOM-sType-sType

sType must be VK_STRUCTURE_TYPE_TILE_MEMORY_REQUIREMENTS_QCOM