Because a runtime may reproject the layer over time, a projection layer should specify an XrSpace in which to maximize stability of the layer content. For example, a projection layer containing world-locked content should use an XrSpace which is also world-locked, such as the LOCAL or STAGE reference spaces. In the case that the projection layer should be head-locked, such as a heads up display, the VIEW reference space would provide the highest quality layer reprojection.
type must be TYPE_COMPOSITION_LAYER_PROJECTIONnext must be NULL or a valid pointer to the next structure in a structure chain. See also: XrCompositionLayerDepthTestVARJO, XrCompositionLayerReprojectionInfoMSFT, XrCompositionLayerReprojectionPlaneOverrideMSFTlayerFlags must be 0 or a valid combination of XrCompositionLayerFlagBits valuesspace must be a valid XrSpace handleviews must be a pointer to an array of viewCount valid XrCompositionLayerProjectionView structuresviewCount parameter must be greater than 0XrCompositionLayerBaseHeader, XrCompositionLayerProjectionView, XrSwapchainSubImage
struct XrCompositionLayerProjection {
XrStructureType type;
void const * next;
XrCompositionLayerFlags layerFlags;
XrSpace space;
uint32_t viewCount;
XrCompositionLayerProjectionView const * views;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrCompositionLayerProjection.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | LAYERFLAGS
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 | SPACE
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VIEWCOUNT
The struct member offsets. |
| public static final int | VIEWS
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrCompositionLayerProjection(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrCompositionLayerProjection | |
| public static XrCompositionLayerProjection. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerProjection | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerProjection. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrCompositionLayerProjection | 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 XrCompositionLayerProjection | |
| public static XrCompositionLayerProjection | create(long address)
Returns a new |
| public static XrCompositionLayerProjection | create(XrCompositionLayerBaseHeader value)
Downcasts the specified |
| public static XrCompositionLayerProjection. | create(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerProjection. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrCompositionLayerProjection. | create(XrCompositionLayerBaseHeader.
Downcasts the specified |
| public static XrCompositionLayerProjection | |
| public static XrCompositionLayerProjection. | |
| public long | |
| public XrCompositionLayerProjection | |
| public static XrCompositionLayerProjection | |
| public static XrCompositionLayerProjection. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerProjection | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerProjection. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrCompositionLayerProjection | |
| public XrCompositionLayerProjection | next(XrCompositionLayerDepthTestVARJO value)
Prepends the specified |
| public XrCompositionLayerProjection | next(XrCompositionLayerReprojectionInfoMSFT value)
Prepends the specified |
| public XrCompositionLayerProjection | next(XrCompositionLayerReprojectionPlaneOverrideMSFT value)
Prepends the specified |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | nviewCount(long struct, int value)
Sets the specified value to the |
| public static XrCompositionLayerProjectionView. | |
| public static void | |
| public XrCompositionLayerProjection | set(int type, long next, long layerFlags, XrSpace space, XrCompositionLayerProjectionView.
Initializes this struct with the specified values. |
| public XrCompositionLayerProjection | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | space()
the |
| public XrCompositionLayerProjection | |
| public int | |
| public XrCompositionLayerProjection | |
| public XrCompositionLayerProjection | |
| public static void | |
| public int | |
| public XrCompositionLayerProjectionView. | |
| public XrCompositionLayerProjection | views(XrCompositionLayerProjectionView.
Sets the address of the specified |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| LAYERFLAGS | back to summary |
|---|---|
| public static final int LAYERFLAGS 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. | |
| SPACE | back to summary |
|---|---|
| public static final int SPACE The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VIEWCOUNT | back to summary |
|---|---|
| public static final int VIEWCOUNT The struct member offsets. | |
| VIEWS | back to summary |
|---|---|
| public static final int VIEWS The struct member offsets. | |
| XrCompositionLayerProjection | back to summary |
|---|---|
| protected XrCompositionLayerProjection(long address, ByteBuffer container) | |
| XrCompositionLayerProjection | back to summary |
|---|---|
| public XrCompositionLayerProjection(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrCompositionLayerProjection create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection create(XrCompositionLayerBaseHeader value) Downcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Create a
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Downcasts the specified | |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerProjection createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Like
| |
| layerFlags | back to summary |
|---|---|
| public long layerFlags() a bitmask of
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerProjection layerFlags(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerProjection. Returns a new
| |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection next(long value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection next(XrCompositionLayerDepthTestVARJO value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection next(XrCompositionLayerReprojectionInfoMSFT value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) Prepends the specified | |
| nlayerFlags | back to summary |
|---|---|
| public static long nlayerFlags(long struct) Unsafe version of | |
| nlayerFlags | back to summary |
|---|---|
| public static void nlayerFlags(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 | |
| nspace | back to summary |
|---|---|
| public static long nspace(long struct) Unsafe version of | |
| nspace | back to summary |
|---|---|
| public static void nspace(long struct, XrSpace 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 | |
| nviewCount | back to summary |
|---|---|
| public static int nviewCount(long struct) Unsafe version of | |
| nviewCount | back to summary |
|---|---|
| public static void nviewCount(long struct, int value) Sets the specified value to the | |
| nviews | back to summary |
|---|---|
| public static XrCompositionLayerProjectionView. Unsafe version of | |
| nviews | back to summary |
|---|---|
| public static void nviews(long struct, XrCompositionLayerProjectionView. Unsafe version of | |
| set | back to summary |
|---|---|
| public XrCompositionLayerProjection set(int type, long next, long layerFlags, XrSpace space, XrCompositionLayerProjectionView. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrCompositionLayerProjection set(XrCompositionLayerProjection src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| space | back to summary |
|---|---|
| public long space() the
| |
| space | back to summary |
|---|---|
| public XrCompositionLayerProjection space(XrSpace value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerProjection type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrCompositionLayerProjection type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| viewCount | back to summary |
|---|---|
| public int viewCount() the count of views in the
| |
| views | back to summary |
|---|---|
| public XrCompositionLayerProjectionView. the array of type
| |
| views | back to summary |
|---|---|
| public XrCompositionLayerProjection views(XrCompositionLayerProjectionView. Sets the address of the specified | |
XrCompositionLayerProjection structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrCompositionLayerProjection |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrCompositionLayerProjection 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) | |
| getElementFactory | back to summary |
|---|---|
| protected XrCompositionLayerProjection getElementFactory() Implements abstract org.
| |
| layerFlags | back to summary |
|---|---|
public long layerFlags()
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerProjection. Prepends the specified | |
| self | back to summary |
|---|---|
| protected XrCompositionLayerProjection. Implements abstract org.
| |
| space | back to summary |
|---|---|
public long space()
| |
| space | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the | |
| viewCount | back to summary |
|---|---|
public int viewCount()
| |
| views | back to summary |
|---|---|
public XrCompositionLayerProjectionView.
| |
| views | back to summary |
|---|---|
| public XrCompositionLayerProjection. Sets the address of the specified | |