You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a bit more investigation, I've found that the actual thing problematic variable name is <function name>Output, and vsOutput is only problematic inside a function named vs (vsyOutput is problematic in function vsy, etc.)
ErichDonGubler
changed the title
vsOutput needs to be added to the list of excluded namesstruct <fun>Output conflicts with fn <fun> on Metal
Oct 22, 2024
Description
Naga fails to rename a shader variable named "vsOutput", causing failures in shaders that use the name.
Repro steps
(at least, this works on latest MacOS, and does not repro on WASM)
(taken from https://webgpufundamentals.org/webgpu/lessons/webgpu-inter-stage-variables.html)
Expected vs observed behavior
Expected for the shader to compile and run.
Observed an error due to invalid types in shader.
Extra materials
cwfitzgerald told me to make this issue so here I am.
Platform
OS: MacOS 15.0.1
wgpu: 22.1.0
The text was updated successfully, but these errors were encountered: