Document WebGPU subgroup-size-control capability - #1145
Open
mvaligursky wants to merge 2 commits into
Open
Conversation
mvaligursky
marked this pull request as ready for review
August 12, 2026 09:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Draft — do not merge until Engine 2.22 is released. The
device.supportsSubgroupSizeControlcapability, theCAPS_SUBGROUP_SIZE_CONTROLdefine, and the publicdevice.minSubgroupSize/device.maxSubgroupSizeproperties ship in Engine 2.22 (playcanvas/engine#9158, merged tomain). Mark ready for review once 2.22 is out.Documents the WebGPU
subgroup-size-controlfeature (new in Chrome 151/152) on the WGSL Capabilities page.Changes:
device.supportsSubgroupSizeControlentry to the WGSL language extensions list, following the author-written-directive pattern (likesupportsStorageTextureRead): the engine advertises the capability but does not inject theenableline.#ifdef CAPS_SUBGROUP_SIZE_CONTROLguard, the author-writtenenable subgroup_size_control;, and the@subgroup_size(N)attribute.enable-directive ordering (all directives must precede declarations; place the author-writtenenableat the top of the chunk).device.minSubgroupSize/device.maxSubgroupSizebounds (previously undocumented) as the valid range for the pinned size.