Function cuGraphicsUnmapResources

Source
pub unsafe extern "C" fn cuGraphicsUnmapResources(
    count: c_uint,
    resources: *mut CUgraphicsResource,
    hStream: CUstream,
) -> CUresult
Expand description

\brief Unmap graphics resources.

Unmaps the \p count graphics resources in \p resources.

Once unmapped, the resources in \p resources may not be accessed by CUDA until they are mapped again.

This function provides the synchronization guarantee that any CUDA work issued in \p stream before ::cuGraphicsUnmapResources() will complete before any subsequently issued graphics work begins.

If \p resources includes any duplicate entries then ::CUDA_ERROR_INVALID_HANDLE is returned. If any of \p resources are not presently mapped for access by CUDA then ::CUDA_ERROR_NOT_MAPPED is returned.

\param count - Number of resources to unmap \param resources - Resources to unmap \param hStream - Stream with which to synchronize

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_NOT_MAPPED, ::CUDA_ERROR_UNKNOWN \note_null_stream \notefnerr

\sa ::cuGraphicsMapResources, ::cudaGraphicsUnmapResources