VKMEMORYALLOCATEINFO(3)

NAME
VkMemoryAllocateInfo - Structure containing parameters of a memory allocation.

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

    • sType must be VK_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

SEE ALSO

VkDeviceSize, VkStructureType, vkAllocateMemory

DOCUMENT NOTES

For more information, see the Vulkan Specification at URL

https://www.khronos.org/registry/vulkan/specs/1.0/xhtml/vkspec.html#VkMemoryAllocateInfo

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.

COPYRIGHT

Copyright (c) 2014-2016 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.

AUTHOR

Khronos Group
    Author.