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_NumWorkGroups
    • 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 bother these icons next:

  • gl_WorkGroupSize()
  • gl_WorkGroupID()
  • gl_LocalInvocationID()
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/.

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