I am beginner to CUDA and I have a question about the compiling error:
“error: no instance of overloaded function “tex3D” matches the argument list” When
I am trying to reference data elements in a 3D texture:
texture<float4, 3, cudaReadModeNormalizedFloat> tex; float u,v,w; float4 P = tex3D(tex, u,v,w);
I wrote the above code by following the simpleTexture3D example in SDK:
texture<uchar, 3, cudaReadModeNormalizedFloat> tex; float voxel = tex3D(tex, u, v, w);
Thanks a lot!