A weekend-style path into Metal-cpp
Metal-cpp Tutorials
Understanding GPUs starts with image processing and moves on to off-screen rendering, materials, and performance. The tutorial body is a web book, and the `src/` directory provides the final reference code for each book.
Metal-cpp in One Weekend
First use a compute shader for image processing: buffer, texture, command buffer, compute pipeline.
Book 2Metal-cpp: Offscreen Tiny Renderer
Start with the off-screen color target and gradually add mesh, texture, camera and Lambert / Blinn-Phong / PBR.
Book 3Metal-cpp: Performance and Compute
Building on the rendering quality of Book 2, continue learning about performance optimization, GPU profiling, and more high-performance compute examples.
How to Use This Site
Read the web book in `books/`; when you need to compare the complete code, open the final reference implementation of the corresponding book under `src/`.
cmake -S . -B build
cmake --build build