GLDISPATCHCOMPUTE(3G)
π NAME π
okay bestie, welcome to the GLDISPATCHCOMPUTE(3G) page β and yes, the header is literally over here saying [FIXME: manual], iconic behavior honestly. The function itself is glDispatchCompute, and it does exactly one main-character thing: launch one or more compute work groups. β¨
β¨ C SPECIFICATION β¨
void glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y,
GLuint num_groups_z);
π PARAMETERS π
num_groups_xβ the number of work groups to be launched in the X dimension. πnum_groups_yβ the number of work groups to be launched in the Y dimension. πnum_groups_zβ the number of work groups to be launched in the Z dimension. π
πΈ DESCRIPTION πΈ
glDispatchCompute launches one or more compute work groups. Each work group is processed by the active program object for the compute shader stage. While the individual shader invocations within a work group are executed as a unit, work groups are executed completely independently and in unspecified order β no cap, theyβre out here living their own lives. π¦
num_groups_x, num_groups_y and num_groups_z specify the number of local work groups that will be dispatched in the X, Y and Z dimensions, respectively. π
π ERRORS π
GL_INVALID_OPERATIONis generated if there is no active program for the compute shader stage. πGL_INVALID_VALUEis generated if any ofnum_groups_x,num_groups_y, ornum_groups_zis greater than or equal to the maximum work-group count for the corresponding dimension. π
π ASSOCIATED GETS π
glGet() with argument GL_MAX_COMPUTE_WORK_GROUP_COUNT. π
π VERSION SUPPORT π
The tableβs function / feature name is literally glDispatchCompute, and the version columns are OpenGL Version. Hereβs the full vibe check, bestie β no details skipped:
- OpenGL
2.0:- - OpenGL
2.1:- - OpenGL
3.0:- - OpenGL
3.1:- - OpenGL
3.2:- - OpenGL
3.3:- - OpenGL
4.0:- - OpenGL
4.1:- - OpenGL
4.2:- - OpenGL
4.3:β - OpenGL
4.4:β - OpenGL
4.5:β
so itβs giving β4.3 and up only,β periodt. π₯
π¦ SEE ALSO π¦
glDispatchComputeIndirect(). π«Ά
π COPYRIGHT π
Copyright Β© 2013-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 (the sequel) π
Copyright Β© 2013-2014 Khronos Group
okay bye bestie π«Ά this little page came from [FIXME: source], dated 08/09/2021, and itβs literally the GLDISPATCHCOMPUTE(3G) manual page β footer vibe check complete, 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