C Specification

The VkMemoryAllocateInfo structure is defined as:

typedef struct VkMemoryAllocateInfo {
VkStructureType    sType;
const void*        pNext;
VkDeviceSize       allocationSize;
uint32_t           memoryTypeIndex;
} VkMemoryAllocateInfo;

Members

• sType is the type of this structure.

• pNext is NULL or a pointer to an extension-specific structure.

• allocationSize is the size of the allocation in bytes

• memoryTypeIndex is the memory type index, which selects the properties of the memory to be allocated, as well as the heap the memory will come from.

Description

Valid Usage
• allocationSize must be less than or equal to the amount of memory available to the VkMemoryHeap specified by memoryTypeIndex and the calling command’s VkDevice

• allocationSize must be greater than 0

Valid Usage (Implicit)
• sType must be VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO

• pNext must be NULL

VkDeviceSize, VkStructureType, vkAllocateMemory