C Specification
The VkDataGraphPipelineOpticalFlowCreateInfoARM structure is defined
as:
// Provided by VK_ARM_data_graph_optical_flow
typedef struct VkDataGraphPipelineOpticalFlowCreateInfoARM {
VkStructureType sType;
void* pNext;
uint32_t width;
uint32_t height;
VkFormat imageFormat;
VkFormat flowVectorFormat;
VkFormat costFormat;
VkDataGraphOpticalFlowGridSizeFlagsARM outputGridSize;
VkDataGraphOpticalFlowGridSizeFlagsARM hintGridSize;
VkDataGraphOpticalFlowPerformanceLevelARM performanceLevel;
VkDataGraphOpticalFlowCreateFlagsARM flags;
} VkDataGraphPipelineOpticalFlowCreateInfoARM;
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 image to be bound to this optical flow pipeline. -
heightis the height in pixels of the input or reference image to be bound to this optical flow pipeline. -
imageFormatis the VkFormat of the input and reference image to be bound to this optical flow pipeline. -
flowVectorFormatis the VkFormat of the flow vector maps (output or hint) to be bound to this optical flow pipeline. -
costFormatis the VkFormat of the cost maps to be bound to this optical flow pipeline. -
outputGridSizeis exactly one bit of VkDataGraphOpticalFlowGridSizeFlagsARM specifying the grid size of the output flow and cost maps to be bound to this optical flow pipeline. The size of the output flow and cost maps is a function of the input image dimensions andoutputGridSizeand is calculated as follows:
OutputWidth = ⌈width/ OutputGridWidth ⌉
OutputHeight = ⌈height/ OutputGridHeight ⌉
where OutputGridWidth and OutputGridHeight are determined byoutputGridSize. -
hintGridSizeis one exactly bit of VkDataGraphOpticalFlowGridSizeFlagsARM specifying the grid size of the hint flow vector map to be bound to this optical flow pipeline. The size of the hint maps is a function of the input image dimensions andhintGridSizeand is calculated as follows:
HintWidth = ⌈width/ HintGridWidth ⌉
HintHeight = ⌈height/ HintGridHeight ⌉
where HintGridWidth and HintGridHeight are determined byhintGridSize. -
performanceLevelis the VkDataGraphOpticalFlowPerformanceLevelARM used for this optical flow pipeline. -
flagsare the VkDataGraphOpticalFlowCreateFlagsARM used for this optical flow pipeline.
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.