diff --git a/src/xrt/include/xrt/xrt_device.h b/src/xrt/include/xrt/xrt_device.h index f4d001a90..25dce11ea 100644 --- a/src/xrt/include/xrt/xrt_device.h +++ b/src/xrt/include/xrt/xrt_device.h @@ -417,6 +417,17 @@ xrt_device_get_view_pose(struct xrt_device *xdev, xdev->get_view_pose(xdev, eye_relation, view_index, out_pose); } +/*! + * Helper function for @ref xrt_device::compute_distortion. + * + * @public @memberof xrt_device + */ +static inline void +xrt_device_compute_distortion(struct xrt_device *xdev, int view, float u, float v, struct xrt_uv_triplet *result) +{ + xdev->compute_distortion(xdev, view, u, v, result); +} + /*! * Helper function for @ref xrt_device::destroy. *