summaryrefslogtreecommitdiff
path: root/kernels/test_copy_image.cl
blob: a5ee5e87612fed6edf327808aceac9f6326fadab (plain)
1
2
3
4
5
6
7
8
9
10
__kernel void
test_copy_image(__read_only image2d_t src, __write_only image2d_t dst, sampler_t sampler)
{
  int2 coord;
  int4 color;
  coord.x = (int)get_global_id(0);
  coord.y = (int)get_global_id(1);
  color = read_imagei(src, sampler, coord);
  write_imagei(dst, coord, color);
}