summaryrefslogtreecommitdiff
path: root/kernels/test_copy_image_1d.cl
blob: 88428bbdf39016b9d6cfe7965d7c32fb97f27991 (plain)
1
2
3
4
5
6
7
8
9
__kernel void
test_copy_image_1d(__read_only image1d_t src, __write_only image1d_t dst, sampler_t sampler)
{
  int coord;
  int4 color;
  coord = (int)get_global_id(0);
  color = read_imagei(src, sampler, coord);
  write_imagei(dst, coord, color);
}