]> git.sesse.net Git - movit/blobdiff - footer.comp
Move compute shader functions from the header to the footer; easier to unify with...
[movit] / footer.comp
diff --git a/footer.comp b/footer.comp
new file mode 100644 (file)
index 0000000..3ece901
--- /dev/null
@@ -0,0 +1,19 @@
+void main()
+{
+       INPUT();
+}
+
+vec4 tex2D(sampler2D s, vec2 coord)
+{
+       return texture(s, coord);
+}
+
+void cs_output(uvec2 coord, vec4 val)
+{
+       imageStore(outbuf, ivec2(coord), val);
+}
+
+void cs_output(ivec2 coord, vec4 val)
+{
+       imageStore(outbuf, coord, val);
+}