array of texture reference doesnt work within global functions

Hi all, I need a fast response on this,

I’m trying to create an array of texture references, something like this

[codebox]texture<int, 2, cudaReadModeElementType> texTex;[/codebox]

The code works fine within the cpu functions, while when I attempt to texture fetch from a global function like this for example




int g = tex2D(texTex[C], x, y);



the compiler gives an error “identifier “texTex” is undefined”

I need urgent help cause I’m short on time.


Not supported, see the FAQ:

Actually, Fermi hardware is capable of indexing textures, so it’s possible this might be supported in a future release.