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