cudaError_t cudaGraphicsUnregisterResource ( cudaGraphicsResource_t  resource  ) 

Unregisters the graphics resource resource so it is not accessible by CUDA unless registered again.

If resource is invalid then cudaErrorInvalidResourceHandle is returned.

resource - Resource to unregister
cudaSuccess, cudaErrorInvalidResourceHandle, cudaErrorUnknown
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGraphicsD3D9RegisterResource, cudaGraphicsD3D10RegisterResource, cudaGraphicsD3D11RegisterResource, cudaGraphicsGLRegisterBuffer, cudaGraphicsGLRegisterImage

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA