[wgsl-in] Immutable array cannot be accessed with mutable index #4920
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: bug
Something isn't working
Description
An array assigned to an immutable variable cannot be accessed using an index from a mutable binding.
Repro steps
Compile this code in a WGSL shader:
Expected vs observed behavior
I expect
f
to compile with no issue, but instead I get an error when attempting to accessa[j]
.Platform
wgpu
: latest fromtrunk
The text was updated successfully, but these errors were encountered: