mandelbrot.setArg(3, sx, sy);
mandelbrot.setArg(4, sin(arg), cos(arg));
mandelbrot.setArg(5, m);
- System.out.println("enqueue");
+
q.enqueue2DKernel(mandelbrot, 0, 0, width, height, 8, 8, null, null);
q.enqueueReadBuffer(image, true, 0, buffer.limit(), buffer, null, null);
- System.out.println("finish");
- q.finish();
} catch (CLException ex) {
ex.printStackTrace();
}
dmandelbrot.setArg(4, sin(arg), cos(arg));
dmandelbrot.setArg(5, m);
- System.out.println("enqueue");
q.enqueue2DKernel(dmandelbrot, 0, 0, width, height, 8, 8, null, null);
q.enqueueReadBuffer(image, true, 0, buffer.limit(), buffer, null, null);
- System.out.println("finish");
- q.finish();
} catch (CLException ex) {
ex.printStackTrace();
}