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