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
-
physicalDevice
is the handle to the physical device whose properties will be queried. -
handleType
is the type of the handlehandle
. -
handle
is theNvSciBuffObj
handle which will be imported. -
pMemorySciBufProperties
is 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.