aboutsummaryrefslogtreecommitdiff
path: root/Release/cl/mandelbrot32.cl
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-01-28 17:34:41 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-01-28 17:34:41 +0100
commitda4b72ea58e97d14306cfd322a8ef7a40337645d (patch)
tree7f20339213634a74d91fb7db00c968be71b81fd5 /Release/cl/mandelbrot32.cl
parentc8a38bd8ad66eb0b35f08a4733fdee37a888b83c (diff)
OpenCL rendering working with 32-bit float
Diffstat (limited to 'Release/cl/mandelbrot32.cl')
-rw-r--r--Release/cl/mandelbrot32.cl10
1 files changed, 9 insertions, 1 deletions
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);