-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move shared WGSL code to imported module (#264)
Move most shared WGSL code into an import module `vfx_common.wgsl`, and document it. This ensures the code remains in sync between the various passes (init/update/render) without needing some error-prone copy/paste, while making the code easier to read too. This change moves `naga` and `naga_oil` from being dev-only dependencies to being proper crate dependencies. This is required to use `naga_oil`'s import system, like `bevy_render`. This makes the change a breaking one.
- Loading branch information
Showing
11 changed files
with
295 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_hanabi" | ||
version = "0.9.0" | ||
version = "0.10.0-dev" | ||
authors = ["Jerome Humbert <[email protected]>"] | ||
edition = "2021" | ||
description = "Hanabi GPU particle system for the Bevy game engine" | ||
|
@@ -38,6 +38,9 @@ ron = "0.8" | |
bitflags = "2.3" | ||
typetag = "0.2" | ||
thiserror = "1.0" | ||
# Same versions as Bevy 0.12 (bevy_render) | ||
naga = "0.13" | ||
naga_oil = "0.10" | ||
|
||
[dependencies.bevy] | ||
version = "0.12" | ||
|
@@ -50,8 +53,6 @@ all-features = true | |
[dev-dependencies] | ||
# Same versions as Bevy 0.12 (bevy_render) | ||
wgpu = "0.17.1" | ||
naga = "0.13" | ||
naga_oil = "0.10" | ||
|
||
# For procedural texture generation in examples | ||
noise = "0.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.