]> git.sesse.net Git - movit/blobdiff - identity.comp
Rename .compute to .comp, to be in line with the Khronos reference compiler.
[movit] / identity.comp
diff --git a/identity.comp b/identity.comp
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);
+}