Sorry for post this again.
I want to deal with many images in one kernel, and want to load the images as texture, so I think it is ok to use texture array.
I also tried to modify the simpleTexture sample as following
texture<float, 2, cudaReadModeElementType> tex
and change the corresponding codes.
The compiler reported that
#error: identifier “tex” is undefined#
in the kernel code
Maybe my usage is not right.
The programming guide did not mention how to use texure array.
Any idea, please.