Add helpful labels for naga::front::wgsl::Error::SwitchCaseTypeMismatch
#7293
Labels
area: naga front-end
kind: diagnostics
Error message should be better
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
As of #7250, diagnostics for mismatched
case
expressions inswitch
conditionals are a bit sparse on details; if you run this shader:…you get this diagnostic:
Describe the solution you'd like
In @jamienicol's words:
Also, if possible, let's suggest nice hints for fixing things, too.
Describe alternatives you've considered
We could do nothing, but that's laaame, boo. 🙂
The text was updated successfully, but these errors were encountered: