Beispiel #1
0
 public void Dispose()
 {
     if (Kernel != null)
     {
         Kernel.Dispose();
         Kernel = null;
     }
     if (CommandQueue != null)
     {
         CommandQueue.Dispose();
         CommandQueue = null;
     }
     System.GC.SuppressFinalize(this);
 }
Beispiel #2
0
 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;
 }