Skip to content

Bevy-Rust-GPU/bevy-pbr-rust

Repository files navigation

bevy-pbr-rust

Documentation

A Rust reimplementation of bevy_pbr's WGSL shaders.

Implementation

Shader def conditionals are implemented using compile-time trait generics, and entrypoint permutations are generated via permutate-macro.

Compatibility

At time of writing, rust-gpu only supports read-write access to storage buffers, which renders its implementation incompatible with the read-only buffers bevy uses to store light and cluster data on supported platforms.

As such, consuming bevy applications should make sure to force storage buffers off via WgpuSettings. This is taken care of automatically if using bevy-rust-gpu.

About

rust-gpu port of bevy-pbr

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages