Abstract type coercion missing for function arguments #5523
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: bug
Something isn't working
From conversation in #5515:
It works in a few spots (simple integer expressions, for example) but call a function that takes a u32 and pass a 0 and you get this beauty:
Shader validation error:
┌─ surface.wgsl:367:12
│
367 │ return with_cond(vertex_ix, 0);
│ ^^^^^^^^^^^^^^^^^^^^^^^
│ │ │
│ │ naga::Expression [2]
│ invalid function call
It wants a 0u. Don't get me started on that error message... my goodness.
The text was updated successfully, but these errors were encountered: