An open API service indexing awesome lists of open source software.

https://github.com/bevy-rust-gpu/bevy-pbr-rust

rust-gpu port of bevy-pbr
https://github.com/bevy-rust-gpu/bevy-pbr-rust

bevy bevy-pbr rust rust-gpu

Last synced: 10 months ago
JSON representation

rust-gpu port of bevy-pbr

Awesome Lists containing this project

README

          

# `bevy-pbr-rust`

[![Documentation](https://img.shields.io/badge/docs-API-blue)](https://bevy-rust-gpu.github.io/bevy-pbr-rust/)

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`.