From da4b72ea58e97d14306cfd322a8ef7a40337645d Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sun, 28 Jan 2018 17:34:41 +0100 Subject: OpenCL rendering working with 32-bit float --- Release/cl/mandelbrot32.cl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Release/cl/mandelbrot32.cl') diff --git a/Release/cl/mandelbrot32.cl b/Release/cl/mandelbrot32.cl index af0d0e9..585d0ae 100644 --- a/Release/cl/mandelbrot32.cl +++ b/Release/cl/mandelbrot32.cl @@ -1,5 +1,13 @@ -__kernel void calculate(__global uchar4 * mandelbrotImage, const float posx, const float posy, const float stepSizeX, const float stepSizeY, const uint maxIterations, const uint width) +__kernel void calculate( + __global uchar4 * mandelbrotImage, + const float posx, + const float posy, + const float stepSizeX, + const float stepSizeY, + const uint maxIterations, + const int width) { +//printf("%f, %f, %f, %f, %u, %d", posx, posy, stepSizeX, stepSizeY, maxIterations, width); int tid = get_global_id(0); int i = tid % (width / 4); -- cgit v1.2.1