Class XrHolographicWindowAttachmentMSFT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrHolographicWindowAttachmentMSFT
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, HOLOGRAPHICSPACE, COREWINDOW

        The struct member offsets.
    • Constructor Detail

      • XrHolographicWindowAttachmentMSFT

        public XrHolographicWindowAttachmentMSFT​(java.nio.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.