]> git.sesse.net Git - movit/blob - footer.comp
Move compute shader functions from the header to the footer; easier to unify with...
[movit] / footer.comp
1 void main()
2 {
3         INPUT();
4 }
5
6 vec4 tex2D(sampler2D s, vec2 coord)
7 {
8         return texture(s, coord);
9 }
10
11 void cs_output(uvec2 coord, vec4 val)
12 {
13         imageStore(outbuf, ivec2(coord), val);
14 }
15
16 void cs_output(ivec2 coord, vec4 val)
17 {
18         imageStore(outbuf, coord, val);
19 }