All composition layer structures begin with the elements described in the XrCompositionLayerBaseHeader. The XrCompositionLayerBaseHeader structure is not intended to be directly used, but forms a basis for defining current and future structures containing composition layer information. The XrFrameEndInfo structure contains an array of pointers to these polymorphic header structures. All composition layer type pointers must be type-castable as an XrCompositionLayerBaseHeader pointer.
type must be one of the following XrStructureType values: TYPE_COMPOSITION_LAYER_CUBE_KHR, TYPE_COMPOSITION_LAYER_CYLINDER_KHR, TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR, TYPE_COMPOSITION_LAYER_EQUIRECT_KHR, TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC, TYPE_COMPOSITION_LAYER_PROJECTION, TYPE_COMPOSITION_LAYER_QUADnext must be NULL or a valid pointer to the next structure in a structure chain. See also: XrCompositionLayerAlphaBlendFB, XrCompositionLayerColorScaleBiasKHR, XrCompositionLayerDepthTestFB, XrCompositionLayerImageLayoutFB, XrCompositionLayerPassthroughFB, XrCompositionLayerSecureContentFB, XrCompositionLayerSettingsFBlayerFlags must be 0 or a valid combination of XrCompositionLayerFlagBits valuesspace must be a valid XrSpace handleXrFrameEndInfo, XrSecondaryViewConfigurationLayerInfoMSFT, XrSwapchainSubImage
struct XrCompositionLayerBaseHeader {
XrStructureType type;
void const * next;
XrCompositionLayerFlags layerFlags;
XrSpace space;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrCompositionLayerBaseHeader.
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. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrCompositionLayerBaseHeader(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrCompositionLayerBaseHeader | |
| public static XrCompositionLayerBaseHeader. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerBaseHeader | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerBaseHeader. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrCompositionLayerBaseHeader | 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 XrCompositionLayerBaseHeader | |
| public static XrCompositionLayerBaseHeader | create(long address)
Returns a new |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerProjection value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerQuad value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerCubeKHR value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerCylinderKHR value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerEquirectKHR value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerEquirect2KHR value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | create(XrCompositionLayerPassthroughHTC value)
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerBaseHeader. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerProjection.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerQuad.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerCubeKHR.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerCylinderKHR.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerEquirectKHR.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerEquirect2KHR.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader. | create(XrCompositionLayerPassthroughHTC.
Upcasts the specified |
| public static XrCompositionLayerBaseHeader | |
| public static XrCompositionLayerBaseHeader. | |
| public long | |
| public XrCompositionLayerBaseHeader | |
| public static XrCompositionLayerBaseHeader | |
| public static XrCompositionLayerBaseHeader. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerBaseHeader | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerBaseHeader. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public long | |
| public XrCompositionLayerBaseHeader | |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerAlphaBlendFB value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerColorScaleBiasKHR value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerDepthTestFB value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerImageLayoutFB value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerPassthroughFB value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerSecureContentFB value)
Prepends the specified |
| public XrCompositionLayerBaseHeader | next(XrCompositionLayerSettingsFB 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 XrCompositionLayerBaseHeader | |
| public XrCompositionLayerBaseHeader | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public XrCompositionLayerBaseHeader | |
| public int | |
| public XrCompositionLayerBaseHeader | |
| public static void |
| 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. | |
| XrCompositionLayerBaseHeader | back to summary |
|---|---|
| protected XrCompositionLayerBaseHeader(long address, ByteBuffer container) | |
| XrCompositionLayerBaseHeader | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrCompositionLayerBaseHeader create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerProjection value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerQuad value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerCubeKHR value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerCylinderKHR value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerEquirectKHR value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerEquirect2KHR value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader create(XrCompositionLayerPassthroughHTC value) Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Create a
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Upcasts the specified | |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Like
| |
| layerFlags | back to summary |
|---|---|
| public long layerFlags() a bitmask of
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader layerFlags(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerBaseHeader. Returns a new
| |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(long value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerAlphaBlendFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerColorScaleBiasKHR value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerDepthTestFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerImageLayoutFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerPassthroughFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerSecureContentFB value) Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader next(XrCompositionLayerSettingsFB 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 | |
| set | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader set(int type, long next, long layerFlags, XrSpace space) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader set(XrCompositionLayerBaseHeader 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 XrCompositionLayerBaseHeader space(XrSpace value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader type(int value) Sets the specified value to the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrCompositionLayerBaseHeader structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrCompositionLayerBaseHeader |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrCompositionLayerBaseHeader 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 XrCompositionLayerBaseHeader getElementFactory() Implements abstract org.
| |
| layerFlags | back to summary |
|---|---|
public long layerFlags()
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| next | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Prepends the specified | |
| self | back to summary |
|---|---|
| protected XrCompositionLayerBaseHeader. Implements abstract org.
| |
| space | back to summary |
|---|---|
public long space()
| |
| space | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerBaseHeader. Sets the specified value to the | |