C Specification
To bind a vulkan image to an optical flow session object, call:
// Provided by VK_NV_optical_flow
VkResult vkBindOpticalFlowSessionImageNV(
VkDevice device,
VkOpticalFlowSessionNV session,
VkOpticalFlowSessionBindingPointNV bindingPoint,
VkImageView view,
VkImageLayout layout);
Parameters
-
device
is the device which owns the optical flow session objectsession
. -
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 aVkDevice
.
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.