1 texture<short, 2, cudaReadModeElementType> tex_img_in ;
3 __global__ void kernel_ident( short *output, int w)
5 int j = __mul24(blockIdx.x,blockDim.x) + threadIdx.x ;
6 int i = __mul24( blockIdx.y, blockDim.y) + threadIdx.y ;
8 output[ __mul24(i, w) + j ] = tex2D(tex_img_in, j, i) ;