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

Handling of #import #25

Open
wduminy opened this issue Nov 19, 2023 · 0 comments
Open

Handling of #import #25

wduminy opened this issue Nov 19, 2023 · 0 comments

Comments

@wduminy
Copy link

wduminy commented Nov 19, 2023

I am using the bevy engine and it uses #import. Here is an example shader.

In VS-Code I get this error when I enable v0.1.16 of vscode-wsgl:

error: expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file, found '#'
  ┌─ wgsl:1:1
  │
1 │ #import bevy_pbr::forward_io::VertexOutput;
  │ ^ expected global item ('struct', 'const', 'var', 'alias', ';', 'fn') or the end of the file

It would be nice if somehow this import statement could be processed or ignored.

@wduminy wduminy changed the title Support for #import Handling of #import Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant