Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

WIP: [spv-in] CFG: add break statements in switch selections #951

Merged
merged 1 commit into from
Jun 6, 2021

Conversation

MatusT
Copy link
Contributor

@MatusT MatusT commented Jun 4, 2021

Should fix #940. However, I am getting error The `break`/`continue` is used outside of a loop context from Naga.

The produced IR is identical to that of Tint for the shader in question. Naga should accept break statements inside switch cases I believe.

I also slightly improved the .dot output.

@MatusT MatusT force-pushed the master branch 5 times, most recently from 469b61c to 1774735 Compare June 5, 2021 14:13
@kvark kvark merged commit 94cdaf6 into gfx-rs:master Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spv-in miscompilation of inlined if statement with return
2 participants