Skip to content

Automatic type conversion not working for select #7538

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

Open
ErichDonGubler opened this issue Apr 14, 2025 · 1 comment · May be fixed by #7572
Open

Automatic type conversion not working for select #7538

ErichDonGubler opened this issue Apr 14, 2025 · 1 comment · May be fixed by #7572
Assignees
Labels
area: correctness We're behaving incorrectly area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator

Comments

@ErichDonGubler
Copy link
Member

This should work:

@compute @workgroup_size(1, 1)
fn main() {
  _ = select(1, 2f, false);
}

…but it does not.

Other cases that I'm aware of can also be found at bug 1960453.

@ErichDonGubler
Copy link
Member Author

Firefox downstream tracking: bug 1960453

@cwfitzgerald cwfitzgerald added naga Shader Translator area: naga front-end area: correctness We're behaving incorrectly lang: WGSL WebGPU Shading Language labels Apr 16, 2025
@ErichDonGubler ErichDonGubler linked a pull request Apr 18, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: correctness We're behaving incorrectly area: naga front-end lang: WGSL WebGPU Shading Language naga Shader Translator
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

2 participants