Open teoxoy opened 1 year ago
I have reached the fall-through switch case block
return when translating glsl to wgsl where the switch cases were const int.
Here is a minimal example (via wgpu-py shadertoy utility from https://www.shadertoy.com/view/DtccWr source).
As this seems to be a return message and not a raised error. This eventually causes wgpu to panic with a SemanticError("Case values can only be integers")
.
Is this related to the TODO comment here or should I open another issue?
If GLSL allows those, that would be an enhancement for the GLSL frontend (different issue).
Check out the HLSL backend's workaround for this and implement it for our WGSL backend as well.