clray

view test.cl @ 0:5767277e049f

first test works, let's try to make a raytracer now...
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 12 Jul 2010 05:56:47 +0300
parents
children 0b0e4d18d53f
line source
1 __kernel void test(__global const int *src, __global int *dst)
2 {
3 int idx = get_global_id(0);
5 dst[idx] = src[idx] * 2.0;
6 }