C Specification
To create an optical flow session object, call:
// Provided by VK_NV_optical_flow
VkResult vkCreateOpticalFlowSessionNV(
VkDevice device,
const VkOpticalFlowSessionCreateInfoNV* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkOpticalFlowSessionNV* pSession);
Parameters
-
deviceis the logical device that creates the optical flow session object. -
pCreateInfois a pointer to a VkOpticalFlowSessionCreateInfoNV structure containing parameters specifying the creation of the optical flow session. -
pAllocatorcontrols host memory allocation as described in the Memory Allocation chapter. -
pSessionis a pointer to a VkOpticalFlowSessionNV handle specifying the optical flow session object which will be created by this function when it returnsVK_SUCCESS
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.