Class VkMemoryAllocateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkMemoryAllocateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Describes parameters of a memory allocation.

    Valid Usage
    • sType must be STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
    • pNext must be NULL
    • 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

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO
    • pNext – reserved for use by extensions
    • allocationSize – the size of the allocation in bytes
    • memoryTypeIndex – the memory type index, which selects the properties of the memory to be allocated, as well as the heap the memory will come from

    Layout

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