diff options
author | Andreas Grois <andi@grois.info> | 2018-03-17 19:35:55 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-17 19:35:55 +0100 |
commit | 873409ffdc8f172fb9fe6c46b6ddbad9239cf02d (patch) | |
tree | 7a7ede3966758aaacaa24e9177c1fb42483ca9a1 /BuddhaTest/Shaders | |
parent | e1e7d9fed39cb8fc281925960c71f7dc197e6568 (diff) |
Fix memory allocation for state buffer. How could that ever work?
Diffstat (limited to 'BuddhaTest/Shaders')
-rw-r--r-- | BuddhaTest/Shaders/BuddhaCompute.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/BuddhaTest/Shaders/BuddhaCompute.glsl b/BuddhaTest/Shaders/BuddhaCompute.glsl index 61bbb6d..5998d6e 100644 --- a/BuddhaTest/Shaders/BuddhaCompute.glsl +++ b/BuddhaTest/Shaders/BuddhaCompute.glsl @@ -15,6 +15,7 @@ layout(std430, binding=4) restrict buffer renderedDataBlue restrict uint counts_SSBOBlue[]; }; +layout(packed) struct individualData { uint phase; @@ -23,7 +24,7 @@ struct individualData vec2 lastPosition; }; -layout(std430, binding=5) restrict buffer statusBuffer +layout(packed, binding=5) restrict buffer statusBuffer { restrict individualData state[]; }; |