Library/ManagedCuda/CudaDirectXInteropResource.cs
/// <summary>
/// Set <c>flags</c> for mapping the graphics resource. <para/>
/// Changes to <c>flags</c> will take effect the next time <c>resource</c> is mapped. See <see cref="CUGraphicsMapResourceFlags"/>. <para/>
/// If <c>resource</c> is presently mapped for access by CUDA then <see cref="CUResult.ErrorAlreadyMapped"/> exception is thrown. 
/// </summary>
/// <param name="flags"></param>
Set flags
Changes to flagsresource.
If resource exception is thrown.
Set flags Changes to flagsresource . If resource exception is thrown .
public void SetMapFlags(CUGraphicsMapResourceFlags flags)
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            res = DriverAPINativeMethods.GraphicsInterop.cuGraphicsResourceSetMapFlags(_cudaResource, flags);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuGraphicsResourceSetMapFlags", res));
            if (res != CUResult.Success)
                throw new CudaException(res);
        }
public void SetMapFlags ( CUGraphicsMapResourceFlags flags ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; res = DriverAPINativeMethods . GraphicsInterop . cuGraphicsResourceSetMapFlags ( _cudaResource , flags ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Set flags
Changes to flagsresource.
Set flags Changes to flagsresource .
flags
CUGraphicsMapResourceFlags
None