From c6a0f381cca8ec937ef046e0ef0d62156fb1d7be Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 28 Dec 2017 21:05:27 +0100 Subject: [PATCH] Fix the uniform name for the compute shader output. (It would always be 0 by accident anyway, but it is nice to have it cleaner.) --- footer.comp | 4 ++-- header.comp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/footer.comp b/footer.comp index c4d1305..17175d9 100644 --- a/footer.comp +++ b/footer.comp @@ -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); } diff --git a/header.comp b/header.comp index dc2fd08..47f1315 100644 --- a/header.comp +++ b/header.comp @@ -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); -- 2.39.2