device/vr abstracts WebXR features across multiple platforms.
Although the directory is named “vr” both VR and AR features are implemented here. The name is an artifact from the time when it was associated with the now deprecated WebVR API.
Windows and Android are the primary supported platforms, largely because they're the only platforms with significant XR device traction at this point. Several native APIs are supported for various use cases, though things are trending towards OpenXR being the only API used on desktops.
|API||OS||Supports||Enabled by Default|
|Windows Mixed Reality||Windows||VR||No|
Integrations with some APIs (such as AR Core) are partially locaed in chrome/browser/vr due to architectural and historical limitations. In the future those will ideally be migrated to this directory as well.