From 1c3ea27064257d8cf7b9f36b0388b8cf2e94ab08 Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Fri, 26 Jan 2018 01:12:49 +0100 Subject: Skeleton for OpenCL rendering, cleaned up alot, WIP and crashing --- src/mandelbrot.cl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/mandelbrot.cl (limited to 'src/mandelbrot.cl') 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 -- cgit v1.2.1