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.
Description
If
VkPhysicalDeviceVulkanSC10Properties::deviceNoDynamicHostAllocations
is VK_TRUE
, vkGetMemoryHostPointerPropertiesEXT
must not return
VK_ERROR_OUT_OF_HOST_MEMORY
.
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.