Though somewhat late with the answer, here is the link to the Swift Playgrounds book that I made recently:
https://github.com/gadirom/Metal-Compute-Offscreen-Render-and-Postprocess
It will run on an iPad or a Mac.
Instead of loading shaders from a file I load them from a String constant. The downside is that you won't have syntax highlights.
Anyway, to edit and run the Metal Shader code and research different pipeline logic right on the device is a nice experience! :)
Topic:
Graphics & Games
SubTopic:
General
Tags: