Record Class XrSceneMeshIndicesUint16MSFT

java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrSceneMeshIndicesUint16MSFT
All Implemented Interfaces:
IPointer, IXrSceneMeshIndicesUint16MSFT

@ValueBasedCandidate @UnsafeConstructor public record XrSceneMeshIndicesUint16MSFT(@NotNull MemorySegment segment) extends Record implements IXrSceneMeshIndicesUint16MSFT

Represents a pointer to a XrSceneMeshIndicesUint16MSFT structure in native memory.

Structure

typedef struct XrSceneMeshIndicesUint16MSFT {
    XrStructureType type;
    void* next;
    uint32_t indexCapacityInput; // optional
    uint32_t indexCountOutput; // optional
    uint16_t* indices; // optional
} XrSceneMeshIndicesUint16MSFT;

Auto initialization

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

  • type = XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT

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$indexCapacityInput

      public static final MemoryLayout.PathElement PATH$indexCapacityInput
    • PATH$indexCountOutput

      public static final MemoryLayout.PathElement PATH$indexCountOutput
    • PATH$indices

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

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

      public static final AddressLayout LAYOUT$next
    • LAYOUT$indexCapacityInput

      public static final ValueLayout.OfInt LAYOUT$indexCapacityInput
    • LAYOUT$indexCountOutput

      public static final ValueLayout.OfInt LAYOUT$indexCountOutput
    • LAYOUT$indices

      public static final AddressLayout LAYOUT$indices
    • SIZE$type

      public static final long SIZE$type
    • SIZE$next

      public static final long SIZE$next
    • SIZE$indexCapacityInput

      public static final long SIZE$indexCapacityInput
    • SIZE$indexCountOutput

      public static final long SIZE$indexCountOutput
    • SIZE$indices

      public static final long SIZE$indices
    • OFFSET$type

      public static final long OFFSET$type
    • OFFSET$next

      public static final long OFFSET$next
    • OFFSET$indexCapacityInput

      public static final long OFFSET$indexCapacityInput
    • OFFSET$indexCountOutput

      public static final long OFFSET$indexCountOutput
    • OFFSET$indices

      public static final long OFFSET$indices
  • Constructor Details

    • XrSceneMeshIndicesUint16MSFT

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