From 01b47b49462a3b6ade6e8819edad9f2455fe1143 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 13:31:14 +0100 Subject: Make local work group size tweakable. (Not yet exposed to user) --- BuddhaTest/Shaders/BuddhaCompute.glsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'BuddhaTest/Shaders') 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 -- cgit v1.2.3