We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Description
It seems naga is unable to handle subtracting a number without there being a whitespae between it, which sounds like the lexer order is a bit iffy.
Repro steps
@fragment fn main(@location(0) A: vec4f) -> @location(0) vec4f { let a = A-2.; return a; }
naga example.frag.wgsl
By comparison, this is deemed ok:
@fragment fn main(@location(0) A: vec4f) -> @location(0) vec4f { let a = A - 2.; return a; }
Tint seems to have no issue parsing this.
Platform On x64 Win10, using the latest naga. naga version: 0.14.0
0.14.0
The text was updated successfully, but these errors were encountered:
I think this was fixed by #4870. Could you try that commit or latest trunk?
Sorry, something went wrong.
cargo run example.frag.wgsll
Seemed to work! Many thanks, closing ticket!
(I assume I tested this correctly, cloned the repo at trunk and did cargo run from wgpu/naga-cli
Sounds correct to me!
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Description
It seems naga is unable to handle subtracting a number without there being a whitespae between it, which sounds like the lexer order is a bit iffy.
Repro steps
naga example.frag.wgsl
By comparison, this is deemed ok:
Tint seems to have no issue parsing this.
Platform
On x64 Win10, using the latest naga.
naga version:
0.14.0
The text was updated successfully, but these errors were encountered: