X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=identity.compute;fp=identity.compute;h=9f741bf9dcc3fdcd4dbbb8f9cc9e516686149f92;hp=0000000000000000000000000000000000000000;hb=65c6584f77bff0af0c8e38d1ac90298bcd55e9ac;hpb=706365ccee2ad69c5bc3608e12ca8e9ada7ce954 diff --git a/identity.compute b/identity.compute new file mode 100644 index 0000000..9f741bf --- /dev/null +++ b/identity.compute @@ -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); +}