public void Dispose() { if (Kernel != null) { Kernel.Dispose(); Kernel = null; } if (CommandQueue != null) { CommandQueue.Dispose(); CommandQueue = null; } System.GC.SuppressFinalize(this); }
public CallContext(OpenCLNet.Context Context, OpenCLNet.Device Device, OpenCLNet.CommandQueueProperties CqProperties, OpenCLNet.Kernel Kernel) { this.Context = Context; this.CommandQueue = Context.CreateCommandQueue(Device, CqProperties); this.Kernel = Kernel; }