aboutsummaryrefslogtreecommitdiff
path: root/cl
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-09-28 00:42:48 +1300
committerDavid Phillips <david@sighup.nz>2017-09-28 00:42:48 +1300
commitda1d6cddec8f7e8067056257ecb299215df6824f (patch)
tree3d1ff3e51fc509c3d1aa5540eb7ca1c90060f753 /cl
parent6cfc8add274feadbe9357638ad83c207ddd39f4d (diff)
downloadfractal-gen-opencl-master.tar.xz
Change kernel argument types to ints, size correctlyHEADmaster
Diffstat (limited to 'cl')
-rw-r--r--cl/mandelbrot.cl4
1 files changed, 2 insertions, 2 deletions
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;