Record Class XrApiLayerNextInfo
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrApiLayerNextInfo
- All Implemented Interfaces:
IPointer
,IXrApiLayerNextInfo
@ValueBasedCandidate
@UnsafeConstructor
public record XrApiLayerNextInfo(@NotNull MemorySegment segment)
extends Record
implements IXrApiLayerNextInfo
Represents a pointer to a XrApiLayerNextInfo
structure in native memory.
Structure
typedef struct XrApiLayerNextInfo {
XrLoaderInterfaceStructs
structType
;
uint32_t structVersion
;
size_t structSize
;
char[XR_MAX_API_LAYER_NAME_SIZE] layerName
;
PFN_xrGetInstanceProcAddr
nextGetInstanceProcAddr
;
PFN_xrCreateApiLayerInstance
nextCreateApiLayerInstance
;
XrApiLayerNextInfo
* next
;
} XrApiLayerNextInfo;
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 ofXrApiLayerNextInfo
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final SequenceLayout
static final AddressLayout
static final AddressLayout
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionXrApiLayerNextInfo
(@NotNull MemorySegment segment) Creates an instance of aXrApiLayerNextInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrApiLayerNextInfo
static XrApiLayerNextInfo.Ptr
static XrApiLayerNextInfo
clone
(Arena arena, XrApiLayerNextInfo src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
@Nullable XrApiLayerNextInfo
next()
next
(int assumedCount) next
(@Nullable IXrApiLayerNextInfo value) @NotNull MemorySegment
nextCreateApiLayerInstance
(@Nullable IPointer pointer) nextCreateApiLayerInstance
(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) nextCreateApiLayerInstance
(@NotNull MemorySegment value) @NotNull MemorySegment
nextGetInstanceProcAddr
(@Nullable IPointer pointer) nextGetInstanceProcAddr
(@NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) nextGetInstanceProcAddr
(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) nextGetInstanceProcAddr
(@NotNull MemorySegment value) @NotNull MemorySegment
nextRaw()
void
nextRaw
(@NotNull MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.long
structSize
(long value) int
structType
(int value) int
structVersion
(int value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$structType
-
PATH$structVersion
-
PATH$structSize
-
PATH$layerName
-
PATH$nextGetInstanceProcAddr
-
PATH$nextCreateApiLayerInstance
-
PATH$next
-
LAYOUT$structType
-
LAYOUT$structVersion
-
LAYOUT$layerName
-
LAYOUT$nextGetInstanceProcAddr
-
LAYOUT$nextCreateApiLayerInstance
-
LAYOUT$next
-
SIZE$structType
public static final long SIZE$structType -
SIZE$structVersion
public static final long SIZE$structVersion -
SIZE$structSize
public static final long SIZE$structSize -
SIZE$layerName
public static final long SIZE$layerName -
SIZE$nextGetInstanceProcAddr
public static final long SIZE$nextGetInstanceProcAddr -
SIZE$nextCreateApiLayerInstance
public static final long SIZE$nextCreateApiLayerInstance -
SIZE$next
public static final long SIZE$next -
OFFSET$structType
public static final long OFFSET$structType -
OFFSET$structVersion
public static final long OFFSET$structVersion -
OFFSET$structSize
public static final long OFFSET$structSize -
OFFSET$layerName
public static final long OFFSET$layerName -
OFFSET$nextGetInstanceProcAddr
public static final long OFFSET$nextGetInstanceProcAddr -
OFFSET$nextCreateApiLayerInstance
public static final long OFFSET$nextCreateApiLayerInstance -
OFFSET$next
public static final long OFFSET$next
-
-
Constructor Details
-
XrApiLayerNextInfo
Creates an instance of aXrApiLayerNextInfo
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
structType
-
structType
-
structVersion
-
structVersion
-
structSize
-
structSize
-
layerName
-
layerName
-
layerName
-
layerNameRaw
-
nextGetInstanceProcAddr
@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull public @NotNull MemorySegment nextGetInstanceProcAddr() -
nextGetInstanceProcAddr
public XrApiLayerNextInfo nextGetInstanceProcAddr(@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull @NotNull MemorySegment value) -
nextGetInstanceProcAddr
public XrApiLayerNextInfo nextGetInstanceProcAddr(@NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
nextGetInstanceProcAddr
public XrApiLayerNextInfo nextGetInstanceProcAddr(@NotNull @NotNull Arena arena, @NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
nextGetInstanceProcAddr
-
nextCreateApiLayerInstance
@Pointer(comment="PFN_xrCreateApiLayerInstance") @NotNull public @NotNull MemorySegment nextCreateApiLayerInstance() -
nextCreateApiLayerInstance
public XrApiLayerNextInfo nextCreateApiLayerInstance(@Pointer(comment="PFN_xrCreateApiLayerInstance") @NotNull @NotNull MemorySegment value) -
nextCreateApiLayerInstance
public XrApiLayerNextInfo nextCreateApiLayerInstance(@NotNull @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) -
nextCreateApiLayerInstance
public XrApiLayerNextInfo nextCreateApiLayerInstance(@NotNull @NotNull Arena arena, @NotNull @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) -
nextCreateApiLayerInstance
-
next
-
next
-
next
-
nextRaw
-
nextRaw
public void nextRaw(@Pointer(target=XrApiLayerNextInfo.class) @NotNull @NotNull MemorySegment 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.
-