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); }
public static ComputeMethod CompileKernel(string Kernel, string Method, AcceleratorDevice Device) { return(new ComputeMethod(Kernel, Method, Device)); }