-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fix/upgrade to wgpu 0.13.1 #119
Conversation
In particular, attribute syntax has changed (e.g. [[stage(compute)]] becomes @compute, Scalar(x) construction is not supported anymore, matrixes of integers are not supported anymore, and some more specific changes)
And with the last few commits, WASM works again (at least on Chrome - for some reason Firefox says it cannot find a GPU given preferences on my machine, YMMV) |
On Firefox (Nightly
Passing |
Co-authored-by: Xavier Tao <tao.xavier@outlook.com>
This PR upgrades wgsl from v0.12.0 to v.0.13.1. This is a long awaited update that (among other things) updates the WGSL syntax to follow the latest standard (which e.g. Google Chrome (Tint) currently uses as well).
Tests pass on my machine and all examples work. Will do some more testing, there may be some edge cases here and there (in particular for ops where scalar_type is an integer - we can't use matrixes anymore for these because WGSL now only supports float-based matrixes).