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 recordRepresents a pointer to / an array ofXrApiLayerNextInfostructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final SequenceLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrApiLayerNextInfo(@NotNull MemorySegment segment) Creates an instance of aXrApiLayerNextInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrApiLayerNextInfostatic XrApiLayerNextInfo.Ptrstatic XrApiLayerNextInfoclone(Arena arena, XrApiLayerNextInfo src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull MemorySegment@Nullable XrApiLayerNextInfonext()next(int assumedCount) next(@Nullable IXrApiLayerNextInfo value) @NotNull MemorySegmentnextCreateApiLayerInstance(@Nullable IPointer pointer) nextCreateApiLayerInstance(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) nextCreateApiLayerInstance(@NotNull MemorySegment value) @NotNull MemorySegmentnextGetInstanceProcAddr(@Nullable IPointer pointer) nextGetInstanceProcAddr(@NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) nextGetInstanceProcAddr(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) nextGetInstanceProcAddr(@NotNull MemorySegment value) @NotNull MemorySegmentnextRaw()voidnextRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longstructSize(long value) intstructType(int value) intstructVersion(int value) final StringtoString()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 aXrApiLayerNextInforecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-