such as
texture<float, 2, cudaReadModeElementType> tex_array[ARRAY_LEN];
when accessing tex_array[i] using tex2D, the compiler says tex_array is undefined
such as
texture<float, 2, cudaReadModeElementType> tex_array[ARRAY_LEN];
when accessing tex_array[i] using tex2D, the compiler says tex_array is undefined
It’s not supported as far as I know.
Yeah I don’t think that is supported. Texture references have been made to look syntactically like a type, but the compiler doesn’t really treat them like one.
thanks a lot.
I’m considering implementing my algorithm with 3d textures or combine textures into a large one. ^_^