Function rcudnn_sys::cudaBindSurfaceToArray[][src]

pub unsafe extern "C" fn cudaBindSurfaceToArray(
    surfref: *const surfaceReference,
    array: cudaArray_const_t,
    desc: *const cudaChannelFormatDesc
) -> cudaError_t
Expand description

\brief Binds an array to a surface

\deprecated

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

\param surfref - Surface to bind \param array - Memory array on device \param desc - Channel format

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidSurface \notefnerr \note_init_rt \note_callback

\sa \ref ::cudaBindSurfaceToArray(const struct surface< T, dim>&, cudaArray_const_t, const struct cudaChannelFormatDesc&) “cudaBindSurfaceToArray (C++ API)”, \ref ::cudaBindSurfaceToArray(const struct surface< T, dim>&, cudaArray_const_t) “cudaBindSurfaceToArray (C++ API, inherited channel descriptor)”, ::cudaGetSurfaceReference, ::cuSurfRefSetArray