Closed cortreeze closed 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);
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);
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:
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);