Function Prototype

vkCreateOpticalFlowSessionNV

Creates an optical flow session object

To create an optical flow session object, call:

VkResult vkCreateOpticalFlowSessionNV(
    VkDevice device,
    const VkOpticalFlowSessionCreateInfoNV* pCreateInfo,
    const VkAllocationCallbacks* pAllocator,
    VkOpticalFlowSessionNV* pSession);
  • device is the logical device that creates the optical flow session object.
  • pCreateInfo is a pointer to a VkOpticalFlowSessionCreateInfoNV structure containing parameters specifying the creation of the optical flow session.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.
  • pSession is a pointer to a VkOpticalFlowSessionNV handle specifying the optical flow session object which will be created by this function when it returns VK_SUCCESS

Valid Usage (Implicit)

VUID-vkCreateOpticalFlowSessionNV-pAllocator-parameter

If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure