Record Class XrScenePlaneMSFT

java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrScenePlaneMSFT
All Implemented Interfaces:
IPointer, IXrScenePlaneMSFT

@ValueBasedCandidate @UnsafeConstructor public record XrScenePlaneMSFT(@NotNull MemorySegment segment) extends Record implements IXrScenePlaneMSFT

Represents a pointer to a XrScenePlaneMSFT structure in native memory.

Structure

typedef struct XrScenePlaneMSFT {
    XrScenePlaneAlignmentTypeMSFT alignment;
    XrExtent2Df size;
    uint64_t meshBufferId;
    XrBool32 supportsIndicesUint16;
} XrScenePlaneMSFT;

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

      public static final MemoryLayout.PathElement PATH$alignment
    • PATH$size

      public static final MemoryLayout.PathElement PATH$size
    • PATH$meshBufferId

      public static final MemoryLayout.PathElement PATH$meshBufferId
    • PATH$supportsIndicesUint16

      public static final MemoryLayout.PathElement PATH$supportsIndicesUint16
    • LAYOUT$alignment

      public static final ValueLayout.OfInt LAYOUT$alignment
    • LAYOUT$size

      public static final StructLayout LAYOUT$size
    • LAYOUT$meshBufferId

      public static final ValueLayout.OfLong LAYOUT$meshBufferId
    • LAYOUT$supportsIndicesUint16

      public static final ValueLayout.OfInt LAYOUT$supportsIndicesUint16
    • SIZE$alignment

      public static final long SIZE$alignment
    • SIZE$size

      public static final long SIZE$size
    • SIZE$meshBufferId

      public static final long SIZE$meshBufferId
    • SIZE$supportsIndicesUint16

      public static final long SIZE$supportsIndicesUint16
    • OFFSET$alignment

      public static final long OFFSET$alignment
    • OFFSET$size

      public static final long OFFSET$size
    • OFFSET$meshBufferId

      public static final long OFFSET$meshBufferId
    • OFFSET$supportsIndicesUint16

      public static final long OFFSET$supportsIndicesUint16
  • Constructor Details

    • XrScenePlaneMSFT

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