Skip to main content

cudaGetSurfaceObjectResourceDesc

Function cudaGetSurfaceObjectResourceDesc 

Source
pub unsafe extern "C" fn cudaGetSurfaceObjectResourceDesc(
    pResDesc: *mut cudaResourceDesc,
    surfObject: cudaSurfaceObject_t,
) -> cudaError_t
Expand description

Returns a surface object’s resource descriptor Returns the resource descriptor for the surface object specified by surfObject.

Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.

Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.

§Parameters

  • pResDesc: Resource descriptor.
  • surfObject: Surface object.

§Return value

See also: cudaCreateSurfaceObject, cuSurfObjectGetResourceDesc.