Skip to content

fazil47/wgpu-renderer

Repository files navigation

WPGU-Renderer

A rasterizer and raytracer renderer written in Rust using the wgpu library.

Demo

To run:

cargo run --release

To run wasm:

cargo xtask run-wasm --release

Testing

To run integration tests:

cargo test --release

Install llvmpipe to run tests with Lavapipe.

# Debian/Ubuntu
apt-get install mesa-vulkan-drivers

# Alpine
apk add mesa-vulkan-gallium

# Fedora
dnf install mesa-vulkan-drivers

Headless rendering tests compare output against reference images with a 2% tolerance. To regenerate the references after a rendering change:

UPDATE_REFERENCES=1 cargo test 

About

A rasterizer and raytracer renderer written in Rust using the wgpu library.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors

Languages