示例#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();
     }
 }
示例#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();
     }
 }