Implement VR process function to scan for XR device runtime installations
Categories
(Core :: WebVR, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: kip, Assigned: kip)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
In order to support WebXR's navigator.xr.IsSessionSupported call without displaying any permission dialogue, it is necessary to have a safe way to detect the capability of running a VR or AR session without activating XR runtimes or powering on hardware.
API's such as OpenVR make no guarantee that hardware and software won't be left activated after enumerating devices, so each backend in gfx/vr/service must allow for more granular detection of capabilities.
This patch implements a modified enumeration function that exits early after reporting the presence of XR runtime software.
Assignee | ||
Comment 1•1 year ago
|
||
This is a dependency of the WebXR implementation.
In order to support WebXR's navigator.xr.IsSessionSupported call without
displaying any permission dialogue, it is necessary to have a safe way to
detect the capability of running a VR or AR session without activating XR
runtimes or powering on hardware.
API's such as OpenVR make no guarantee that hardware and software won't be
left activated after enumerating devices, so each backend in gfx/vr/service
must allow for more granular detection of capabilities.
By passing true to bDetectRuntimesOnly, the initialization exits early
after reporting the presence of XR runtime software. The Initialize method
will only enumerate hardware and possibly return true when
aDetectRuntimesOnly is false.
Pushed by kgilbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1e4ac843ccbb Implement VR process function to scan for XR device runtime installations r=daoshengmu
Comment 3•1 year ago
|
||
bugherder |
Description
•