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 vec4 tex2D(sampler2D s, vec2 coord)
10 return texture(s, coord);
13 void cs_output(uvec2 coord, vec4 val)
15 imageStore(outbuf, ivec2(coord), val);
18 void cs_output(ivec2 coord, vec4 val)
20 imageStore(outbuf, coord, val);
23 #define OUTPUT(tc, val) cs_output(tc, val)