C Specification
XrFaceStateANDROID structure returns the face tracking state and facial expressions.
// Provided by XR_ANDROID_face_tracking
typedef struct XrFaceStateANDROID {
XrStructureType type;
void* next;
uint32_t parametersCapacityInput;
uint32_t parametersCountOutput;
float* parameters;
XrFaceTrackingStateANDROID faceTrackingState;
XrTime sampleTime;
XrBool32 isValid;
uint32_t regionConfidencesCapacityInput;
uint32_t regionConfidencesCountOutput;
float* regionConfidences;
} XrFaceStateANDROID;
Members
Description
The application can set parametersCapacityInput to
XR_FACE_PARAMETER_COUNT_ANDROID to get facial expressions which are
indexed by XrFaceParameterIndicesANDROID.
The runtime must return parameters representing the weights of blend
shapes of current facial expressions.
The runtime must update the parameters array ordered so that the
application can index elements using the corresponding facial expression
enum (e.g. XrFaceParameterIndicesANDROID).
See Also
Document Notes
For more information, see the OpenXR Specification
This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.
Copyright
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.