KhronosGroup / KhronosGroup/GLSL
Why is `gl_SubgroupSize` not a constant?
Open
Vulkan
- Dominant language
- JavaScript
- Stars
- 458
- Forks
- 114
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Description
Why is `gl_SubgroupSize` not a constant?
Per Vulkan spec it is PhysicalDevice property, so it feels it could be a built-in constant.
Currently it seems to be listed under built-in variables.
I am also not certain why `gl_NumSubgroups` is _only_ "uniform across the invocation group". Why would it ever change within the workgroup?
Contributor guide
Assessment
This issue has not been assessed yet.