-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support wgsl diagnostic directives. #113
Comments
The error stems from the directive not being prior to all global declarations i.e. not all the way at the top. I'm running into the same issue trying to use an |
Got a hack here to make it fly for myself. This is obviously nowhere close to a shippable solution. Prodded into doing something more cleaner but not having a great time navigating the codebase and tbh it's not something I want to invest time into right now. Hit another snag though on the Naga side: the module -> wgsl writeout that is used when targeting WebGPU isn't emitting enable directives either right now :sigh: |
practically oftopic to this issue, but FYI got that part under control over on |
Wgpu added this in v24, but I didn't figure out how to get them working properly before we merged that PR so they're currently unsupported.
There's a basic test for them written. The test and the test input (though the expected output here is incorrect). The test currently panics due to the
unwrap
because the shader module creation is erroring for some reason.The text was updated successfully, but these errors were encountered: