Practice free →
Home › Per LearnOpenGL (compute shaders), the WORKGROUP…

Per LearnOpenGL (compute shaders), the WORKGROUP for a GLSL compute shader is invoked via which API call?

AglDispatchCompute(x, y, z)
BglDrawArrays(GL_COMPUTE)
CglLinkProgram() then glUseProgram()
DglClear(GL_COMPUTE_BIT)
Answer & Solution
Correct answer: A. glDispatchCompute(x, y, z)
Khronos OpenGL Compute Shaders: glDispatchCompute(x,y,z) launches x×y×z workgroups; each runs gl_NumThreads-many threads. Independent of the graphics pipeline.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions