The XrPassthroughMeshTransformInfoHTC structure describes the mesh and transformation.
The application must specify the XrPassthroughMeshTransformInfoHTC in the next chain of XrCompositionLayerPassthroughHTC if the specified form of passthrough layer previously created by CreatePassthroughHTC is PASSTHROUGH_FORM_PROJECTED_HTC.
Passing XrPassthroughMeshTransformInfoHTC updates the projected mesh information in the runtime for passthrough layer composition.
If XrPassthroughMeshTransformInfoHTC is not set correctly, runtime must return error ERROR_VALIDATION_FAILURE when EndFrame is called with composition layer XrCompositionLayerPassthroughHTC.
XR_HTC_passthrough extension must be enabled prior to using XrPassthroughMeshTransformInfoHTCtype must be TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTCnext must be NULL or a valid pointer to the next structure in a structure chainvertices must be a pointer to an array of vertexCount XrVector3f structuresindices must be a pointer to an array of indexCount uint32_t valuesbaseSpace must be a valid XrSpace handlevertexCount parameter must be greater than 0indexCount parameter must be greater than 0
struct XrPassthroughMeshTransformInfoHTC {
XrStructureType type;
void const * next;
uint32_t vertexCount;
XrVector3f const * vertices;
uint32_t indexCount;
uint32_t const * indices;
XrSpace baseSpace;
XrTime time;
XrPosef pose;
XrVector3f scale;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrPassthroughMeshTransformInfoHTC.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BASESPACE
The struct member offsets. |
| public static final int | INDEXCOUNT
The struct member offsets. |
| public static final int | INDICES
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | POSE
The struct member offsets. |
| public static final int | SCALE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TIME
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VERTEXCOUNT
The struct member offsets. |
| public static final int | VERTICES
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrPassthroughMeshTransformInfoHTC(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughMeshTransformInfoHTC | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughMeshTransformInfoHTC. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrPassthroughMeshTransformInfoHTC | 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 XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC | create(long address)
Returns a new |
| public static XrPassthroughMeshTransformInfoHTC. | create(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughMeshTransformInfoHTC. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC. | |
| public int | |
| public IntBuffer | |
| public XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC | |
| public static XrPassthroughMeshTransformInfoHTC. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrPassthroughMeshTransformInfoHTC | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrPassthroughMeshTransformInfoHTC. | 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 XrPassthroughMeshTransformInfoHTC | |
| public static int | |
| public static void | nindexCount(long struct, int value)
Sets the specified value to the |
| public static IntBuffer | |
| public static void | |
| public static long | |
| public static void | |
| public static XrPosef | |
| public static void | |
| public static XrVector3f | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | nvertexCount(long struct, int value)
Sets the specified value to the |
| public static XrVector3f. | |
| public static void | |
| public XrPosef | |
| public XrPassthroughMeshTransformInfoHTC | |
| public XrPassthroughMeshTransformInfoHTC | |
| public XrVector3f | |
| public XrPassthroughMeshTransformInfoHTC | |
| public XrPassthroughMeshTransformInfoHTC | |
| public XrPassthroughMeshTransformInfoHTC | set(int type, long next, XrVector3f.
Initializes this struct with the specified values. |
| public XrPassthroughMeshTransformInfoHTC | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public XrPassthroughMeshTransformInfoHTC | |
| public int | |
| public XrPassthroughMeshTransformInfoHTC | |
| public XrPassthroughMeshTransformInfoHTC | |
| public static void | |
| public int | |
| public XrVector3f. | |
| public XrPassthroughMeshTransformInfoHTC | vertices(XrVector3f.
Sets the address of the specified |