Drafted with AI assistance from my own notes and code, then edited and fact-checked by me.
In Episode 1, I got a triangle on screen and Rust code that could change while the game was running. But the triangle still lived inside the shader. It had no camera, no scene to belong to, and nothing gameplay code could move.
Episode 2 takes four steps: Vulkan groundwork, a GPU version of the book’s path tracer, two approaches to depth of field, and one step beyond the book—moving the scene into the engine’s own world so Rust could move it.
At a 1187×762 viewport, the ray tracer runs at 2374×1524 (200% render scale), with 10 bounces and 1 sample per frame: 4.0 FPS (250 ms).
The Profiler panel came later, during the 2.5 interlude. It shows the ray tracer taking 248.68 ms of a 250 ms frame. That interlude follows the work behind the profiler and the later performance readings .
Chapter 1 - Giving the GPU somewhere to work
A triangle can live entirely in a shader.…