KhronosGroup / KhronosGroup/GLSL

Why is `gl_SubgroupSize` not a constant?

Open
#19 19 comments 0 reactions 1 assignee Claimed by @pdaniell-nv View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.