]> git.sesse.net Git - movit/blobdiff - identity.compute
Add support for compute shaders.
[movit] / identity.compute
diff --git a/identity.compute b/identity.compute
new file mode 100644 (file)
index 0000000..9f741bf
--- /dev/null
@@ -0,0 +1,9 @@
+// Identity compute shader (sometimes useful to do nothing).
+
+layout(local_size_x = 1) in;
+
+void FUNCNAME()
+{
+       vec4 val = INPUT(NORMALIZE_TEXTURE_COORDS(gl_GlobalInvocationID.xy));
+       OUTPUT(gl_GlobalInvocationID.xy, val);
+}