GL_WORKGROUPSIZE(3G)
π NAME π
okay so bestie, this is the GL_WORKGROUPSIZE(3G) page β manual name 3G β and the header slot is literally [FIXME: manual] (placeholder era, no cap π
). gl_WorkGroupSize contains the size of the workgroup operated on by a compute shader. Periodt.
π DECLARATION π
const uvec3 gl_WorkGroupSize ;
tiny source tea: the raw line also has .SH "DESCRIPTION" glued right after it β that's the manpage DESCRIPTION heading doing a little formatting glitch, we move on π«Ά.
β¨ DESCRIPTION β¨
In the compute language, gl_WorkGroupSize contains the size of a workgroup declared by a compute shader. The size of the work group in the X, Y, and Z dimensions is stored in the x, y, and z components of gl_WorkGroupSize. The values stored in gl_WorkGroupSize match those specified in the required local_size_x, local_size_y, and local_size_z layout qualifiers for the current shader. This value is constant so that it can be used to size arrays of memory that can be shared within the local work group. iconic constant behavior, honestly.
π VERSION SUPPORT π
vibe check time: Variable Name is gl_WorkGroupSize, and these are the OpenGL Shading Language Version columns, bestie:
1.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 be nosy, bestie:
gl_NumWorkGroups()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 π
Copyright Β© 2012-2014 Khronos Group
signing off with source/version [FIXME: source], date 08/09/2021, and page GL_WORKGROUPSIZE(3G) β mwah πβ¨
π¦ 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