Skip to content

Conversation

@cabanier
Copy link
Member

@cabanier cabanier commented Sep 11, 2025

Addresses #313


Preview | Diff

@cabanier cabanier requested a review from alcooper91 September 11, 2025 23:25
Copy link
Contributor

@alcooper91 alcooper91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest maybe one more tweak to the prose; but this looks good to me otherwise.

webxrlayers-1.bs Outdated

Some layer types may not be supported by the {{XRSession}}. If a layer type isn't supported the method will throw an exception. {{XRProjectionLayer}} MUST be supported by all {{XRSession}}s.
If an {{XRSession}} was created with the "[=feature descriptor/layers=]" [=feature descriptor=], it MUST support all layer types.
If a layer type isn't supported its creation method MUST throw an exception. {{XRProjectionLayer}} MUST be supported by all {{XRSession}}s.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, but feels a little weird after the previous line. In the case that the feature isn't enabled, we'd throw because the feature isn't enabled except for projection layers, but if it is, there's not really a case we should be throwing. Maybe change this line to:

{{XRProjectionLayer}} MUST be supported by all {{XRSession}}s, whether it was created with the "[=feature descriptor/layers=]" [=feature descriptor=] or not.

@cabanier cabanier merged commit 734b8ed into immersive-web:main Sep 12, 2025
2 checks passed
@cabanier cabanier deleted the layer-rejection branch September 12, 2025 16:37
github-actions bot added a commit that referenced this pull request Sep 12, 2025
SHA: 734b8ed
Reason: push, by cabanier

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants