Skip to content

type of X doesn't match.. #6487

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

Closed
rcoreilly opened this issue Nov 1, 2024 · 2 comments
Closed

type of X doesn't match.. #6487

rcoreilly opened this issue Nov 1, 2024 · 2 comments

Comments

@rcoreilly
Copy link

The latest https://github.com/gfx-rs/wgpu/releases/tag/v23.0.0 release highlights this naga WGSL parsing error:

fn gimme_a_float() -> f32 {
  return 42; // fails in Naga, but standard WGSL happily converts to `f32`
}

this is the single most annoying "feature" of the current framework, IMO. I couldn't find the issue that is tracking it. Any chance it could receive some urgent attention? Thanks!

@rcoreilly
Copy link
Author

rcoreilly commented Nov 1, 2024

ps. It occurs in simple direct assignments as well, e.g.,

var<storage, read_write> Neurons: array<f32>;
...
Neurons[x,y] = 0;

@ErichDonGubler
Copy link
Member

The issue you're looking for is #4400. Said issue is one of Firefox contributors' highest priorities, though unassigned. I'm guessing we'll start work on it before the end of the year, but it's hard to provide estimates, with the volume of new issues coming in.

CC @jimblandy ☝🏻

@ErichDonGubler ErichDonGubler closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in WebGPU for Firefox Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants