template<class T , int dim, enum cudaTextureReadMode readMode>
cudaError_t cudaBindTextureToArray ( const struct texture< T, dim, readMode > &  tex,
const struct cudaArray *  array,
const struct cudaChannelFormatDesc desc 

Binds the CUDA array array to the texture reference tex. desc describes how the memory is interpreted when fetching values from the texture. Any CUDA array previously bound to tex is unbound.

tex - Texture to bind
array - Memory array on device
desc - Channel format
cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevicePointer, cudaErrorInvalidTexture
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++ API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C++ API), cudaBindTexture2D (C++ API, inherited channel descriptor), cudaBindTextureToArray (C API), cudaBindTextureToArray (C++ API, inherited channel descriptor), cudaUnbindTexture (C++ API), cudaGetTextureAlignmentOffset (C++ API)

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA