Plumbing in opencl kernel to compute texture coordinates