Shader '' parsing error: expected assignment or increment/decrement, found 'pos'
┌─ wgsl:4:9
│
4 │ const pos = array(
│ ^^^ expected assignment or increment/decrement
This error disappears when I replace const with let, but I then get another error a few lines down which I don't think is relevant here.
I guess this is because I am using Firefox Nightly on Linux instead of Chrome on MacOS or Windows? If this is not supported, it would be nice if that were more clear in the README. If it is, what am I getting wrong?
When I open the webpage at
https://google.github.io/tour-of-wgsl/
the codeand an error
This error disappears when I replace
const
withlet
, but I then get another error a few lines down which I don't think is relevant here.I guess this is because I am using Firefox Nightly on Linux instead of Chrome on MacOS or Windows? If this is not supported, it would be nice if that were more clear in the README. If it is, what am I getting wrong?