-
Notifications
You must be signed in to change notification settings - Fork 29
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 "file" without list of names should err/warn #97
Comments
It would make sense for this to be an “unused” warning. It isn’t failing, it’s just not necessary since we added the ability to refer to fully qualified items without importing. If you don’t import any items you’re importing the module, which means you can use items from it with |
Oh, also to note, particularly for custom bevy shaders which are quoted like your “common.wgsl” it’s useful to alias them - |
I didn't even know such syntax existed. The readme doesn't explain the "file" case. |
Which bit is not explained? I thought it was all in there. |
The readme has examples for https://docs.rs/naga_oil/ has nothing about imports and looks empty. |
Ah, right. The treatment/resolution of quoted names is bevy-specific, naga oil itself doesn’t treat quoted names any differently. |
Do you think naga should get a first-class support for path names, or should complain about handling of these to Bevy? |
Import with a file path, but without a list of names, "fails" silently:
This syntax is very similar to C's
#include
that just imports everything, so I did not think of specifying individual type names, and was puzzled why this directive doesn't seem to do anything, and doesn't even cause a compilation error.The text was updated successfully, but these errors were encountered: