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 record
Represents a pointer to / an array ofXrNegotiateRuntimeRequest
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionXrNegotiateRuntimeRequest
(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateRuntimeRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateRuntimeRequest
static XrNegotiateRuntimeRequest
clone
(Arena arena, XrNegotiateRuntimeRequest src) final boolean
Indicates whether some other object is "equal to" this one.@NotNull MemorySegment
getInstanceProcAddr
(@Nullable IPointer pointer) getInstanceProcAddr
(@NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) getInstanceProcAddr
(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) getInstanceProcAddr
(@NotNull MemorySegment value) final int
hashCode()
Returns a hash code value for this object.long
runtimeApiVersion
(long value) int
runtimeInterfaceVersion
(int 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$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 aXrNegotiateRuntimeRequest
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-