The application can create an XrCompositionLayerPassthroughHTC structure with the created passthrough and the corresponding information. A pointer to XrCompositionLayerPassthroughHTC may be submitted in EndFrame as a pointer to the base structure XrCompositionLayerBaseHeader, in the desired layer order, to request the runtime to composite a passthrough layer into the final frame output.
If the passthrough form specified to CreatePassthroughHTC is PASSTHROUGH_FORM_PROJECTED_HTC, XrPassthroughMeshTransformInfoHTC must appear in the next chain. If they are absent, the runtime must return error ERROR_VALIDATION_FAILURE.
XR_HTC_passthrough extension must be enabled prior to using XrCompositionLayerPassthroughHTCtype must be TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTCnext must be NULL or a valid pointer to the next structure in a structure chain. See also: XrPassthroughMeshTransformInfoHTClayerFlags must be a valid combination of XrCompositionLayerFlagBits valueslayerFlags must not be 0space must be a valid XrSpace handlepassthrough must be a valid XrPassthroughHTC handlecolor must be a valid XrPassthroughColorHTC structurepassthrough and space must have been created, allocated, or retrieved from the same XrSessionXrCompositionLayerBaseHeader, XrPassthroughColorHTC
struct XrCompositionLayerPassthroughHTC {
XrStructureType type;
void const * next;
XrCompositionLayerFlags layerFlags;
XrSpace space;
XrPassthroughHTC passthrough;
XrPassthroughColorHTC color;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrCompositionLayerPassthroughHTC.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | COLOR
The struct member offsets. |
| public static final int | LAYERFLAGS
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | PASSTHROUGH
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 | XrCompositionLayerPassthroughHTC(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrCompositionLayerPassthroughHTC | |
| public static XrCompositionLayerPassthroughHTC. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerPassthroughHTC | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerPassthroughHTC. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public XrPassthroughColorHTC | color()
the |
| public XrCompositionLayerPassthroughHTC | |
| public XrCompositionLayerPassthroughHTC | |
| protected XrCompositionLayerPassthroughHTC | 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 XrCompositionLayerPassthroughHTC | |
| public static XrCompositionLayerPassthroughHTC | create(long address)
Returns a new |
| public static XrCompositionLayerPassthroughHTC | create(XrCompositionLayerBaseHeader value)
Downcasts the specified |
| public static XrCompositionLayerPassthroughHTC. | create(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerPassthroughHTC. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrCompositionLayerPassthroughHTC. | create(XrCompositionLayerBaseHeader.
Downcasts the specified |
| public static XrCompositionLayerPassthroughHTC | |
| public static XrCompositionLayerPassthroughHTC. | |
| public long | |
| public XrCompositionLayerPassthroughHTC | |
| public static XrCompositionLayerPassthroughHTC | |
| public static XrCompositionLayerPassthroughHTC. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrCompositionLayerPassthroughHTC | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrCompositionLayerPassthroughHTC. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static XrPassthroughColorHTC | |
| public static void | |
| public long | next()
|
| public XrCompositionLayerPassthroughHTC | |
| public XrCompositionLayerPassthroughHTC | next(XrPassthroughMeshTransformInfoHTC value)
Prepends the specified |
| public static long | |
| public static void | |
| 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 long | |
| public XrCompositionLayerPassthroughHTC | |
| public XrCompositionLayerPassthroughHTC | set(int type, long next, long layerFlags, XrSpace space, XrPassthroughHTC passthrough, XrPassthroughColorHTC color)
Initializes this struct with the specified values. |
| public XrCompositionLayerPassthroughHTC | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public XrCompositionLayerPassthroughHTC | |
| public int | |
| public XrCompositionLayerPassthroughHTC | |
| public XrCompositionLayerPassthroughHTC | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| COLOR | back to summary |
|---|---|
| public static final int COLOR The struct member offsets. | |
| 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. | |
| PASSTHROUGH | back to summary |
|---|---|
| public static final int PASSTHROUGH 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. | |
| XrCompositionLayerPassthroughHTC | back to summary |
|---|---|
| protected XrCompositionLayerPassthroughHTC(long address, ByteBuffer container) | |
| XrCompositionLayerPassthroughHTC | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Returns a new
| |
| color | back to summary |
|---|---|
| public XrPassthroughColorHTC color() the | |
| color | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC color(XrPassthroughColorHTC value) Copies the specified | |
| color | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC color(Consumer<XrPassthroughColorHTC> consumer) | |
| create | back to summary |
|---|---|
| protected XrCompositionLayerPassthroughHTC create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC create(XrCompositionLayerBaseHeader value) Downcasts the specified | |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Create a
| |
| create | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Downcasts the specified | |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Like
| |
| layerFlags | back to summary |
|---|---|
| public long layerFlags() a bitmask of
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC layerFlags(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrCompositionLayerPassthroughHTC. Returns a new
| |
| ncolor | back to summary |
|---|---|
| public static XrPassthroughColorHTC ncolor(long struct) Unsafe version of | |
| ncolor | back to summary |
|---|---|
| public static void ncolor(long struct, XrPassthroughColorHTC value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC next(long value) Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC next(XrPassthroughMeshTransformInfoHTC 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 | |
| npassthrough | back to summary |
|---|---|
| public static long npassthrough(long struct) Unsafe version of | |
| npassthrough | back to summary |
|---|---|
| public static void npassthrough(long struct, XrPassthroughHTC 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 | |
| passthrough | back to summary |
|---|---|
| public long passthrough() the
| |
| passthrough | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC passthrough(XrPassthroughHTC value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC set(int type, long next, long layerFlags, XrSpace space, XrPassthroughHTC passthrough, XrPassthroughColorHTC color) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC set(XrCompositionLayerPassthroughHTC 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 XrCompositionLayerPassthroughHTC space(XrSpace value) Sets the specified value to the | |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrCompositionLayerPassthroughHTC structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrCompositionLayerPassthroughHTC |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrCompositionLayerPassthroughHTC 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) | |
| color | back to summary |
|---|---|
public XrPassthroughColorHTC color()
| |
| color | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Copies the specified | |
| color | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Passes the | |
| getElementFactory | back to summary |
|---|---|
| protected XrCompositionLayerPassthroughHTC getElementFactory() Implements abstract org.
| |
| layerFlags | back to summary |
|---|---|
public long layerFlags()
| |
| layerFlags | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the specified value to the | |
| next | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Prepends the specified | |
| passthrough | back to summary |
|---|---|
public long passthrough()
| |
| passthrough | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrCompositionLayerPassthroughHTC. Implements abstract org.
| |
| space | back to summary |
|---|---|
public long space()
| |
| space | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrCompositionLayerPassthroughHTC. Sets the | |