-
Notifications
You must be signed in to change notification settings - Fork 1k
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
wgpu_core::validation error: unexpected varying type #1427
Comments
You are providing a SPIR-V shader built from GLSL. It contains things like |
that... didn't help unfortunately I'm facing the same error. any other solution? |
Ok, sorry, I should have read it more carefully. You are saying everything works, just wondering why the error is printed. |
I also got this issue and spent a fair amount of time trying to debug my shader to see what the issue was, before finding this post. |
I have the same issue when learning wgpu with this tutorial. Maybe you could just be more specific in the error message as a quick fix |
Error messages coming from Naga are indeed not very actionable right now, this is a general problem we are aware of but hasn't solved yet. |
See #2168 for more info |
Description
When I run my program, (the pipeline section from ) I get an error once it runs. it doesn't break anything, I'm just confused as to why this seems be happening.
Repro steps
following the sotrh guide with these dependencies:
[dependencies]
anyhow = "1.0.40"
image = "0.23.14"
winit = "0.24"
wgpu = "0.8.1"
env_logger = "0.7"
futures = "0.3"
cgmath = "0.18"
[build-dependencies]
shaderc = "0.7"
anyhow = "1.0.40"
fs_extra = "1.1"
glob = "0.3"
Expected vs observed behavior
for this error not to happen.
Extra materials

I think?? It has something to do with the SPIR_V vec4 formats?
Platform
Windows 10, wgpu 0.8.1
The text was updated successfully, but these errors were encountered: