In the CUDA C Programming Guide Version 5, Appendix E.2 (Linear Filtering), it is stated that:
In this filtering mode, which is only available for floating-point textures, the value returned by the texture fetch is...
The part in bold case is confusing me. Does floating point
mean the texel type only, or the return type also? For example, I declare 3 textures as follows.
texture<float,cudaTextureType2D> tex32f;
texture<unsigned char, cudaTextureType2D, cudaReadModeNormalizedFloat> tex8u;
texture<unsigned short, cudaTextureType2D, cudaReadModeNormalizedFloat> tex16u;
Is linear filtering available for tex32f
only, or also for tex8u
and tex16u
?