summaryrefslogtreecommitdiff
path: root/kernels/compiler_argument_structure.cl
blob: ab7896efb25cf914729997a53f9e444885fdccd3 (plain)
1
2
3
4
5
6
7
8
9
struct hop { int x, y; };

__kernel void
compiler_argument_structure(__global int *dst, struct hop h)
{
  int id = (int)get_global_id(0);
  dst[id] = h.x + h.y;
}