KhronosGroup / OpenGL-Refpages

OpenGL and OpenGL ES reference page sources, and generated HTML used as backing store for khronos.org
427 stars 134 forks source link

Wrong equivalent call in glDispatchComputeIndirect #61

Closed cortreeze closed 5 years ago

cortreeze commented 5 years ago

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glDispatchComputeIndirect.xhtml https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glDispatchComputeIndirect.xhtml https://www.khronos.org/registry/OpenGL-Refpages/es3.1/html/glDispatchComputeIndirect.xhtml

In the following block:

A call to glDispatchComputeIndirect is equivalent, assuming no errors are generated, to:

cmd = (const DispatchIndirectCommand  *)indirect;
glDispatchComputeIndirect(cmd->num_groups_x, cmd->num_groups_y, cmd->num_groups_z);

glDispatchComputeIndirect(cmd->num_groups_x, cmd->num_groups_y, cmd->num_groups_z);

should be

glDispatchCompute(cmd->num_groups_x, cmd->num_groups_y, cmd->num_groups_z);