Skip to content

Chrome 144 adds subgroup_id WGSL language feature#28891

Merged
caugner merged 2 commits intomdn:mainfrom
chrisdavidmills:chrome-144-wgsl-subgroup-id
Jan 30, 2026
Merged

Chrome 144 adds subgroup_id WGSL language feature#28891
caugner merged 2 commits intomdn:mainfrom
chrisdavidmills:chrome-144-wgsl-subgroup-id

Conversation

@chrisdavidmills
Copy link
Contributor

Summary

Chrome 144 adds support for the subgroup_id WGSL language extension. See https://chromestatus.com/feature/5072447137251328, and also see https://developer.chrome.com/blog/new-in-webgpu-144#wgsl_subgroup_id_extension for further information.

This PR adds two data points:

  • One for the subgroup_id WGSL language extension itself, in the WGSLLanguageFeatures interface.
  • An additional subfeature inside GPUSupportedFeatures, to make it clear that the subgroups feature needs to be enabled before the subgroup_id WGSL language extension features are available.

Test results and supporting details

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed labels Jan 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

"deprecated": false
}
},
"subgroup_id_num_subgroups": {
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 you have more context of whether it actually makes sense to record this subfeature here, but if we do, it would probably more consistent two have two subfeatures subgroup_id and num_subgroups.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bit of a tricky one. The trouble is, the actual WGSL language feature/extension that is available if the subgroups GPU feature is enabled is called subgroup_id. This WGSL language feature provides two WGSL built-ins called subgroup_id and num_subgroups.

By this token, it doesn't make sense to represent them as two separate WebAPI subfeatures, because they're not.

But you might have a better idea of how to represent this ;-)

},
"subgroup_id_num_subgroups": {
"__compat": {
"description": "`subgroup_id` and `num_subgroups` WGSL builtins available if `subgroups` feature enabled",
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 we can shorten this:

Suggested change
"description": "`subgroup_id` and `num_subgroups` WGSL builtins available if `subgroups` feature enabled",
"description": "`subgroup_id` and `num_subgroups` built-in values",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Related to my previous comment, I don't think this accurately represents the situation. These built-in values are not direct subfeatures of the subgroups feature, but they are available if it is enabled.

@caugner caugner changed the title Chrome 144 support for subgroup_id WGSL language feature Chrome 144 adds subgroup_id WGSL language feature Jan 30, 2026
@caugner caugner merged commit a4c07d6 into mdn:main Jan 30, 2026
8 checks passed
@mdn-bot mdn-bot mentioned this pull request Jan 30, 2026
@chrisdavidmills chrisdavidmills deleted the chrome-144-wgsl-subgroup-id branch February 2, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants