C Specification
To determine the correct parameters to use when importing host pointers, call:
// Provided by VK_EXT_external_memory_host
VkResult vkGetMemoryHostPointerPropertiesEXT(
VkDevice device,
VkExternalMemoryHandleTypeFlagBits handleType,
const void* pHostPointer,
VkMemoryHostPointerPropertiesEXT* pMemoryHostPointerProperties);
Parameters
-
device
is the logical device that will be importingpHostPointer
. -
handleType
is a VkExternalMemoryHandleTypeFlagBits value specifying the type of the handlepHostPointer
. -
pHostPointer
is the host pointer to import from. -
pMemoryHostPointerProperties
is a pointer to a VkMemoryHostPointerPropertiesEXT structure in which the host pointer properties are 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.