diff options
author | Jordan Justen <[email protected]> | 2015-08-17 16:32:42 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-09-13 09:53:17 -0700 |
commit | c4cf824658da283cf350fd6833d50dff9de4a1ad (patch) | |
tree | c12d06d47947784d07b8e5ff1c5a7c06153f9997 /src/gallium/drivers/llvmpipe/lp_query.h | |
parent | 6823e12d5aa4646fc8ef0e32455104ba47f80a38 (diff) |
glsl/cs: Initialize gl_LocalInvocationIndex in main()
We initialize gl_LocalInvocationIndex based on the extension spec
formula:
gl_LocalInvocationIndex =
gl_LocalInvocationID.z * gl_WorkGroupSize.x * gl_WorkGroupSize.y +
gl_LocalInvocationID.y * gl_WorkGroupSize.x +
gl_LocalInvocationID.x;
https://www.opengl.org/registry/specs/ARB/compute_shader.txt
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_query.h')
0 files changed, 0 insertions, 0 deletions