2 #extension GL_ARB_compute_shader : enable
3 #extension GL_ARB_shader_image_load_store : enable
5 // FIXME this needs to be auto-output or something
6 uniform restrict writeonly image2D outbuf;
8 // Defined in footer.comp.
9 vec4 tex2D(sampler2D s, vec2 coord);
10 void cs_output(uvec2 coord, vec4 val);
11 void cs_output(ivec2 coord, vec4 val);
13 #define OUTPUT(tc, val) cs_output(tc, val)