Class XrFoveationApplyInfoHTC

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrFoveationApplyInfoHTC>
org.lwjgl.openxr.XrFoveationApplyInfoHTC
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrFoveationApplyInfoHTC extends org.lwjgl.system.Struct<XrFoveationApplyInfoHTC> implements org.lwjgl.system.NativeResource
Information for foveation applying.
Description

The application should set the following configurations in XrFoveationApplyInfoHTC:

  • The foveation mode to be applied.
  • The specified XrSwapchainSubImage to the corresponding view.

The XrSwapchain::faceCount of the swapchain in XrSwapchainSubImage must be 1 since this extension does not support cubemaps.

If mode is FOVEATION_MODE_DYNAMIC_HTC, the next chain for this structure must include XrFoveationDynamicModeInfoHTC structure.

If mode is FOVEATION_MODE_CUSTOM_HTC, the next chain for this structure must include XrFoveationCustomModeInfoHTC structure.

The order of subImages must be the same order as in XrCompositionLayerProjectionView when submitted in EndFrame.

Valid Usage (Implicit)
See Also

XrSwapchainSubImage, ApplyFoveationHTC

Layout


 struct XrFoveationApplyInfoHTC {
     XrStructureType type();
     void const * next();
     XrFoveationModeHTC mode();
     uint32_t subImageCount();
     XrSwapchainSubImage * subImages();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • MODE

      public static final int MODE
      The struct member offsets.
    • SUBIMAGECOUNT

      public static final int SUBIMAGECOUNT
      The struct member offsets.
    • SUBIMAGES

      public static final int SUBIMAGES
      The struct member offsets.
  • Constructor Details

    • XrFoveationApplyInfoHTC

      public XrFoveationApplyInfoHTC(ByteBuffer container)
      Creates a XrFoveationApplyInfoHTC instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details