Improve graphics driver support and debugging

- Support WGPU_FORCE_FALLBACK to run on CPU
 - Pass display when creating wgpu instance
 - Pass compatible surface when constructing adapter
 - Log some settings (at debug level)
This commit is contained in:
2026-08-08 18:38:47 -04:00
parent cfec6e51bf
commit 05d00eee5a
4 changed files with 101 additions and 57 deletions
+8 -1
View File
@@ -136,6 +136,13 @@ fn main() -> Result<()> {
let event_loop = EventLoop::with_user_event().build().unwrap();
event_loop.set_control_flow(ControlFlow::Poll);
let proxy = event_loop.create_proxy();
event_loop.run_app(&mut Application::new(client, proxy, persistence, args))?;
let handle = event_loop.owned_display_handle();
event_loop.run_app(&mut Application::new(
client,
proxy,
handle,
persistence,
args,
))?;
Ok(())
}