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.