Record Class XrFoveationConfigurationHTC

java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrFoveationConfigurationHTC
All Implemented Interfaces:
IPointer, IXrFoveationConfigurationHTC

@ValueBasedCandidate @UnsafeConstructor public record XrFoveationConfigurationHTC(@NotNull MemorySegment segment) extends Record implements IXrFoveationConfigurationHTC

Represents a pointer to a XrFoveationConfigurationHTC structure in native memory.

Structure

typedef struct XrFoveationConfigurationHTC {
    XrFoveationLevelHTC level;
    float clearFovDegree;
    XrVector2f focalCenterOffset;
} XrFoveationConfigurationHTC;

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

      public static final MemoryLayout.PathElement PATH$level
    • PATH$clearFovDegree

      public static final MemoryLayout.PathElement PATH$clearFovDegree
    • PATH$focalCenterOffset

      public static final MemoryLayout.PathElement PATH$focalCenterOffset
    • LAYOUT$level

      public static final ValueLayout.OfInt LAYOUT$level
    • LAYOUT$clearFovDegree

      public static final ValueLayout.OfFloat LAYOUT$clearFovDegree
    • LAYOUT$focalCenterOffset

      public static final StructLayout LAYOUT$focalCenterOffset
    • SIZE$level

      public static final long SIZE$level
    • SIZE$clearFovDegree

      public static final long SIZE$clearFovDegree
    • SIZE$focalCenterOffset

      public static final long SIZE$focalCenterOffset
    • OFFSET$level

      public static final long OFFSET$level
    • OFFSET$clearFovDegree

      public static final long OFFSET$clearFovDegree
    • OFFSET$focalCenterOffset

      public static final long OFFSET$focalCenterOffset
  • Constructor Details

    • XrFoveationConfigurationHTC

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