diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-26 01:12:49 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-26 01:12:49 +0100 |
commit | 1c3ea27064257d8cf7b9f36b0388b8cf2e94ab08 (patch) | |
tree | 9b2d9a0dbb2940158b2fb734325cfc360efac6f4 /src/mandelbrot.cl | |
parent | e6c241add375353c1c80b0e3915a6505dbd5db9a (diff) |
Skeleton for OpenCL rendering, cleaned up alot, WIP and crashing
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 |