]> git.sesse.net Git - movit/blob - header.comp
d922e33efedaaf511f61a9406a1b6bf6a8db7a51
[movit] / header.comp
1 #version 150
2 #extension GL_ARB_compute_shader : enable
3 #extension GL_ARB_shader_image_load_store : enable
4
5 // FIXME this needs to be auto-output or something
6 uniform restrict writeonly image2D outbuf;
7
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);
12
13 #define OUTPUT(tc, val) cs_output(tc, val)