This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
[spv-in] Naga rejects example with break from switch #1028
Labels
area: front-end
Input formats for conversion
kind: bug
Something isn't working
lang: SPIR-V
Binary SPIR-V input and output
Naga (1f42d4f) rejects this SPIR-V:
I get:
I believe the SPIR-V is valid, and spirv-val accepts it. The "break" edge, from 1619 to 1729, is inside a switch construct - namely the construct headed at 1538. It's also inside a selection construct - the construct at 1608 - but that's allowed.
Here is the CFG:
Tint accepts this and gives this WGSL:
The text was updated successfully, but these errors were encountered: