Optimal number of work groups for compute shaders In OpenGL, is there a way to dynamically determine the preferred workgroup size of the underlying hardware? Or at least, to approximate it using some queried metrics? In OpenCL, you can do this using some implementation defined constants, but so far I wasn't able to find something similar for OpenGL.