files/en-us/web/api/xrdepthinformation/index.md
{{APIRef("WebXR Device API")}} {{secureContext_header}}{{SeeCompatTable}}
The XRDepthInformation interface contains information about the distance from the user's device to the real-world geometry in the user's environment.
This interface is the parent of:
You will usually interact with these child interfaces. However, XRDepthInformation provides some useful properties that are inherited:
width and height to obtain the absolute depth-buffer coordinates.None.
See {{domxref("XRCPUDepthInformation")}} and {{domxref("XRWebGLDepthInformation")}} for code examples.
{{Specifications}}
{{Compat}}