5a7cb22bf2b0fedbac375880675fc600e1d66c12
learn-wgpu
An educational book teaching Rust graphics programming with wgpu 29 + winit 0.30.
Built for backend/systems Rust developers who know Rust thoroughly but have zero graphics programming experience. Every sentence teaches GPU concepts — not Rust syntax.
Required Reading Order
- The Graphics Pipeline — GPU vs CPU, the 5-stage pipeline
- Coordinate Systems — NDC, homogeneous coordinates, viewport
- Shader Basics — WGSL, vertex/fragment shaders, interpolation
- Build a Rainbow Triangle — The complete step-by-step guide
- Troubleshooting — Common errors and fixes (reference as needed)
- Glossary — Every term defined (reference as needed)
Reading order matters: Coordinate systems must be understood before shader basics, because the shader walkthrough references NDC coordinates.
Guides
- 01 — Rainbow Triangle — The minimal complete program: one triangle, smooth color interpolation
- More guides coming soon (textures, lighting, compute)
Prerequisites
- Rust stable (edition 2024)
- Linux x86_64 with Vulkan drivers (
libvulkan1)
Description
Languages
Rust
100%