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
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
widthis the width in pixels of the input or reference frame to be bound to this optical flow session. -
heightis the height in pixels of the input or reference frame to be bound to this optical flow session. -
imageFormatis the VkFormat of the input and reference frame to be bound to this optical flow session. -
flowVectorFormatis the VkFormat of the flow vector maps (output or hint) to be bound to this optical flow session. -
costFormatis the VkFormat of the cost maps to be bound to this optical flow session. -
outputGridSizeis 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::widthandVkOpticalFlowSessionCreateInfoNV::heightdivided byVkOpticalFlowSessionCreateInfoNV::outputGridSize. -
hintGridSizeis 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::widthandVkOpticalFlowSessionCreateInfoNV::heightdivided byVkOpticalFlowSessionCreateInfoNV::hintGridSize. -
performanceLevelis the VkOpticalFlowPerformanceLevelNV used for this optical flow session. -
flagsare 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.