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:
+8
-1
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user