diff options
Diffstat (limited to 'AutoVideosGPU.cl')
-rw-r--r-- | AutoVideosGPU.cl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/AutoVideosGPU.cl b/AutoVideosGPU.cl new file mode 100644 index 0000000..56e5ca9 --- /dev/null +++ b/AutoVideosGPU.cl @@ -0,0 +1,21 @@ +__kernel void AutoFrame(__global float* output) +{ + unsigned int id = get_global_id(0); + int width = <WIDTH>; + + int xInt = (id/3) % width; + int yInt = (id/3) / width; + float t = <FRAMENUMBER>; + + float x = (float)xInt; + float y = (float)yInt; + + int channel = id % 3; + + if (channel == 0) + output[id] = <RFUNCTION>; + else if (channel == 1) + output[id] = <GFUNCTION>; + else + output[id] = <BFUNCTION>; +}
\ No newline at end of file |