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 recordRepresents a pointer to / an array ofXrNegotiateApiLayerRequeststructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic 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 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
ConstructorsConstructorDescriptionXrNegotiateApiLayerRequest(@NotNull MemorySegment segment) Creates an instance of aXrNegotiateApiLayerRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrNegotiateApiLayerRequeststatic XrNegotiateApiLayerRequestclone(Arena arena, XrNegotiateApiLayerRequest src) @NotNull MemorySegmentcreateApiLayerInstance(@Nullable IPointer pointer) createApiLayerInstance(@NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) createApiLayerInstance(@NotNull Arena arena, @NotNull XRFunctionTypes.IPFN_xrCreateApiLayerInstance value) createApiLayerInstance(@NotNull MemorySegment value) 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.longlayerApiVersion(long value) intlayerInterfaceVersion(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$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 aXrNegotiateApiLayerRequestrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-