pub unsafe extern "C" fn cuCtxGetDevResource(
hCtx: CUcontext,
resource: *mut CUdevResource,
type_: CUdevResourceType,
) -> CUresult
Expand description
\brief Get context resources
Get the \p type resources available to the context represented by \p hCtx \param hCtx - Context to get resource for
Note: The API is not supported on 32-bit platforms.
\param resource - Output pointer to a CUdevResource structure \param type - Type of resource to retrieve
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_RESOURCE_TYPE, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_CONTEXT
\sa ::cuDevResourceGenerateDesc