-
Notifications
You must be signed in to change notification settings - Fork 124
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
Update to wgpu 0.16 #308
Update to wgpu 0.16 #308
Conversation
Getting a failure when I try to run my project against this ambient build:
can't seem to find where this line:
is. I saw it in some shader files in my projects |
Thanks! Looks like it's https://github.com/kevzettler/Ambient/blob/a033f677d8bb0802836ec4072f745132c39f159a/crates/renderer/src/lib.rs#L220-L224 As a heads-up, as mentioned in #168, we can't update to wgpu 0.15 until this PR ends up in a release: gfx-rs/wgpu#3657 - we could potentially use a Git dependency until then. @ten3roberts would that work? |
We could use a git dependency, through cargo patching. Perhaps we should hold off just a little while longer as it seems they are still working out how to solve the Good that they also fixed the usage of a depth buffer without a stencil bit, which is an issue we've encountered and worked around |
Thanks for the PR |
closing as duplicate in favor of #168 |
#168 is out of date right now (we've made some pretty significant changes to the renderer to get it on the web), so I wouldn't close this just yet |
Ok I have reopened and added a commit to update the shader |
Awesome, thanks. Can you try fixing the Linux build? Once that works, @ten3roberts can try using a Git version of wgpu and hopefully we won't run into any issues on the web, and this PR can be merged. |
ok |
Seems this upgrade has revealed some issues in some of the shaders. Going to take another pass and correct them. |
Ok I went through and updated shaders that were having compatibility issues. I tested most of the examples with the |
Unfortunately it is not working on the web. This also occurs with a small example project, and is mentioned in gfx-rs/wgpu#3430 Using git does not work either as they have other breaking changes such as a quite reworked TextureFormat api, and those commits are from before the WasmAbi fix. Unfortunately |
How hard would it be to accommodate the breaking changes? I imagine we'll have to do that anyway for wgpu 0.16 or what have you |
I updated a small example project, and it wasn't too many changes. However, it does clear the screen with a clear color, but nothing is rendered, while rendering with storage buffers worked on Other than that I am not sure how many more breaking changes are planned for Ambient does currently work on So I am not currently sure how to go about it |
@ten3roberts fyi the wgpu team has closed out gfx-rs/wgpu#3430 and one of the commiters has commented that it is resolved: gfx-rs/wgpu#3430 (comment) But I guess you're saying there are additional issues? Are you proposing we wait until a later version of wgpu? I agree with @philpax I feel this is unfortunate upgrade work that will eventually need to be done anyway so if we can get close with a stable Ambient with working wpu git version pin might be a win. I'm happy to help investigate if you point me to a WiP branch |
Heads-up - wgpu 0.16 is now out. Would it be possible to update this PR? That should make it possible to merge afaict 🙏 |
working on an update now |
fix braking changes
Awesome, thank you 🙏 |
Ok 2089caa brings it up todate with 0.16.0 My test project looks good and I checked a bunch of the critical examples they look good. The github build is passing green. I think this is unrelated. When I run
|
@kevzettler Yeah I'll fix that |
@ten3roberts Any reason to not merge this now? |
I've dealt with the merge and looked through |
It now works on the web, so LGTM |
Alrighty, all good from my end. Thanks so much for this, @kevzettler! Much appreciated 🚀 |
addresses #27