djeedai / bevy_hanabi

🎆 Hanabi — a GPU particle system plugin for the Bevy game engine.
Apache License 2.0
974 stars 77 forks source link

Fix shader binding bug #356

Closed djeedai closed 4 months ago

djeedai commented 4 months ago

Fix a bug where the render shader attempts to bind the Spawner storage buffer as read-only, but that struct is defined as containing an atomic variable, which according to the WGSL specification requires write access. Add a pipeline define SPAWNER_READONLY to redefine that struct field as non-atomic, to allow read-only binding.