-
Notifications
You must be signed in to change notification settings - Fork 1k
Initialiazing var foo: vec4f = vec4()
fails with "type can't be inferred"
#7356
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
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: bug
Something isn't working
Comments
Self-contained example: @compute @workgroup_size(1, 1)
fn main() {
var bruh: vec3u = vec3();
} |
6 tasks
andyleiserson
added a commit
to andyleiserson/wgpu
that referenced
this issue
Mar 18, 2025
* Support `vecN()` constructors (fixes gfx-rs#7356) * Apply automatic conversions to the initializer for `let` bindings
6 tasks
6 tasks
ErichDonGubler
pushed a commit
to andyleiserson/wgpu
that referenced
this issue
Mar 20, 2025
* Support `vecN()` constructors (fixes gfx-rs#7356) * Apply automatic conversions to the initializer for `let` bindings
andyleiserson
added a commit
to andyleiserson/wgpu
that referenced
this issue
Mar 31, 2025
* Support `vecN()` constructors (fixes gfx-rs#7356) * Apply automatic conversions to the initializer for `let` bindings
andyleiserson
added a commit
to andyleiserson/wgpu
that referenced
this issue
Apr 2, 2025
* Support `vecN()` constructors (fixes gfx-rs#7356) * Apply automatic conversions to the initializer for `let` bindings
andyleiserson
added a commit
that referenced
this issue
Apr 2, 2025
* Support `vecN()` constructors (fixes #7356) * Apply automatic conversions to the initializer for `let` bindings
Vecvec
pushed a commit
to Vecvec/wgpu
that referenced
this issue
Apr 11, 2025
…rs#7367) * Support `vecN()` constructors (fixes gfx-rs#7356) * Apply automatic conversions to the initializer for `let` bindings
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: naga front-end
lang: WGSL
WebGPU Shading Language
naga
Shader Translator
type: bug
Something isn't working
This failure is from https://martinlaxenaire.github.io/gpu-curtains/examples/shadow-mapping/ via https://bugzilla.mozilla.org/show_bug.cgi?id=1876519, although I think I also hit this problem writing test cases for an unrelated issue.
The text was updated successfully, but these errors were encountered: