summaryrefslogtreecommitdiff
path: root/kernels/test_fill_image_3d.cl
blob: 0f0c6fda8c84790ad682aebe59dde98e745616e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
__kernel void
test_fill_image_3d(__write_only image3d_t dst, uint color)
{
  int4 coord;
  int4 color4;
  color4.s0  = (color >> 24) & 0xFF;
  color4.s1  = (color >> 16) & 0xFF;
  color4.s2  = (color >> 8) & 0xFF;
  color4.s3  = color & 0xFF;
  coord.x = (int)get_global_id(0);
  coord.y = (int)get_global_id(1);
  coord.z = 0;
  write_imagei(dst, coord, color4);
}