blob: ff1301d0493fc3126cff574d5c288eb216ba7f8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>;
}
|