Skip to content

jgraef/wgpu-cpu

Repository files navigation

Software rendering backend for wgpu

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.

Rendering of the Utah Teapot with interpolated vertex colors that result in a red, green and blue gradient.
Utah Teapot with interpolated vertex colors (example)
Rendering of the Stanford Bunny with a colorful test card texture.
Stanford Bunny with texture (example)

About

Toy software renderer implementing the wgpu custom interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published