problem with tex2D

typedef texture<uchar4, 2, cudaReadModeNormalizedFloat> Texture;

Texture textures0;


float4 tcolor = tex2D(textures0,0,0); // ERROR HERE!

work in Debug but on EmuDebud gives such error:

error C2440: ‘=’ : cannot convert from ‘Texture’ to ‘__u2texture’

please, tell me how to make it work on emulator.

i want to debug my program anyway so i need this code.

I found the same problem with my code in emulation. I just removed the typedef’d textures.

yes, thanks for that.

but i think its a bug)

I reproduced this problem locally and filed a bug. Thanks!


not at all