private void Form1_Load( object sender, EventArgs e ) { try { Platform platform = OpenCL.GetPlatform(0); Mandelbrot = new Mandelbrot(platform, Width, Height); Mandelbrot.AllocBuffers(); UpdateMandelbrot(); } catch (Exception oex) { MessageBox.Show( oex.ToString(), "OpenCL Initialization failed" ); Application.Exit(); } }
private void Form1_Load(object sender, EventArgs e) { try { Platform platform = OpenCL.GetPlatform(0); Mandelbrot = new Mandelbrot(platform, Width, Height); Mandelbrot.AllocBuffers(); UpdateMandelbrot(); } catch (Exception oex) { MessageBox.Show(oex.ToString(), "OpenCL Initialization failed"); Application.Exit(); } }