mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
webgpu: Use WGPU poller thread for poll_all_devices (#32266)
* Use special WGPU poller thread for poll_all_devices * Switch to latest wgpu This is required to fix some deadlocks. * non-blocking poll unconditionally * small fixes
This commit is contained in:
parent
bb5906eeec
commit
00f267e289
5 changed files with 156 additions and 35 deletions
|
@ -8,6 +8,7 @@ use wgpu_thread::WGPU;
|
|||
pub use {wgpu_core as wgc, wgpu_types as wgt};
|
||||
|
||||
pub mod identity;
|
||||
mod poll_thread;
|
||||
mod wgpu_thread;
|
||||
|
||||
use std::borrow::Cow;
|
||||
|
@ -86,7 +87,7 @@ impl WebGPU {
|
|||
.run();
|
||||
})
|
||||
{
|
||||
warn!("Failed to spwan WGPU thread ({})", e);
|
||||
warn!("Failed to spawn WGPU thread ({})", e);
|
||||
return None;
|
||||
}
|
||||
Some((WebGPU(sender), script_recv))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue