GL_NUMWORKGROUPS(3G)
β¨ NAME β¨
okay so this is the GL_NUMWORKGROUPS(3G) page, and it's literally about gl_NumWorkGroups β the header's middle slot is [FIXME: manual], which is giving placeholder main-character energy, but the actual thing we're talking about is gl_NumWorkGroups, and it contains the number of workgroups that have been dispatched to a compute shader. That's the whole vibe. π
π DECLARATION π
bestie, the declaration is short, and the original has the .SH "DESCRIPTION" bit glued right onto it, so we're keeping that exact little chaos goblin:
in uvec3 gl_NumWorkGroups ;.SH "DESCRIPTION"
π DESCRIPTION π
In the compute language, gl_NumWorkGroups contains the total number of work groups that will execute the compute shader. The components of gl_NumWorkGroups are equal to the num_groups_x, num_groups_y, and num_groups_z parameters passed to the glDispatchCompute command. That's it β no extra lore, just the group-count trio. π«Ά
π VERSION SUPPORT π
The version-support vibe check is under OpenGL Shading Language Version. The variable name is gl_NumWorkGroups, and its row is exactly:
gl_NumWorkGroups1.10:-1.20:-1.30:-1.40:-1.50:-3.30:-4.00:-4.10:-4.20:-4.30:β4.40:β4.50:β
π¦ SEE ALSO π¦
go bother these icons next:
gl_WorkGroupSize()gl_WorkGroupID()gl_LocalInvocationID()
π COPYRIGHT π
Copyright Β© 2011-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT π
yes, there are two COPYRIGHT sections, and we're keeping both because details are sacred:
Copyright Β© 2012-2014 Khronos Group
mwah π cute sign-off: the footer's source/version slot is [FIXME: source], and the date on deck is 08/09/2021. GL_NUMWORKGROUPS(3G) out β stay glitched, bestie. π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms