Update wgpu (and ash, to avoid duplicate deps).#925
Conversation
|
This is incredible, the Why would we need to render text? Well, we don't, except... Look at what
So according to that, there's this "SCTK" ( But why would Not just that but some of them even posted to KDE venues proposing KDE also do the same (i.e. remove perfectly good WM-side window decorations and force everyone to use custom "CSD" ones).
EDIT2: ah, nice, rust-windowing/winit#2438 replaces the problematically-licensed dependency, and I switched |
| width: size.width, | ||
| height: size.height, | ||
| present_mode: wgpu::PresentMode::Mailbox, | ||
| present_mode: wgpu::PresentMode::AutoNoVsync, |
There was a problem hiding this comment.
This change was found by @fu5ha because macOS apparently doesn't support Mailbox (did this ever work? I think main might be broken too).
There was a problem hiding this comment.
Note that in the latest version of this PR, I've changed it to AutoVsync because AutoNoVsync was doing excessive redraws (thousands of frames per second).
|
All the stuff that was blocking this PR got merged, so does that mean that wgpu can be updated now? |
@ValorZard To be clear, none of my links above have changed status since I posted them. I was linking already merged PRs, some of them just to describe why certain changes where needed. The only blocker link AFAICT is there's no new release containing e.g. the You can also see it's still under the "Unreleased" section in the CHANGELOG right now:
We're basically waiting for For now, this update is not that important, at least not for Naga, until these issues are fixed:
We should just make it possible to use the raw SPIR-V (i.e. bypassing Naga entirely) until Naga improves. |
|
I've further updated
EDIT: the |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
Got Android building (and WASM for that matter, but it doesn't work, I get a lot of errors I haven't looked into). This is what I can get out of I'm not sure what's wrong with the texture format, but the |
|
Opened a separate PR with the the addition I was using to test the WASM path: Which will have to wait until the massive problem with So this PR is truly unblocked, just needs a review now! |

For updating
wgpu, these backwards-incompatible changes required fixes:The original hope was that with newer
wgpuwe'll get newernagawhich might fix the bug breaking the mouse shader (likely gfx-rs/naga#1977 - at least with SPIR-T) - but alas, no such luck(however, replacing the
forloop with awhileloop, and turning off SPIR-T withRUSTGPU_CODEGEN_ARGS=--no-spirtworks aroundnagabugs, and is enough for testing).I've also took the liberty of tweaking a couple dependency versions and (selectively) running
cargo update -p ...to reduce duplicates inCargo.lock, hence the larger amount of changes than might be expected (and the dependency on EmbarkStudios/ash-molten#71).One thing I have not figured out yet is why the mouse shader (with the locally applied workaround) doesn't render new frames except on input events only with X11 (Wayland is fine) - there may be a "power saving" setting that has changed default inwgpu/winit?EDIT: turns out that was us using
winitas if we were a GUI application, in "only redraw after events" mode (not sure my workaround here is the best approach, but it works, and enabling VSync makes it acceptable).