-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose XRSession's granted features #1296
Expose XRSession's granted features #1296
Conversation
…ribute to XRSession
I weighed adding a change event but opted not to at this time since we don't currently have any mechanisms/algorithm's/language about changing the set of enabled features mid session; but it should be fairly straightforward to add if we want to either pre-emptively add support, or if I just missed that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for putting this together!
SHA: a493dd5 Reason: push, by @alcooper91 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… type sequence<DOMString>. r=mccr8 This was changed in the spec here: immersive-web/webxr#1296 Differential Revision: https://phabricator.services.mozilla.com/D201336
… type sequence<DOMString>. r=mccr8 This was changed in the spec here: immersive-web/webxr#1296 Differential Revision: https://phabricator.services.mozilla.com/D201336
… type sequence<DOMString>. r=mccr8 This was changed in the spec here: immersive-web/webxr#1296 Differential Revision: https://phabricator.services.mozilla.com/D201336
… type sequence<DOMString>. r=mccr8 This was changed in the spec here: immersive-web/webxr#1296 Differential Revision: https://phabricator.services.mozilla.com/D201336
…sion.requestLightProbe` The double-negative here is unfortunate, but currently `session.enabledFeatures` is only available in Chromium-based browsers, so we can't always *positively* know that the feature is supported. Another approach would be to wrap `session.requestLightProbe` in try/catch, or add `.catch` after the `.then`, but for whatever reason, those don't seem to actually catch the error for me. Related: immersive-web/webxr#1296
Per Issue #1205, this proposal makes the following changes:
enabledFeatures
Note that this second change is consistent with how feature descriptors have currently been extended by the various other specs. It essentially requires that we have a string representation of the feature and can then further configure the feature as needed.
Preview | Diff