C Specification
An application can inspect whether the system is capable of parametric haptics by extending the XrSystemProperties structure with XrSystemHapticParametricPropertiesEXT when calling xrGetSystemProperties.
The XrSystemHapticParametricPropertiesEXT structure is defined as:
// Provided by XR_EXT_haptic_parametric
typedef struct XrSystemHapticParametricPropertiesEXT {
XrStructureType type;
void* next;
XrBool32 supportsParametricHaptics;
} XrSystemHapticParametricPropertiesEXT;
Members
Description
If the system does not support parametric haptics:
-
The runtime must return
XR_FALSEforsupportsParametricHaptics. -
The runtime must return
XR_ERROR_FEATURE_UNSUPPORTEDfrom xrHapticParametricGetPropertiesEXT. -
The runtime must not trigger a haptic event when the application calls xrApplyHapticFeedback with XrHapticParametricVibrationEXT, and must return
XR_ERROR_FEATURE_UNSUPPORTED.
If the system supports parametric haptics:
-
The runtime must return
XR_TRUEforsupportsParametricHaptics. -
The runtime must support haptic events of type XrHapticParametricVibrationEXT on all output component paths that are supported for haptic events of type XrHapticVibration.
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-2026 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.