Record Class XrViewConfigurationView

java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrViewConfigurationView
All Implemented Interfaces:
IPointer, IXrViewConfigurationView

@ValueBasedCandidate @UnsafeConstructor public record XrViewConfigurationView(@NotNull MemorySegment segment) extends Record implements IXrViewConfigurationView

Represents a pointer to a XrViewConfigurationView structure in native memory.

Structure

typedef struct XrViewConfigurationView {
    XrStructureType type;
    void* next;
    uint32_t recommendedImageRectWidth;
    uint32_t maxImageRectWidth;
    uint32_t recommendedImageRectHeight;
    uint32_t maxImageRectHeight;
    uint32_t recommendedSwapchainSampleCount;
    uint32_t maxSwapchainSampleCount;
} XrViewConfigurationView;

Auto initialization

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

  • type = XR_TYPE_VIEW_CONFIGURATION_VIEW

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

      public static final MemoryLayout.PathElement PATH$recommendedImageRectWidth
    • PATH$maxImageRectWidth

      public static final MemoryLayout.PathElement PATH$maxImageRectWidth
    • PATH$recommendedImageRectHeight

      public static final MemoryLayout.PathElement PATH$recommendedImageRectHeight
    • PATH$maxImageRectHeight

      public static final MemoryLayout.PathElement PATH$maxImageRectHeight
    • PATH$recommendedSwapchainSampleCount

      public static final MemoryLayout.PathElement PATH$recommendedSwapchainSampleCount
    • PATH$maxSwapchainSampleCount

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

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

      public static final AddressLayout LAYOUT$next
    • LAYOUT$recommendedImageRectWidth

      public static final ValueLayout.OfInt LAYOUT$recommendedImageRectWidth
    • LAYOUT$maxImageRectWidth

      public static final ValueLayout.OfInt LAYOUT$maxImageRectWidth
    • LAYOUT$recommendedImageRectHeight

      public static final ValueLayout.OfInt LAYOUT$recommendedImageRectHeight
    • LAYOUT$maxImageRectHeight

      public static final ValueLayout.OfInt LAYOUT$maxImageRectHeight
    • LAYOUT$recommendedSwapchainSampleCount

      public static final ValueLayout.OfInt LAYOUT$recommendedSwapchainSampleCount
    • LAYOUT$maxSwapchainSampleCount

      public static final ValueLayout.OfInt LAYOUT$maxSwapchainSampleCount
    • SIZE$type

      public static final long SIZE$type
    • SIZE$next

      public static final long SIZE$next
    • SIZE$recommendedImageRectWidth

      public static final long SIZE$recommendedImageRectWidth
    • SIZE$maxImageRectWidth

      public static final long SIZE$maxImageRectWidth
    • SIZE$recommendedImageRectHeight

      public static final long SIZE$recommendedImageRectHeight
    • SIZE$maxImageRectHeight

      public static final long SIZE$maxImageRectHeight
    • SIZE$recommendedSwapchainSampleCount

      public static final long SIZE$recommendedSwapchainSampleCount
    • SIZE$maxSwapchainSampleCount

      public static final long SIZE$maxSwapchainSampleCount
    • OFFSET$type

      public static final long OFFSET$type
    • OFFSET$next

      public static final long OFFSET$next
    • OFFSET$recommendedImageRectWidth

      public static final long OFFSET$recommendedImageRectWidth
    • OFFSET$maxImageRectWidth

      public static final long OFFSET$maxImageRectWidth
    • OFFSET$recommendedImageRectHeight

      public static final long OFFSET$recommendedImageRectHeight
    • OFFSET$maxImageRectHeight

      public static final long OFFSET$maxImageRectHeight
    • OFFSET$recommendedSwapchainSampleCount

      public static final long OFFSET$recommendedSwapchainSampleCount
    • OFFSET$maxSwapchainSampleCount

      public static final long OFFSET$maxSwapchainSampleCount
  • Constructor Details

    • XrViewConfigurationView

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