[glsl-in] naga panic: index out of bound in swizzle expression #4773
Labels
area: naga front-end
lang: GLSL
OpenGL Shading Language
naga
Shader Translator
type: bug
Something isn't working
I encountered this panic while working with shadertoys through wgpu-py. The original shader where this happened: https://www.shadertoy.com/view/clB3D3 and a minimal reconstruction: https://www.shadertoy.com/view/cltfRn
case that panics:
equivalent case that works (comment out the unused const)
equivalent case that throws an error without swizzle (error might be with the implementation, but at least it doesn't panic)
I used naga-cli 0.14.0 and wgpu-py shadertoy util to add the compatibility code for shadertoy syntax.
Full error trace:
the perma link to the line it mentions:
wgpu/naga/src/front/glsl/variables.rs
Line 320 in ebcfd25
The text was updated successfully, but these errors were encountered: