]> git.sesse.net Git - movit/commitdiff
Fix the uniform name for the compute shader output. (It would always be 0 by accident...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 28 Dec 2017 20:05:27 +0000 (21:05 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 28 Dec 2017 20:05:27 +0000 (21:05 +0100)
footer.comp
header.comp

index c4d1305be8512bcb1c77e17b3e24ee2266dc5686..17175d9c717777665c0ec537d91cc95e6524c835 100644 (file)
@@ -36,8 +36,8 @@ void cs_output(ivec2 coord, vec4 val)
 #endif
 
 #if FLIP_ORIGIN
-       coord.y = imageSize(outbuf).y - coord.y - 1;
+       coord.y = imageSize(tex_outbuf).y - coord.y - 1;
 #endif
 
-       imageStore(outbuf, coord, val);
+       imageStore(tex_outbuf, coord, val);
 }
index dc2fd089441622632e23c1bb53a236ef045b6eea..47f131560d18c757f9ea7441652831324e295dd1 100644 (file)
@@ -4,7 +4,7 @@
 #extension GL_ARB_shader_image_size : enable
 
 // FIXME this needs to be auto-output or something
-uniform restrict writeonly image2D outbuf;
+uniform restrict writeonly image2D tex_outbuf;
 
 // Defined in footer.comp.
 vec4 tex2D(sampler2D s, vec2 coord);