C Specification
To export device memory as a Zircon handle that can be used by another instance, device, or process, the handle to the VkDeviceMemory must be retrieved using vkGetMemoryZirconHandleFUCHSIA:
// Provided by VK_FUCHSIA_external_memory
VkResult vkGetMemoryZirconHandleFUCHSIA(
VkDevice device,
const VkMemoryGetZirconHandleInfoFUCHSIA* pGetZirconHandleInfo,
zx_handle_t* pZirconHandle);
Parameters
-
device
is the VkDevice. -
pGetZirconHandleInfo
is a pointer to a VkMemoryGetZirconHandleInfoFUCHSIA structure. -
pZirconHandle
is a pointer to azx_handle_t
which holds the resulting Zircon handle.
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.