diff options
author | David Phillips <david@sighup.nz> | 2017-02-23 22:46:46 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-02-23 22:46:46 +1300 |
commit | 5b1c35bd427a12ea39443142bf4540242a022963 (patch) | |
tree | fa78660445d2c3b767c5f6d0e131650ac21577ce /cl/mandelbrot.cl | |
parent | c408633a30a5a60f62f34d84e51a1198fb38f328 (diff) | |
download | fractal-gen-opencl-5b1c35bd427a12ea39443142bf4540242a022963.tar.xz |
Change kernel iteration type from uint to ulong
Diffstat (limited to 'cl/mandelbrot.cl')
-rw-r--r-- | cl/mandelbrot.cl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cl/mandelbrot.cl b/cl/mandelbrot.cl index d72148f..8617ae5 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 int iterations) + const unsigned long iterations) { unsigned int x = get_global_id(0); unsigned int y = get_global_id(1); - unsigned int i = 0; + unsigned long i = 0; float a = -2.5+(((float)x)/size)*3.5; float b = -1.75+(((float)y)/size)*3.5; |