summaryrefslogtreecommitdiff
path: root/kernels/builtin_shuffle.cl
blob: ad988b9e73576ba0f422bd4b3c468babb844c23f (plain)
1
2
3
4
5
6
7
8
kernel void builtin_shuffle(global float *src1, global float *src2, global float *dst1, global float *dst2) {
  int i = get_global_id(0);
  float2 src = (float2)(src1[i], src2[i]);
  uint2 mask = (uint2)(1, 0);
  float2 dst = shuffle(src, mask);
  dst1[i] = dst.s0;
  dst2[i] = dst.s1;
}