width must be greater than or equal to VkPhysicalDeviceOpticalFlowPropertiesNV::minWidth and less than or equal to VkPhysicalDeviceOpticalFlowPropertiesNV::maxWidthheight must be greater than or equal to VkPhysicalDeviceOpticalFlowPropertiesNV::minHeight and less than or equal to VkPhysicalDeviceOpticalFlowPropertiesNV::maxHeightimageFormat must be one of the formats returned by GetPhysicalDeviceOpticalFlowImageFormatsNV for OPTICAL_FLOW_USAGE_INPUT_BIT_NVflowVectorFormat must be one of the formats returned by GetPhysicalDeviceOpticalFlowImageFormatsNV for OPTICAL_FLOW_USAGE_OUTPUT_BIT_NVcostFormat must be one of the formats returned by GetPhysicalDeviceOpticalFlowImageFormatsNV for OPTICAL_FLOW_USAGE_COST_BIT_NV if OPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV is set in flagsoutputGridSize must be exactly one of the bits reported in VkPhysicalDeviceOpticalFlowPropertiesNV::supportedOutputGridSizeshintGridSize must be exactly one of the bits reported in VkPhysicalDeviceOpticalFlowPropertiesNV::supportedHintGridSizes if OPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV is set in flagsOPTICAL_FLOW_SESSION_CREATE_ENABLE_HINT_BIT_NV must not be set in flags if VkPhysicalDeviceOpticalFlowPropertiesNV::hintSupported is FALSEOPTICAL_FLOW_SESSION_CREATE_ENABLE_COST_BIT_NV must not be set in flags if VkPhysicalDeviceOpticalFlowPropertiesNV::costSupported is FALSEOPTICAL_FLOW_SESSION_CREATE_ENABLE_GLOBAL_FLOW_BIT_NV must not be set in flags if VkPhysicalDeviceOpticalFlowPropertiesNV::globalFlowSupported is FALSEOPTICAL_FLOW_SESSION_CREATE_ALLOW_REGIONS_BIT_NV must not be set in flags if VkPhysicalDeviceOpticalFlowPropertiesNV::maxNumRegionsOfInterest is 0OPTICAL_FLOW_SESSION_CREATE_BOTH_DIRECTIONS_BIT_NV must not be set in flags if VkPhysicalDeviceOpticalFlowPropertiesNV::bidirectionalFlowSupported is FALSEsType must be STRUCTURE_TYPE_OPTICAL_FLOW_SESSION_CREATE_INFO_NVpNext must be NULL or a pointer to a valid instance of VkOpticalFlowSessionCreatePrivateDataInfoNVsType value of each struct in the pNext chain must be uniqueimageFormat must be a valid VkFormat valueflowVectorFormat must be a valid VkFormat valuecostFormat is not 0, costFormat must be a valid VkFormat valueoutputGridSize must be a valid combination of VkOpticalFlowGridSizeFlagBitsNV valuesoutputGridSize must not be 0hintGridSize must be a valid combination of VkOpticalFlowGridSizeFlagBitsNV valuesperformanceLevel is not 0, performanceLevel must be a valid VkOpticalFlowPerformanceLevelNV valueflags must be a valid combination of VkOpticalFlowSessionCreateFlagBitsNV values
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkOpticalFlowSessionCreateInfoNV.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COSTFORMAT
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | FLOWVECTORFORMAT
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | HINTGRIDSIZE
The struct member offsets. |
| public static final int | IMAGEFORMAT
The struct member offsets. |
| public static final int | OUTPUTGRIDSIZE
The struct member offsets. |
| public static final int | PERFORMANCELEVEL
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkOpticalFlowSessionCreateInfoNV(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkOpticalFlowSessionCreateInfoNV | |
| public static VkOpticalFlowSessionCreateInfoNV. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public int | |
| public VkOpticalFlowSessionCreateInfoNV | |
| protected VkOpticalFlowSessionCreateInfoNV | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkOpticalFlowSessionCreateInfoNV | |
| public static VkOpticalFlowSessionCreateInfoNV | create(long address)
Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV. | create(int
the buffer capacity capacity)Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkOpticalFlowSessionCreateInfoNV | |
| public static VkOpticalFlowSessionCreateInfoNV. | |
| public int | |
| public VkOpticalFlowSessionCreateInfoNV | |
| public int | flowVectorFormat()
the |
| public VkOpticalFlowSessionCreateInfoNV | |
| public int | height()
the height in pixels of the input or reference frame to be bound to this optical flow session. |
| public VkOpticalFlowSessionCreateInfoNV | |
| public int | hintGridSize()
one exactly bit of |
| public VkOpticalFlowSessionCreateInfoNV | |
| public int | imageFormat()
the |
| public VkOpticalFlowSessionCreateInfoNV | |
| public static VkOpticalFlowSessionCreateInfoNV | |
| public static VkOpticalFlowSessionCreateInfoNV. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkOpticalFlowSessionCreateInfoNV. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public int | outputGridSize()
exactly one bit of |
| public VkOpticalFlowSessionCreateInfoNV | |
| public int | |
| public VkOpticalFlowSessionCreateInfoNV | |
| public long | |
| public VkOpticalFlowSessionCreateInfoNV | |
| public VkOpticalFlowSessionCreateInfoNV | pNext(VkOpticalFlowSessionCreatePrivateDataInfoNV value)
Prepends the specified |
| public VkOpticalFlowSessionCreateInfoNV | set(int sType, long pNext, int width, int height, int imageFormat, int flowVectorFormat, int costFormat, int outputGridSize, int hintGridSize, int performanceLevel, int flags)
Initializes this struct with the specified values. |
| public VkOpticalFlowSessionCreateInfoNV | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkOpticalFlowSessionCreateInfoNV | |
| public VkOpticalFlowSessionCreateInfoNV | sType$Default()
Sets the |
| public int | width()
the width in pixels of the input or reference frame to be bound to this optical flow session. |
| public VkOpticalFlowSessionCreateInfoNV |