Record Class XrNegotiateRuntimeRequest
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrNegotiateRuntimeRequest
- All Implemented Interfaces:
IPointer,IXrNegotiateRuntimeRequest
@ValueBasedCandidate
@UnsafeConstructor
public record XrNegotiateRuntimeRequest(@NotNull MemorySegment segment)
extends Record
implements IXrNegotiateRuntimeRequest
Represents a pointer to a XrNegotiateRuntimeRequest structure in native memory.
Structure
typedef struct XrNegotiateRuntimeRequest {
XrLoaderInterfaceStructs structType;
uint32_t structVersion;
size_t structSize;
uint32_t runtimeInterfaceVersion;
XrVersion runtimeApiVersion;
PFN_xrGetInstanceProcAddr getInstanceProcAddr;
} XrNegotiateRuntimeRequest;
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 ofXrNegotiateRuntimeRequeststructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrNegotiateRuntimeRequest(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateRuntimeRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateRuntimeRequeststatic XrNegotiateRuntimeRequestclone(Arena arena, XrNegotiateRuntimeRequest src) final booleanIndicates whether some other object is "equal to" this one.@NotNull MemorySegmentgetInstanceProcAddr(@Nullable IPointer pointer) getInstanceProcAddr(@NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) getInstanceProcAddr(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) getInstanceProcAddr(@NotNull MemorySegment value) final inthashCode()Returns a hash code value for this object.longruntimeApiVersion(long value) intruntimeInterfaceVersion(int 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$runtimeInterfaceVersion
-
PATH$runtimeApiVersion
-
PATH$getInstanceProcAddr
-
LAYOUT$structType
-
LAYOUT$structVersion
-
LAYOUT$runtimeInterfaceVersion
-
LAYOUT$runtimeApiVersion
-
LAYOUT$getInstanceProcAddr
-
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$runtimeInterfaceVersion
public static final long SIZE$runtimeInterfaceVersion -
SIZE$runtimeApiVersion
public static final long SIZE$runtimeApiVersion -
SIZE$getInstanceProcAddr
public static final long SIZE$getInstanceProcAddr -
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$runtimeInterfaceVersion
public static final long OFFSET$runtimeInterfaceVersion -
OFFSET$runtimeApiVersion
public static final long OFFSET$runtimeApiVersion -
OFFSET$getInstanceProcAddr
public static final long OFFSET$getInstanceProcAddr
-
-
Constructor Details
-
XrNegotiateRuntimeRequest
Creates an instance of aXrNegotiateRuntimeRequestrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
structType
-
structType
-
structVersion
-
structVersion
-
structSize
-
structSize
-
runtimeInterfaceVersion
-
runtimeInterfaceVersion
-
runtimeApiVersion
-
runtimeApiVersion
-
getInstanceProcAddr
@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull public @NotNull MemorySegment getInstanceProcAddr() -
getInstanceProcAddr
public XrNegotiateRuntimeRequest getInstanceProcAddr(@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull @NotNull MemorySegment value) -
getInstanceProcAddr
public XrNegotiateRuntimeRequest getInstanceProcAddr(@NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
getInstanceProcAddr
public XrNegotiateRuntimeRequest getInstanceProcAddr(@NotNull @NotNull Arena arena, @NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
getInstanceProcAddr
-
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.
-