cudaError_t cudaBindSurfaceToArray ( const struct surfaceReference surfref,
const struct cudaArray *  array,
const struct cudaChannelFormatDesc desc 
)

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

Parameters:
surfref - 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), cudaGetSurfaceReference


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA