diff options
Diffstat (limited to 'src/mandelbrot.cl')
-rw-r--r-- | src/mandelbrot.cl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mandelbrot.cl b/src/mandelbrot.cl new file mode 100644 index 0000000..0a477c9 --- /dev/null +++ b/src/mandelbrot.cl @@ -0,0 +1,6 @@ +__kernel void Main(__write_only image2d_t image) +{ + int x = get_global_id(0); + int y = get_global_id(1); + write_imagef(image, (int2)(x, y), (float4)(x / 256.0f, y / 256.0f, 1.0f, 1.0f)); +}
\ No newline at end of file |