Open myth0genesis opened 3 days ago
I found out the issue is associated with using a present_mode
in wgpu::SurfaceConfiguration
of wgpu::PresentMode::Fifo
in my specific case. I still can't figure out why it was working for several days and then suddenly stopped, though. The fix was to set present_mode
to wgpu::PresentMode::AutoNoVsync
. I'm a bit reluctant to close this issue since Fifo
just seemed to randomly stop working with configure()
, so I'll probably leave this open for a few more days to see if anyone has a better idea of what's happening here.
Update:
So wgpu::PresentMode::Fifo
does work if I switch the backends
field in the wgpu::InstanceDescriptor
to wgpu::Backends::VULKAN
. I've also tried GL
with no issues. So this seems to only break for the DX12 backend. I don't have a platform to test Metal on, so I can't speak for that, but I'm going to leave this open for longer in hopes that some more eyes get on it and maybe some folks can test on Metal, too.
After having compiled and run the program successfully several times, without changing a single line of code, I suddenly began receiving an
error.
Source files:
lib.rs
:main.rs
:Cargo.toml
:Expected behavior: A window should show up on-screen with a solid red interior when compiling and running the above project.
Observed behavior: When running, the program exits with an
error.
Extra information: When debugging, the failure occurs at any line containing
Here's is the output at the point of failure:
Platform: Microsoft Windows 11 Home Version 10.0.22631 Build 22631 Intel i9 12900H 32 GB RAM @ 3200 MHz NVidia GeForce RTX 3070 Ti Laptop GPU