C Specification
Windows memory handles compatible with Vulkan may also be created by non-Vulkan APIs using methods beyond the scope of this specification. To determine the correct parameters to use when importing such handles, call:
// Provided by VK_KHR_external_memory_win32
VkResult vkGetMemoryWin32HandlePropertiesKHR(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
HANDLE handle,
VkMemoryWin32HandlePropertiesKHR* pMemoryWin32HandleProperties);
Parameters
-
deviceis the logical device that will be importinghandle. -
handleTypeis a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handlehandle. -
handleis the handle which will be imported. -
pMemoryWin32HandlePropertiesis a pointer to a VkMemoryWin32HandlePropertiesKHR structure in which properties ofhandleare returned.
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.