Try to emulate bilinear interpolation provided by CUDA texture on CPU code