12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

84 Module DocumentationSee also:cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C API), cudaBindTextureToArray(C++ API), cudaBindTextureToArray (C++ API, inherited channel descriptor), cudaUnbindTexture(C++ API), cudaGetTextureAlignmentOffset (C++ API)3.14.2.4 template cudaError_tcudaBindTextureToArray (const struct texture< T, dim, readMode > & tex, const struct cudaArray∗ array)Binds the <strong>CUDA</strong> array array to the texture reference tex. The channel descriptor is inherited from the <strong>CUDA</strong> array.Any <strong>CUDA</strong> array previously bound to tex is unbound.Parameters:tex - Texture to bindarray - Memory array on deviceReturns:Note:See also:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevicePointer, cudaErrorInvalidTextureNote that this function may also return error codes from previous, asynchronous launches.cudaCreateChannelDesc (C++ API), cudaGetChannelDesc, cudaGetTextureReference, cudaBindTexture (C++API), cudaBindTexture (C++ API, inherited channel descriptor), cudaBindTexture2D (C++ API), cudaBind-TextureToArray (C API), cudaBindTextureToArray (C++ API), cudaUnbindTexture (C++ API), cudaGetTexture-AlignmentOffset (C++ API)3.14.2.5 template cudaError_tcudaBindTextureToArray (const struct texture< T, dim, readMode > & tex, const struct cudaArray∗ array, const struct cudaChannelFormatDesc & desc)Binds the <strong>CUDA</strong> array array to the texture reference tex. desc describes how the memory is interpreted whenfetching values from the texture. Any <strong>CUDA</strong> array previously bound to tex is unbound.Parameters:tex - Texture to bindarray - Memory array on devicedesc - Channel formatReturns:Note:cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidDevicePointer, cudaErrorInvalidTextureNote that this function may also return error codes from previous, asynchronous launches.Generated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!