summaryrefslogtreecommitdiff
path: root/kernels/test_fill_image0.cl
blob: 9428092a1f830a42d04ca374bd26c500a46b9cb3 (plain)
1
2
3
4
5
6
7
8
9
__kernel void
test_fill_image0(__write_only image2d_t dst)
{
  int2 coord;
  coord.x = (int)get_global_id(0);
  coord.y = (int)get_global_id(1);
  int4 color4 = {coord.y & 0xFF, (coord.y & 0xFF00) >> 8, coord.x & 0xFF, (coord.x & 0xFF00) >> 8};
  write_imagei(dst, coord, color4);
}