Compute Shader GLSL Variables
uvec3 gl_NumWorkGroups global work group size we gave to glDispatchCompute() uvec3 gl_WorkGroupSize local work group size we defined with layout uvec3 gl_WorkGroupID position of current invocation in global work group uvec3 gl_LocalInvocationID position of current invocation in local work group uvec3 gl_GlobalInvocationID unique index of current invocation in global work group uint gl_LocalInvocationIndex 1d index representation of gl_LocalInvocationID
Execution:
方式渲染一个texture到full-screen quad
Creating Texture/Image创建纹理/Image:
REF:http://antongerdelan.net/opengl/compute.html
原文:https://www.cnblogs.com/gearslogy/p/12863318.html