Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkOpticalFlowSessionCreateInfoNV

extends Struct<VkOpticalFlowSessionCreateInfoNV>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created optical flow session.
Valid Usage
Valid Usage (Implicit)
See Also

CreateOpticalFlowSessionNV

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField 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.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkOpticalFlowSessionCreateInfoNV(ByteBuffer container)

Creates a VkOpticalFlowSessionCreateInfoNV instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkOpticalFlowSessionCreateInfoNV
calloc()

Returns a new VkOpticalFlowSessionCreateInfoNV instance allocated with memCalloc.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkOpticalFlowSessionCreateInfoNV.Buffer instance allocated with memCalloc.

public static VkOpticalFlowSessionCreateInfoNV
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkOpticalFlowSessionCreateInfoNV instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkOpticalFlowSessionCreateInfoNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public int
costFormat()

the VkFormat of the cost maps to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
costFormat(int value)

Sets the specified value to the costFormat field.

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.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkOpticalFlowSessionCreateInfoNV
create()

Returns a new VkOpticalFlowSessionCreateInfoNV instance allocated with BufferUtils.

public static VkOpticalFlowSessionCreateInfoNV
create(long address)

Returns a new VkOpticalFlowSessionCreateInfoNV instance for the specified memory address.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkOpticalFlowSessionCreateInfoNV.Buffer instance allocated with BufferUtils.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkOpticalFlowSessionCreateInfoNV.Buffer instance at the specified memory.

public static VkOpticalFlowSessionCreateInfoNV
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
flags()

are the VkOpticalFlowSessionCreateFlagsNV used for this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
flags(int value)

Sets the specified value to the flags field.

public int
flowVectorFormat()

the VkFormat of the flow vector maps (output or hint) to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
flowVectorFormat(int value)

Sets the specified value to the flowVectorFormat field.

public int
height()

the height in pixels of the input or reference frame to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
height(int value)

Sets the specified value to the height field.

public int
hintGridSize()

one exactly bit of VkOpticalFlowGridSizeFlagsNV specifying the grid size of the hint flow vector maps to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
hintGridSize(int value)

Sets the specified value to the hintGridSize field.

public int
imageFormat()

the VkFormat of the input and reference frame to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
imageFormat(int value)

Sets the specified value to the imageFormat field.

public static VkOpticalFlowSessionCreateInfoNV
malloc()

Returns a new VkOpticalFlowSessionCreateInfoNV instance allocated with memAlloc.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkOpticalFlowSessionCreateInfoNV.Buffer instance allocated with memAlloc.

public static VkOpticalFlowSessionCreateInfoNV
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkOpticalFlowSessionCreateInfoNV instance allocated on the specified MemoryStack.

public static VkOpticalFlowSessionCreateInfoNV.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkOpticalFlowSessionCreateInfoNV.Buffer instance allocated on the specified MemoryStack.

public static int
ncostFormat(long struct)

Unsafe version of costFormat.

public static void
ncostFormat(long struct, int value)

Unsafe version of costFormat.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static int
nflowVectorFormat(long struct)

Unsafe version of flowVectorFormat.

public static void
nflowVectorFormat(long struct, int value)

Unsafe version of flowVectorFormat.

public static int
nheight(long struct)

Unsafe version of height.

public static void
nheight(long struct, int value)

Unsafe version of height.

public static int
nhintGridSize(long struct)

Unsafe version of hintGridSize.

public static void
nhintGridSize(long struct, int value)

Unsafe version of hintGridSize.

public static int
nimageFormat(long struct)

Unsafe version of imageFormat.

public static void
nimageFormat(long struct, int value)

Unsafe version of imageFormat.

public static int
noutputGridSize(long struct)

Unsafe version of outputGridSize.

public static void
noutputGridSize(long struct, int value)

Unsafe version of outputGridSize.

public static int
nperformanceLevel(long struct)

Unsafe version of performanceLevel.

public static void
nperformanceLevel(long struct, int value)

Unsafe version of performanceLevel.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nwidth(long struct)

Unsafe version of width.

public static void
nwidth(long struct, int value)

Unsafe version of width.

public int
outputGridSize()

exactly one bit of VkOpticalFlowGridSizeFlagsNV specifying the grid size of the output flow and cost maps to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
outputGridSize(int value)

Sets the specified value to the outputGridSize field.

public int
performanceLevel()

the VkOpticalFlowPerformanceLevelNV used for this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
performanceLevel(int value)

Sets the specified value to the performanceLevel field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkOpticalFlowSessionCreateInfoNV
pNext(long value)

Sets the specified value to the pNext field.

public VkOpticalFlowSessionCreateInfoNV
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 struct
set
(VkOpticalFlowSessionCreateInfoNV
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkOpticalFlowSessionCreateInfoNV
sType(int value)

Sets the specified value to the sType field.

public VkOpticalFlowSessionCreateInfoNV
public int
width()

the width in pixels of the input or reference frame to be bound to this optical flow session.

public VkOpticalFlowSessionCreateInfoNV
width(int value)

Sets the specified value to the width field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate