-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix for incorrect GLSL validation on witeonly image uniforms #2061
base: master
Are you sure you want to change the base?
Fix for incorrect GLSL validation on witeonly image uniforms #2061
Conversation
…at layout qualifier, and added test
Thanks for trying to fix the issue, but unfortunately this doesn't solve the underlying problem it just side steps the error gating it. The problem is that naga doesn't have a way to express a storage image without a format, so we initialize it by default Lines 170 to 173 in 7e3750a
So your solution is just making all Also if try this on the original issue reproduction case, it won't work, because the storage format kind and the data vector kind aren't equal. |
Ok I see the problem. Would this be somehow solvable by making I am wondering how spriv-cross solves this problem. |
That would be a possibility, but the real problem is figuring out how to handle it in the backends. So I recommend you first research how this would map to the different backends and then we can discuss how this would map to the IR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to mark it as requesting changes
Hello, thank you for your PR against Naga! As part of gfx-rs/wgpu#4231, we have moved development of Naga into the wgpu repository in the Naga subfolder. We have transferred all issues, but we are unable to automatically transfer PRs. As such, please recreate your PR against the wgpu repository. We apologize for the inconvenience this causes, but will make contributing to both projects more streamlined going forward. We are leaving PRs open, but once they are transferred, please close the original Naga PR. |
Related to this issue: gfx-rs/wgpu#4530
I noticed the validation on layout qualifiers for writeonly image uniforms was not working according to the GLSL spec.
I saw there was already a TODO in the code, and the fix seemed straightforward so I made a PR for this.