Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 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();
     }
 }