Function Prototype

vkBindOpticalFlowSessionImageNV

Bind image to an optical flow session

To bind a vulkan image to an optical flow session object, call:

VkResult vkBindOpticalFlowSessionImageNV(
    VkDevice device,
    VkOpticalFlowSessionNV session,
    VkOpticalFlowSessionBindingPointNV bindingPoint,
    VkImageView view,
    VkImageLayout layout);
  • device is the device which owns the optical flow session object session.
  • session is the optical flow session object to which the image view is to be bound.
  • bindingPoint specifies the binding point VkOpticalFlowSessionBindingPointNV to which the image view is bound.
  • view is a VkImageView to be bound.
  • layout must specify the layout that the image subresources accessible from view will be in at the time the optical flow vectors are calculated with vkCmdOpticalFlowExecuteNV on a VkDevice.

Valid Usage (Implicit)

VUID-vkBindOpticalFlowSessionImageNV-session-parent

session must have been created, allocated, or retrieved from device

VUID-vkBindOpticalFlowSessionImageNV-view-parent

If view is a valid handle, it must have been created, allocated, or retrieved from device