Record Class XrNegotiateApiLayerRequest
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrNegotiateApiLayerRequest
- All Implemented Interfaces:
IPointer
,IXrNegotiateApiLayerRequest
@ValueBasedCandidate
@UnsafeConstructor
public record XrNegotiateApiLayerRequest(@NotNull MemorySegment segment)
extends Record
implements IXrNegotiateApiLayerRequest
Represents a pointer to a XrNegotiateApiLayerRequest
structure in native memory.
Structure
typedef struct XrNegotiateApiLayerRequest {
XrLoaderInterfaceStructs
structType
;
uint32_t structVersion
;
size_t structSize
;
uint32_t layerInterfaceVersion
;
XrVersion layerApiVersion
;
PFN_xrGetInstanceProcAddr
getInstanceProcAddr
;
PFN_xrCreateApiLayerInstance
createApiLayerInstance
;
} XrNegotiateApiLayerRequest;
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 ofXrNegotiateApiLayerRequest
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
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 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
ConstructorsConstructorDescriptionXrNegotiateApiLayerRequest
(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateApiLayerRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateApiLayerRequest
static XrNegotiateApiLayerRequest
clone
(Arena arena, XrNegotiateApiLayerRequest src) @NotNull MemorySegment
createApiLayerInstance
(@Nullable IPointer pointer) createApiLayerInstance
(@NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) createApiLayerInstance
(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) createApiLayerInstance
(@NotNull MemorySegment value) 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
layerApiVersion
(long value) int
layerInterfaceVersion
(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$layerInterfaceVersion
-
PATH$layerApiVersion
-
PATH$getInstanceProcAddr
-
PATH$createApiLayerInstance
-
LAYOUT$structType
-
LAYOUT$structVersion
-
LAYOUT$layerInterfaceVersion
-
LAYOUT$layerApiVersion
-
LAYOUT$getInstanceProcAddr
-
LAYOUT$createApiLayerInstance
-
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$layerInterfaceVersion
public static final long SIZE$layerInterfaceVersion -
SIZE$layerApiVersion
public static final long SIZE$layerApiVersion -
SIZE$getInstanceProcAddr
public static final long SIZE$getInstanceProcAddr -
SIZE$createApiLayerInstance
public static final long SIZE$createApiLayerInstance -
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$layerInterfaceVersion
public static final long OFFSET$layerInterfaceVersion -
OFFSET$layerApiVersion
public static final long OFFSET$layerApiVersion -
OFFSET$getInstanceProcAddr
public static final long OFFSET$getInstanceProcAddr -
OFFSET$createApiLayerInstance
public static final long OFFSET$createApiLayerInstance
-
-
Constructor Details
-
XrNegotiateApiLayerRequest
Creates an instance of aXrNegotiateApiLayerRequest
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
structType
-
structType
-
structVersion
-
structVersion
-
structSize
-
structSize
-
layerInterfaceVersion
-
layerInterfaceVersion
-
layerApiVersion
-
layerApiVersion
-
getInstanceProcAddr
@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull public @NotNull MemorySegment getInstanceProcAddr() -
getInstanceProcAddr
public XrNegotiateApiLayerRequest getInstanceProcAddr(@Pointer(comment="PFN_xrGetInstanceProcAddr") @NotNull @NotNull MemorySegment value) -
getInstanceProcAddr
public XrNegotiateApiLayerRequest getInstanceProcAddr(@NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
getInstanceProcAddr
public XrNegotiateApiLayerRequest getInstanceProcAddr(@NotNull @NotNull Arena arena, @NotNull @NotNull XRFunctionTypes.IPFN_xrGetInstanceProcAddr value) -
getInstanceProcAddr
-
createApiLayerInstance
@Pointer(comment="PFN_xrCreateApiLayerInstance") @NotNull public @NotNull MemorySegment createApiLayerInstance() -
createApiLayerInstance
public XrNegotiateApiLayerRequest createApiLayerInstance(@Pointer(comment="PFN_xrCreateApiLayerInstance") @NotNull @NotNull MemorySegment value) -
createApiLayerInstance
public XrNegotiateApiLayerRequest createApiLayerInstance(@NotNull @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) -
createApiLayerInstance
public XrNegotiateApiLayerRequest createApiLayerInstance(@NotNull @NotNull Arena arena, @NotNull @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) -
createApiLayerInstance
-
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.
-