Record Class VkOpticalFlowSessionCreateInfoNV
- All Implemented Interfaces:
IPointer
,IVkOpticalFlowSessionCreateInfoNV
Represents a pointer to a VkOpticalFlowSessionCreateInfoNV
structure in native memory.
Structure
typedef struct VkOpticalFlowSessionCreateInfoNV {
VkStructureType
sType
;
void* pNext
; // optional
uint32_t width
;
uint32_t height
;
VkFormat
imageFormat
;
VkFormat
flowVectorFormat
;
VkFormat
costFormat
; // optional
VkOpticalFlowGridSizeFlagsNV
outputGridSize
;
VkOpticalFlowGridSizeFlagsNV
hintGridSize
; // optional
VkOpticalFlowPerformanceLevelNV
performanceLevel
; // optional
VkOpticalFlowSessionCreateFlagsNV
flags
; // optional
} VkOpticalFlowSessionCreateInfoNV;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_OPTICAL_FLOW_SESSION_CREATE_INFO_NV
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkOpticalFlowSessionCreateInfoNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkOpticalFlowSessionCreateInfoNV
(@NotNull MemorySegment segment) Creates an instance of aVkOpticalFlowSessionCreateInfoNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, VkOpticalFlowSessionCreateInfoNV src) int
costFormat
(int value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) int
flowVectorFormat
(int value) final int
hashCode()
Returns a hash code value for this object.int
height()
height
(int value) int
hintGridSize
(int value) int
imageFormat
(int value) int
outputGridSize
(int value) int
performanceLevel
(int value) pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.int
width()
width
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$width
-
PATH$height
-
PATH$imageFormat
-
PATH$flowVectorFormat
-
PATH$costFormat
-
PATH$outputGridSize
-
PATH$hintGridSize
-
PATH$performanceLevel
-
PATH$flags
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$width
-
LAYOUT$height
-
LAYOUT$imageFormat
-
LAYOUT$flowVectorFormat
-
LAYOUT$costFormat
-
LAYOUT$outputGridSize
-
LAYOUT$hintGridSize
-
LAYOUT$performanceLevel
-
LAYOUT$flags
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$width
public static final long SIZE$width -
SIZE$height
public static final long SIZE$height -
SIZE$imageFormat
public static final long SIZE$imageFormat -
SIZE$flowVectorFormat
public static final long SIZE$flowVectorFormat -
SIZE$costFormat
public static final long SIZE$costFormat -
SIZE$outputGridSize
public static final long SIZE$outputGridSize -
SIZE$hintGridSize
public static final long SIZE$hintGridSize -
SIZE$performanceLevel
public static final long SIZE$performanceLevel -
SIZE$flags
public static final long SIZE$flags -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$width
public static final long OFFSET$width -
OFFSET$height
public static final long OFFSET$height -
OFFSET$imageFormat
public static final long OFFSET$imageFormat -
OFFSET$flowVectorFormat
public static final long OFFSET$flowVectorFormat -
OFFSET$costFormat
public static final long OFFSET$costFormat -
OFFSET$outputGridSize
public static final long OFFSET$outputGridSize -
OFFSET$hintGridSize
public static final long OFFSET$hintGridSize -
OFFSET$performanceLevel
public static final long OFFSET$performanceLevel -
OFFSET$flags
public static final long OFFSET$flags
-
-
Constructor Details
-
VkOpticalFlowSessionCreateInfoNV
Creates an instance of aVkOpticalFlowSessionCreateInfoNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkOpticalFlowSessionCreateInfoNV clone(Arena arena, VkOpticalFlowSessionCreateInfoNV src) -
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
width
-
width
-
height
-
height
-
imageFormat
-
imageFormat
-
flowVectorFormat
-
flowVectorFormat
-
costFormat
-
costFormat
-
outputGridSize
-
outputGridSize
public VkOpticalFlowSessionCreateInfoNV outputGridSize(@EnumType(VkOpticalFlowGridSizeFlagsNV.class) int value) -
hintGridSize
-
hintGridSize
public VkOpticalFlowSessionCreateInfoNV hintGridSize(@EnumType(VkOpticalFlowGridSizeFlagsNV.class) int value) -
performanceLevel
-
performanceLevel
public VkOpticalFlowSessionCreateInfoNV performanceLevel(@EnumType(VkOpticalFlowPerformanceLevelNV.class) int value) -
flags
-
flags
public VkOpticalFlowSessionCreateInfoNV flags(@EnumType(VkOpticalFlowSessionCreateFlagsNV.class) int value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-