summaryrefslogtreecommitdiff
path: root/AutoVideosLive.cl
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVideosLive.cl')
-rw-r--r--AutoVideosLive.cl23
1 files changed, 23 insertions, 0 deletions
diff --git a/AutoVideosLive.cl b/AutoVideosLive.cl
new file mode 100644
index 0000000..ff1301d
--- /dev/null
+++ b/AutoVideosLive.cl
@@ -0,0 +1,23 @@
+
+__kernel void AutoFrame(__global float *output)
+{
+ unsigned int id = get_global_id(0);
+ int width = <WIDTH>;
+
+ int xInt = id % width;
+ int yInt = id / 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>;
+
+}