Image Generation (GPU Shader)

I last looked into GPU compute ~8 years ago when the tooling was still quiet heavily plumbed into the fixed pipeline of 3D rendering. It was opening up with CUDA etc but it was still a bit of a faff to do anything.

With the release of WebGPU, compute shaders and bindings for rust makes it seem like a good time to look again.

I ported over the program to render newton-raphson fractals: Code

It is definately a lot easier than back in the day – a lot fo the current work in AI to GPU has improved the tooling a lot. It also meant I could operate on Buffers rather than images. It does (for now) mean having a CPU and GPU varient of the code. The compute step is a lot faster.

This is a very parallel problem with each pixel being independent – some programs with more data-dependency would be interesting next.

Render.