gl_LocalInvocationID

contains the index of work item currently being operated on by a compute shader

Signature

gl_LocalInvocationID( )->