Class XrHolographicWindowAttachmentMSFT

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

public class XrHolographicWindowAttachmentMSFT extends org.lwjgl.system.Struct<XrHolographicWindowAttachmentMSFT> implements org.lwjgl.system.NativeResource
The holographic window binding structure which can be passed at session creation.
Description

When creating a holographic window-backed XrSession, the application provides a pointer to an XrHolographicWindowAttachmentMSFT in the next chain of the XrSessionCreateInfo.

The session state of a holographic window-backed XrSession will only reach SESSION_STATE_VISIBLE when the provided CoreWindow is made visible. If the CoreWindow is for a secondary app view, the application must programmatically request to make the CoreWindow visible (e.g. with ApplicationViewSwitcher.TryShowAsStandaloneAsync or ApplicationViewSwitcher.SwitchAsync).

The app must not call CreateSession while the specified CoreWindow thread is blocked, otherwise the call may deadlock.

Valid Usage (Implicit)
See Also

CreateSession

Layout


 struct XrHolographicWindowAttachmentMSFT {
     XrStructureType type();
     void const * next();
     IUnknown * holographicSpace();
     IUnknown * coreWindow();
 }
  • 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.
    • HOLOGRAPHICSPACE

      public static final int HOLOGRAPHICSPACE
      The struct member offsets.
    • COREWINDOW

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

    • XrHolographicWindowAttachmentMSFT

      public XrHolographicWindowAttachmentMSFT(ByteBuffer container)
      Creates a XrHolographicWindowAttachmentMSFT 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