public ComputeMethod(string Kernel, string Method, AcceleratorDevice device)
        {
            this.Source = Kernel;
            this.Method = Method;
            this.Device = device;

            cl = new EasyCL()
            {
                Accelerator = device
            };
            cl.LoadKernel(Kernel);
        }
Exemple #2
0
 public static ComputeMethod CompileKernel(string Kernel, string Method, AcceleratorDevice Device)
 {
     return(new ComputeMethod(Kernel, Method, Device));
 }