C Specification
A NvSciBufObj handle compatible with Vulkan can 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_NV_external_memory_sci_buf
VkResult vkGetPhysicalDeviceExternalMemorySciBufPropertiesNV(
VkPhysicalDevice physicalDevice,
VkExternalMemoryHandleTypeFlagBits handleType,
NvSciBufObj handle,
VkMemorySciBufPropertiesNV* pMemorySciBufProperties);
Parameters
-
physicalDeviceis the handle to the physical device whose properties will be queried. -
handleTypeis the type of the handlehandle. -
handleis theNvSciBuffObjhandle which will be imported. -
pMemorySciBufPropertiesis a pointer to a VkMemorySciBufPropertiesNV structure.
Description
This command will return properties of handle, it contains the memory
type bitmask that can be used to determine the
VkMemoryAllocateInfo::memoryTypeIndex when calling
vkAllocateMemory.
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.