13 template<
class T, enum cudaTextureReadMode readMode>
16 cudaChannelFormatDesc desc = cudaCreateChannelDesc<T>();
20 template<
class T, enum cudaTextureReadMode readMode>
23 cudaChannelFormatDesc desc = cudaCreateChannelDesc<T>();
27 template<
class T, enum cudaTextureReadMode readMode>
30 cudaChannelFormatDesc desc = cudaCreateChannelDesc<T>();
34 template<
class A,
class T, enum cudaTextureReadMode readMode>
35 TextureBinder(
const A& arr,
const struct texture<T, 2, readMode>& tex,
const cudaChannelFormatDesc& desc) :
texref(&tex)
37 cudaSafeCall( cudaBindTexture2D(0, tex, arr.data, desc, arr.cols, arr.rows, arr.step) );
40 template<
class T, enum cudaTextureReadMode readMode>
43 cudaChannelFormatDesc desc = cudaCreateChannelDesc<T>();
52 const struct textureReference *
texref;