A weekend-style path into Metal-cpp
Metal-cpp Tutorials
从图像处理开始理解 GPU,再进入离屏渲染、材质和性能。教程主体是网页书,`src/` 目录按每本书提供最终参考代码。
Metal-cpp in One Weekend
先用 compute shader 做图片处理:buffer、texture、command buffer、compute pipeline。
Book 2Metal-cpp: Offscreen Tiny Renderer
从离屏 color target 开始,逐步加入 mesh、贴图、camera 和 Lambert / Blinn-Phong / PBR。
Book 3Metal-cpp: Performance and Compute
在第二册渲染质量基础上,继续学习性能优化、GPU profiling 和更多高性能 compute 例子。
How to Use This Site
阅读 `books/` 里的网页书;需要对照完整代码时,打开 `src/` 下对应书名的最终参考实现。
cmake -S . -B build
cmake --build build