tree: b1de552d4217acd87b7cc659f623ffc635b99489 [path history] [tgz]
  1. android/
  2. buildflags/
  3. openxr/
  4. orientation/
  5. public/
  6. test/
  7. util/
  8. windows/
  9. windows_mixed_reality/
  10. BUILD.gn
  11. DEPS
  12. DIR_METADATA
  13. empty.cc
  14. gl_bindings.h
  15. OWNERS
  16. README.md
  17. vr_device.h
  18. vr_device_base.cc
  19. vr_device_base.h
  20. vr_device_base_unittest.cc
  21. vr_export.h
  22. vr_gl_util.cc
  23. vr_gl_util.h
device/vr/README.md

VR

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.

Platform support

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.

APIOSSupportsEnabled by Default
OpenXRWindows*VR*Yes**
AR CoreAndroidARYes
Google VRAndroidVRYes
Windows Mixed RealityWindowsVRNo
  • * OpenXR may support multiple OSes and AR use cases as well. Currently we only use it for VR on Windows since that's what the majority of existing runtimes support.
  • ** OpenXR runtimes are only enabled by default if they implement the “XR_EXT_win32_appcontainer_compatible” extension.

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.

Testing

See XR Browser Tests documentation.