C Specification
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:
// Provided by VK_QCOM_tile_memory_heap
typedef struct VkTileMemoryRequirementsQCOM {
VkStructureType sType;
void* pNext;
VkDeviceSize size;
VkDeviceSize alignment;
} VkTileMemoryRequirementsQCOM;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
size
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.
Description
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.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.