pub unsafe extern "C" fn cuSurfRefGetArray(
phArray: *mut CUarray,
hSurfRef: CUsurfref,
) -> CUresult👎Deprecated
Expand description
Passes back the CUDA array bound to a surface reference.
Returns in *phArray the CUDA array bound to the surface reference hSurfRef, or returns cudaError_enum::CUDA_ERROR_INVALID_VALUE if the surface reference is not bound to any CUDA array.
§Parameters
phArray: Surface reference handle.hSurfRef: Surface reference handle.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUE
See also: cuModuleGetSurfRef, cuSurfRefSetArray.