Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Bevy types in Hanabi shaders #257

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Import Bevy types in Hanabi shaders #257

merged 1 commit into from
Nov 28, 2023

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Nov 26, 2023

Use naga_oil's import mechanism to import the Bevy shader types (like bevy_render::view::View) into Hanabi shaders, instead of redefining the same types. This prevents silent breakage on upgrade, where the type defined in Hanabi doesn't match the content of the Bevy buffer. This also avoids code duplication.

Use `naga_oil`'s import mechanism to import the Bevy shader types (like
`bevy_render::view::View`) into Hanabi shaders, instead of redefining
the same types. This prevents silent breakage on upgrade, where the type
defined in Hanabi doesn't match the content of the Bevy buffer. This
also avoids code duplication.
@djeedai djeedai added C - enhancement New feature or request A - internal Internal change on a core system labels Nov 26, 2023
@djeedai djeedai merged commit 6898032 into main Nov 28, 2023
13 checks passed
@djeedai djeedai deleted the u/view-import branch November 28, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - internal Internal change on a core system C - enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant