Drawing Fractals with Minimal Metal
Graphics programming is not something I would call “easy”. I’ve tried using OpenGL and CUDA in the past, but never got very far. Metal, however, has greatly smoothed out the learning curve. The API feels just like you’re using any other Apple framework (including the abundance of documentation). Furthermore, the code you write for the GPU is almost an exact subset of C++.
As an experiment in interactive playgrounds and graphics programming, here’s a little demo of how to use Metal (also available on GitHub). Enjoy!