summaryrefslogtreecommitdiff
path: root/kernels/test_fill_image_2d_array.cl
blob: e66359fca26e05ebf6f89a3e0d6d0cb7ff9f6af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
__kernel void
test_fill_image_2d_array(__write_only image2d_array_t dst)
{
  int coordx;
  int coordy;
  int coordz;
  coordx = (int)get_global_id(0);
  coordy = (int)get_global_id(1);
  coordz = (int)get_global_id(2);
  uint4 color4 = {0, 1, 2 ,3};
  if (coordz < 7)
    write_imageui(dst, (int4)(coordx, coordy, coordz, 0), color4);
}