Library/ManagedCuda/CudaDirectXInteropResource.cs
/// <summary>
/// Unregisters the wrapped resource. Better use Dispose(), as the wrapper of the unregistered resource is of no use after unregistering.
/// </summary>
Unregisters the wrapped resource. Better use Dispose(), as the wrapper of the unregistered resource is of no use after unregistering.
Unregisters the wrapped resource . Better use Dispose () as the wrapper of the unregistered resource is of no use after unregistering .
public void Unregister()
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            if (_IsMapped)
                UnMap();
            res = DriverAPINativeMethods.GraphicsInterop.cuGraphicsUnregisterResource(_cudaResource);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphicsUnregisterResource", res));
            if (res != CUResult.Success)
                throw new CudaException(res);
            _IsRegistered = false;
        }
public void Unregister ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; if ( _IsMapped ) UnMap ( ) ; res = DriverAPINativeMethods . GraphicsInterop . cuGraphicsUnregisterResource ( _cudaResource ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; _IsRegistered = false ; }
Unregisters the wrapped resource.
Unregisters the wrapped resource .