This is a custom backend for wgpu which renders everything on the CPU. It aims to support all features that are usually guaranteed by wgpu to be supported, and some more that we can manage to implement. The project is still under development, so it currently only supports some basic usecases.
To facilitate running shaders on the CPU, this repository also contains naga-cranelift, a cranelift-powered compiler backend for naga.
Examples can be found in wgpu-cpu/examples.
![]() |
|---|
| Utah Teapot with interpolated vertex colors (example) |
![]() |
|---|
| Stanford Bunny with texture (example) |

