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

Binds the CUDA array array to the surface reference surf. The channel descriptor is inherited from the CUDA array. Any CUDA array previously bound to surf is unbound.

Parameters:
surf - Surface to bind
array - Memory array on device
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)


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA