From bff9c8b80ac858a271cdff3da7daeb2b43fc75bc Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 16:10:06 +0100 Subject: Move buffer dimensions out of buffer into uniforms. No longer odd -2 everywhere. --- BuddhaTest/Shaders/BuddhaCompute.glsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BuddhaTest/Shaders/BuddhaCompute.glsl') diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index ddbaf93..458a4e3 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -4,13 +4,13 @@ layout(std430, binding=2) buffer renderedData { - uint width; - uint height; uint counts_SSBO[]; }; -uniform uint iterationCount; +uniform uint width; +uniform uint height; +uniform uint iterationCount; uniform uvec3 orbitLength; void addToColorOfCell(uvec2 cell, uvec3 toAdd) -- cgit v1.2.3