set resourceId type to  %opencl.image2d* type for tex_sample intrinsic call