template<class T , int dim>
cudaError_t cudaBindSurfaceToArray ( const struct surface< T, dim > &  surf,
const struct cudaArray *  array,
const struct cudaChannelFormatDesc desc 
)

Binds the CUDA array array to the surface reference surf. desc describes how the memory is interpreted when dealing with the surface. Any CUDA array previously bound to surf is unbound.

Parameters:
surf - Surface to bind
array - Memory array on device
desc - Channel format
Returns:
cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidSurface
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaBindSurfaceToArray (C API), cudaBindSurfaceToArray (C++ API, inherited channel descriptor)


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA