Skip to main content

cuSurfRefGetArray

Function cuSurfRefGetArray 

Source
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

See also: cuModuleGetSurfRef, cuSurfRefSetArray.