Alternatively, to retrieve a host virtual address pointer to a region of a mappable memory object, call:
// Provided by VK_KHR_map_memory2 VkResult vkMapMemory2KHR( VkDevice device, const VkMemoryMapInfoKHR* pMemoryMapInfo, void** ppData);
deviceis the logical device that owns the memory.
pMemoryMapInfois a pointer to a VkMemoryMapInfoKHR structure describing parameters of the map.
ppDatais a pointer to a
void *variable in which is returned a host-accessible pointer to the beginning of the mapped range. This pointer minus VkMemoryMapInfoKHR::
offsetmust be aligned to at least VkPhysicalDeviceLimits::
This function behaves identically to vkMapMemory except that it gets its parameters via an extensible structure pointer rather than directly as function arguments.
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.