-
Notifications
You must be signed in to change notification settings - Fork 42
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
Naga invariant error is confusing #30
Comments
I get the following error whenever I define a function that ends with a digit:
The error happens whether I import the function or not. This is annoying because there are a lot of functions that end with digits (permute2, permute3, etc.) due to the non-support of function overloading in WGSL. |
I was getting that same error before bevy 0.11 release. But now I get this when trying to import a function that ends with a digit:
I can't remember how I cause that vnoise.wgsl:
fbm.wgsl:
Those shaders were modified from: https://github.com/Neopallium/bevy_water/tree/main/assets/shaders/noise |
I just encountered the exact same issue. Spent a couple hours trying in vain to debug it, before I looked up the naga_oil repo to see if there was a bug about this, and here it is! In my case, it was a I initially did a similar test, renaming it to |
I found similar error to this thread #71 |
We can at least call out the most common case of ending an imported item with a number.
Ideally find a way to remap so that users don’t need to worry about it
The text was updated successfully, but these errors were encountered: