Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default branch to wgsl switch #79

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Add default branch to wgsl switch #79

merged 1 commit into from
Nov 15, 2021

Conversation

Bobo1239
Copy link
Contributor

From the WGSL spec: "Each switch statement must have exactly one default clause."

Chrome/Tint emits the following error when compiling the shader:

Tint WGSL reader failure:
Parser: 35:5 error: switch statement must have a default clause
    switch (i32(input.vertex_index)) {
    ^^^^^^

naga doesn't yet validate the presence of a default clause but should do so soonish via gfx-rs/naga#1529.

From the WGSL spec: "Each switch statement must have exactly one default clause."
@hecrj hecrj added the bug Something isn't working label Nov 15, 2021
@hecrj hecrj added this to the 0.15.2 milestone Nov 15, 2021
@hecrj hecrj merged commit 215f3be into hecrj:master Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants