예제 #1
0
파일: Form1.cs 프로젝트: ctapang/GPUCyclops
 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
파일: Form1.cs 프로젝트: gchudov/openclnet
 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();
     }
 }