TEX2D 109 compat/cuda/cuda_runtime.h #define TEX2D(type, ret) static inline __device__ void conv(type* out, unsigned a, unsigned b, unsigned c, unsigned d) {*out = (ret);} TEX2D 111 compat/cuda/cuda_runtime.h TEX2D(unsigned char, a & 0xFF)