From da1d6cddec8f7e8067056257ecb299215df6824f Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 28 Sep 2017 00:42:48 +1300 Subject: Change kernel argument types to ints, size correctly --- cl/mandelbrot.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cl/mandelbrot.cl') diff --git a/cl/mandelbrot.cl b/cl/mandelbrot.cl index 8617ae5..d72148f 100644 --- a/cl/mandelbrot.cl +++ b/cl/mandelbrot.cl @@ -1,11 +1,11 @@ __kernel void fractal_gen( __global unsigned char *buffer, const unsigned int size, - const unsigned long iterations) + const unsigned int iterations) { unsigned int x = get_global_id(0); unsigned int y = get_global_id(1); - unsigned long i = 0; + unsigned int i = 0; float a = -2.5+(((float)x)/size)*3.5; float b = -1.75+(((float)y)/size)*3.5; -- cgit v1.1