GLDISPATCHCOMPUTE(3G)

    .SH "NAME" glDispatchCompute - launch one or more compute work groups
    .SH "C SPECIFICATION"

            .HP u void glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);

    .SH "PARAMETERS"

        .PP num_groups_x

                    The number of work groups to be launched in the X dimension.

            .RE
            .PP num_groups_y

                        The number of work groups to be launched in the Y dimension.

                .RE
                .PP num_groups_z

                            The number of work groups to be launched in the Z dimension.

                    .RE

                .SH "DESCRIPTION"
                    .PP 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. 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.

                .SH "ERRORS"
                    .PP GL_INVALID_OPERATION is generated if there is no active program for the compute shader stage.
                    .PP GL_INVALID_VALUE is generated if any of num_groups_x, num_groups_y, or num_groups_z is greater than or equal to the maximum work-group count for the corresponding dimension.

                .SH "ASSOCIATED GETS"
                    .PP glGet() with argument GL_MAX_COMPUTE_WORK_GROUP_COUNT

                .SH "API VERSION SUPPORT"

                    .TS allbox tab(:); l l l l l. T{ glDispatchCompute T}:T{ T}:T{ T}:T{ T}:T{ T}

                .SH "SEE ALSO"
                    .PP glDispatchComputeIndirect().

                .SH "COPYRIGHT"
                    .PP Copyright © 2012-2015 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-2015 Khronos Group