diff options
author | Andreas Grois <andi@grois.info> | 2018-03-16 07:27:08 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-16 07:27:08 +0100 |
commit | 90d3e41b793327298603881a44e11ce8b41f5500 (patch) | |
tree | 4c9bf34e0b939e525cead02715ebb6436a350c80 | |
parent | 1e54762135f3947ea961dbc0a3cb300f84a40309 (diff) |
minor
-rw-r--r-- | BuddhaTest/Shaders/BuddhaCompute.glsl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index b1ce2bc..c1813a2 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -234,8 +234,7 @@ void main() { uvec3 totalWorkersPerDimension = gl_WorkGroupSize * gl_NumWorkGroups;
uint totalWorkers = totalWorkersPerDimension.x*totalWorkersPerDimension.y*totalWorkersPerDimension.z;
- //TODO: Check this once I've had some sleep. Anyhow, I'm using 1D, so y and z components globalInfocationID should be zero anyhow.
- uint uniqueWorkerID = gl_GlobalInvocationID.x + gl_GlobalInvocationID.y*totalWorkersPerDimension.x + gl_GlobalInvocationID.z*(totalWorkersPerDimension.x * totalWorkersPerDimension.y);
+ const uint uniqueWorkerID = gl_GlobalInvocationID.x + gl_GlobalInvocationID.y*totalWorkersPerDimension.x + gl_GlobalInvocationID.z*(totalWorkersPerDimension.x * totalWorkersPerDimension.y);
uint totalIterations = orbitLength.x > orbitLength.y ? orbitLength.x : orbitLength.y;
totalIterations = totalIterations > orbitLength.z ? totalIterations : orbitLength.z;
|