Record Class XrInstanceCreateInfo

java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrInstanceCreateInfo
All Implemented Interfaces:
IPointer, IXrInstanceCreateInfo

@ValueBasedCandidate @UnsafeConstructor public record XrInstanceCreateInfo(@NotNull MemorySegment segment) extends Record implements IXrInstanceCreateInfo

Represents a pointer to a XrInstanceCreateInfo structure in native memory.

Structure

typedef struct XrInstanceCreateInfo {
    XrStructureType type;
    void const* next;
    XrInstanceCreateFlags createFlags; // optional
    XrApplicationInfo applicationInfo;
    uint32_t enabledApiLayerCount; // optional
    char const* const* enabledApiLayerNames; // optional
    uint32_t enabledExtensionCount; // optional
    char const* const* enabledExtensionNames; // optional
} XrInstanceCreateInfo;

Auto initialization

This structure has the following members that can be automatically initialized:

  • type = XR_TYPE_INSTANCE_CREATE_INFO

The allocate (allocate(Arena), allocate(Arena, long)) functions will automatically initialize these fields. Also, you may call autoInit() to initialize these fields manually for non-allocated instances.

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:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$type

      public static final MemoryLayout.PathElement PATH$type
    • PATH$next

      public static final MemoryLayout.PathElement PATH$next
    • PATH$createFlags

      public static final MemoryLayout.PathElement PATH$createFlags
    • PATH$applicationInfo

      public static final MemoryLayout.PathElement PATH$applicationInfo
    • PATH$enabledApiLayerCount

      public static final MemoryLayout.PathElement PATH$enabledApiLayerCount
    • PATH$enabledApiLayerNames

      public static final MemoryLayout.PathElement PATH$enabledApiLayerNames
    • PATH$enabledExtensionCount

      public static final MemoryLayout.PathElement PATH$enabledExtensionCount
    • PATH$enabledExtensionNames

      public static final MemoryLayout.PathElement PATH$enabledExtensionNames
    • LAYOUT$type

      public static final ValueLayout.OfInt LAYOUT$type
    • LAYOUT$next

      public static final AddressLayout LAYOUT$next
    • LAYOUT$createFlags

      public static final ValueLayout.OfLong LAYOUT$createFlags
    • LAYOUT$applicationInfo

      public static final StructLayout LAYOUT$applicationInfo
    • LAYOUT$enabledApiLayerCount

      public static final ValueLayout.OfInt LAYOUT$enabledApiLayerCount
    • LAYOUT$enabledApiLayerNames

      public static final AddressLayout LAYOUT$enabledApiLayerNames
    • LAYOUT$enabledExtensionCount

      public static final ValueLayout.OfInt LAYOUT$enabledExtensionCount
    • LAYOUT$enabledExtensionNames

      public static final AddressLayout LAYOUT$enabledExtensionNames
    • SIZE$type

      public static final long SIZE$type
    • SIZE$next

      public static final long SIZE$next
    • SIZE$createFlags

      public static final long SIZE$createFlags
    • SIZE$applicationInfo

      public static final long SIZE$applicationInfo
    • SIZE$enabledApiLayerCount

      public static final long SIZE$enabledApiLayerCount
    • SIZE$enabledApiLayerNames

      public static final long SIZE$enabledApiLayerNames
    • SIZE$enabledExtensionCount

      public static final long SIZE$enabledExtensionCount
    • SIZE$enabledExtensionNames

      public static final long SIZE$enabledExtensionNames
    • OFFSET$type

      public static final long OFFSET$type
    • OFFSET$next

      public static final long OFFSET$next
    • OFFSET$createFlags

      public static final long OFFSET$createFlags
    • OFFSET$applicationInfo

      public static final long OFFSET$applicationInfo
    • OFFSET$enabledApiLayerCount

      public static final long OFFSET$enabledApiLayerCount
    • OFFSET$enabledApiLayerNames

      public static final long OFFSET$enabledApiLayerNames
    • OFFSET$enabledExtensionCount

      public static final long OFFSET$enabledExtensionCount
    • OFFSET$enabledExtensionNames

      public static final long OFFSET$enabledExtensionNames
  • Constructor Details

    • XrInstanceCreateInfo

      public XrInstanceCreateInfo(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a XrInstanceCreateInfo record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details