GL_GLOBALINVOCATIONI(3G)
π NAME π
okay bestie, welcome to the <pink>GL_GLOBALINVOCATIONI(3G)</pink> page β yes, that's the manual name, and we're diving in. This one is all about gl_GlobalInvocationID, which contains the global index of the work item currently being operated on by a compute shader. it's giving "where am I in the whole grid?" energy, and honestly? iconic.
πΈ DECLARATION πΈ
the declaration is literally this, bestie:
in uvec3 gl_GlobalInvocationID ;
β¨ DESCRIPTION β¨
In the compute language, gl_GlobalInvocationID is a derived input variable that contains the n-dimensional index of the work invocation within the global work group that the current shader is executing on. no cap, that's the whole vibe.
The value of gl_GlobalInvocationID is equal to:
gl_WorkGroupID * gl_WorkGroupSize + gl_LocalInvocationID
so yeah, it's literally the math doing its little main character thing π .
π¦ VERSION SUPPORT π¦
okay so the version support tea β, presented without a table because we're cute like that:
- Variable Name:
gl_GlobalInvocationID - OpenGL Shading Language Version support check:
1.10β-1.20β-1.30β-1.40β-1.50β-3.30β-4.00β-4.10β-4.20β-4.30ββ4.40ββ4.50ββ
so the listed values are - from 1.10 to 4.20, and β at 4.30, 4.40, and 4.50. slay.
π SEE ALSO π
gl_NumWorkGroups()gl_WorkGroupID()gl_WorkGroupSize()gl_LocalInvocationID()
go read those too, bestie β iykyk π«Ά
π 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
made with π by your Unix bestie Β· source/version: [FIXME: source] Β· date: 08/09/2021 Β· periodt π
π¦ 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