← Back to release summary

WebGPU: `subgroup_id` feature

Category
Graphics
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: WebGPU/WGSL have a conformance test suite (https://github.com/gpuweb/cts) that is regularly pulled into Chromium and part of the testing of Dawn/Tint in Chromium. While the CTS can be embedded in WPT, the WebGPU team opted to keep it separate in Chromium testing to use a customized harness for robustness and performance. CTS coverage for the feature was added here: https://github.com/gpuweb/cts/pull/4487

Summary

Functionality added to the WebGPU spec after its first shipment in a browser. The `subgroup_id` and `num_subgroups` built-in values are now available when the subgroups extension is enabled.

Motivation

The `subgroup_id` and `num_subgroups` built-in values are now available when the subgroups extension is enabled. This improves the process of scheduling work across subgroups in WebGPU compute shaders.

Standards & signals

Ecosystem

Explainers: https://github.com/gpuweb/gpuweb/blob/486577ae07e0fe3c433859499a1b558ee7c5275b/proposals/subgroup-id.md

View on chromestatus.com