diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 13:31:14 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 13:31:14 +0100 |
commit | 01b47b49462a3b6ade6e8819edad9f2455fe1143 (patch) | |
tree | 231f371cec8d2c7d1afb5824fe60a615ec1bbbc6 /BuddhaTest/Shaders/BuddhaCompute.glsl | |
parent | 61fe316a2cfd3b99008ec220c613f1e0c33b0190 (diff) |
Make local work group size tweakable. (Not yet exposed to user)
Diffstat (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl')
-rw-r--r-- | BuddhaTest/Shaders/BuddhaCompute.glsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index 7a363ec..263e4c0 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -1,4 +1,6 @@ -#version 430
+//commented out, added by c-code that loads this shader.
+//#version 430
+//layout (local_size_x = 1024) in; //to be safe, we limit our local work group size to 1024. That's the minimum a GL 4.3 capable driver must support.
layout(std430, binding=2) buffer renderedData
{
@@ -187,7 +189,6 @@ void drawOrbit(vec2 offset) }
}
-layout (local_size_x = 1024) in; //to be safe, we limit our local work group size to 1024. That's the minimum a GL 4.3 capable driver must support.
void main() {
//we need to know how many total work groups are running this iteration
|