C Specification
The VkOpticalFlowSessionCreateInfoNV structure is defined as:
// Provided by VK_NV_optical_flow
typedef struct VkOpticalFlowSessionCreateInfoNV {
VkStructureType sType;
void* pNext;
uint32_t width;
uint32_t height;
VkFormat imageFormat;
VkFormat flowVectorFormat;
VkFormat costFormat;
VkOpticalFlowGridSizeFlagsNV outputGridSize;
VkOpticalFlowGridSizeFlagsNV hintGridSize;
VkOpticalFlowPerformanceLevelNV performanceLevel;
VkOpticalFlowSessionCreateFlagsNV flags;
} VkOpticalFlowSessionCreateInfoNV;
Members
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
width
is the width in pixels of the input or reference frame to be bound to this optical flow session. -
height
is the height in pixels of the input or reference frame to be bound to this optical flow session. -
imageFormat
is the VkFormat of the input and reference frame to be bound to this optical flow session. -
flowVectorFormat
is the VkFormat of the flow vector maps (output or hint) to be bound to this optical flow session. -
costFormat
is the VkFormat of the cost maps to be bound to this optical flow session. -
outputGridSize
is exactly one bit of VkOpticalFlowGridSizeFlagsNV specifying the grid size of the output flow and cost maps to be bound to this optical flow session. The size of the output flow and cost maps is determined byVkOpticalFlowSessionCreateInfoNV
::width
andVkOpticalFlowSessionCreateInfoNV
::height
divided byVkOpticalFlowSessionCreateInfoNV
::outputGridSize
. -
hintGridSize
is one exactly bit of VkOpticalFlowGridSizeFlagsNV specifying the grid size of the hint flow vector maps to be bound to this optical flow session. The size of the hint maps is determined byVkOpticalFlowSessionCreateInfoNV
::width
andVkOpticalFlowSessionCreateInfoNV
::height
divided byVkOpticalFlowSessionCreateInfoNV
::hintGridSize
. -
performanceLevel
is the VkOpticalFlowPerformanceLevelNV used for this optical flow session. -
flags
are the VkOpticalFlowSessionCreateFlagsNV used for this optical flow session.
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.