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

Naga wgsl-in allows vecN<bool> && vecN<bool> (with 2 &s) but Chromium/dawn doesn't #6856

Open
expenses opened this issue Jan 4, 2025 · 1 comment
Labels
area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator type: bug Something isn't working

Comments

@expenses
Copy link
Contributor

expenses commented Jan 4, 2025

This code worked fine in naga/wgpu but broke in dawn:
image

vecN<bool> & vecN<bool> works fine everywhere. I'm not sure if this is a naga issue, a wgsl issue or a specification issue.

@sagudev
Copy link
Contributor

sagudev commented Jan 4, 2025

This is not allowed per spec: https://www.w3.org/TR/WGSL/#logical-expr, same also applies for logical or. Relevant code is here:

| BinaryOperator::LogicalAnd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator type: bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

3 participants