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.
XR_MSFT_holographic_window_attachment extension must be enabled prior to using XrHolographicWindowAttachmentMSFTtype must be TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFTnext must be NULL or a valid pointer to the next structure in a structure chainholographicSpace must be a pointer to an IUnknown valuecoreWindow must be a pointer to an IUnknown value
struct XrHolographicWindowAttachmentMSFT {
XrStructureType type;
void const * next;
IUnknown * holographicSpace;
IUnknown * coreWindow;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrHolographicWindowAttachmentMSFT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COREWINDOW
The struct member offsets. |
| public static final int | HOLOGRAPHICSPACE
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrHolographicWindowAttachmentMSFT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrHolographicWindowAttachmentMSFT | |
| public static XrHolographicWindowAttachmentMSFT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrHolographicWindowAttachmentMSFT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrHolographicWindowAttachmentMSFT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrHolographicWindowAttachmentMSFT | |
| protected XrHolographicWindowAttachmentMSFT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrHolographicWindowAttachmentMSFT | |
| public static XrHolographicWindowAttachmentMSFT | create(long address)
Returns a new |
| public static XrHolographicWindowAttachmentMSFT. | create(int
the buffer capacity capacity)Returns a new |
| public static XrHolographicWindowAttachmentMSFT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrHolographicWindowAttachmentMSFT | |
| public static XrHolographicWindowAttachmentMSFT. | |
| public long | |
| public XrHolographicWindowAttachmentMSFT | |
| public static XrHolographicWindowAttachmentMSFT | |
| public static XrHolographicWindowAttachmentMSFT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrHolographicWindowAttachmentMSFT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrHolographicWindowAttachmentMSFT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public long | |
| public XrHolographicWindowAttachmentMSFT | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public XrHolographicWindowAttachmentMSFT | set(int type, long next, long holographicSpace, long coreWindow)
Initializes this struct with the specified values. |
| public XrHolographicWindowAttachmentMSFT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrHolographicWindowAttachmentMSFT | |
| public XrHolographicWindowAttachmentMSFT | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COREWINDOW | back to summary |
|---|---|
| public static final int COREWINDOW The struct member offsets. | |
| HOLOGRAPHICSPACE | back to summary |
|---|---|
| public static final int HOLOGRAPHICSPACE The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrHolographicWindowAttachmentMSFT | back to summary |
|---|---|
| protected XrHolographicWindowAttachmentMSFT(long address, ByteBuffer container) | |
| XrHolographicWindowAttachmentMSFT | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Returns a new
| |
| coreWindow | back to summary |
|---|---|
| public long coreWindow() a pointer to a valid
| |
| coreWindow | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT coreWindow(long value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected XrHolographicWindowAttachmentMSFT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Like
| |
| holographicSpace | back to summary |
|---|---|
| public long holographicSpace() a pointer to a valid
| |
| holographicSpace | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT holographicSpace(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrHolographicWindowAttachmentMSFT. Returns a new
| |
| ncoreWindow | back to summary |
|---|---|
| public static long ncoreWindow(long struct) Unsafe version of | |
| ncoreWindow | back to summary |
|---|---|
| public static void ncoreWindow(long struct, long value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT next(long value) Sets the specified value to the | |
| nholographicSpace | back to summary |
|---|---|
| public static long nholographicSpace(long struct) Unsafe version of | |
| nholographicSpace | back to summary |
|---|---|
| public static void nholographicSpace(long struct, long value) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT set(int type, long next, long holographicSpace, long coreWindow) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT set(XrHolographicWindowAttachmentMSFT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrHolographicWindowAttachmentMSFT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrHolographicWindowAttachmentMSFT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public XrHolographicWindowAttachmentMSFT. | coreWindow(long value)
Sets the specified value to the |
| protected XrHolographicWindowAttachmentMSFT | |
| public long | Returns: the value of theXrHolographicWindowAttachmentMSFT#holographicSpace field.
|
| public XrHolographicWindowAttachmentMSFT. | holographicSpace(long value)
Sets the specified value to the |
| public long | |
| public XrHolographicWindowAttachmentMSFT. | |
| protected XrHolographicWindowAttachmentMSFT. | |
| public int | |
| public XrHolographicWindowAttachmentMSFT. | |
| public XrHolographicWindowAttachmentMSFT. | type$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrHolographicWindowAttachmentMSFT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| coreWindow | back to summary |
|---|---|
public long coreWindow()
| |
| coreWindow | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrHolographicWindowAttachmentMSFT getElementFactory() Implements abstract org.
| |
| holographicSpace | back to summary |
|---|---|
public long holographicSpace()
| |
| holographicSpace | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrHolographicWindowAttachmentMSFT. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrHolographicWindowAttachmentMSFT. Sets the | |