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

[codebox]

global

{

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

}

[/codebox]

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

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

Thanks

Not supported, see the FAQ:

http://forums.nvidia.com/index.php?showtopic=84440

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