unhelpful diagnostic from naga regarding missing &
#6983
Labels
area: naga front-end
kind: diagnostics
Error message should be better
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
wgpu version 24.0.0
While working on the reworked webgpu bindings for Deno, I attempted to run a test, which is a 1-1 copy of hello-compute but written in javascript.
So using this shader, I am getting this diagnostic:
Apparently, thanks to @teoxoy the solution is to do
arrayLength(&input)
. The diagnostic is not very helpful here.Also unsure why this is happening, since the wgpu repo itself is using the shader as-is without this change, yet the example works fine.
The text was updated successfully, but these errors were encountered: