C Specification
To export a NvSciBufObj representing the payload of a Vulkan device
memory object, call:
// Provided by VK_NV_external_memory_sci_buf
VkResult vkGetMemorySciBufNV(
VkDevice device,
const VkMemoryGetSciBufInfoNV* pGetSciBufInfo,
NvSciBufObj* pHandle);
Parameters
-
deviceis the logical device that created the device memory being exported. -
pGetSciBufInfois a pointer to a VkMemoryGetSciBufInfoNV structure containing parameters of the export operation. -
pHandlewill return theNvSciBufObjrepresenting the payload of the device memory object.
Description
A call to vkGetMemorySciBufNV will not transfer the ownership of the
NvSciBufObj handle to the application.
The application will hold a reference to the NvSciBufObj, but it does
not add a reference count to the NvSciBufObj, so the application must
not release it.
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.