mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Upgrade vello to version 0.5.0 and wgpu to version 25 (#2890)
* update: vello * fix compile errors * create target texture lazily * fix TextureBlitter texture format mismatch * use `futures::lock::Mutex` instead of std Mutex --------- Co-authored-by: Firestar99 <firestar99@sydow.cloud>
This commit is contained in:
@@ -111,7 +111,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
std::thread::spawn(move || {
|
||||
loop {
|
||||
std::thread::sleep(std::time::Duration::from_nanos(10));
|
||||
device.poll(wgpu::Maintain::Poll);
|
||||
device.poll(wgpu::PollType::Poll).unwrap();
|
||||
}
|
||||
});
|
||||
let executor = create_executor(proto_graph)?;
|
||||
@@ -123,7 +123,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
println!("{:?}", result);
|
||||
break;
|
||||
}
|
||||
std::thread::sleep(std::time::Duration::from_millis(16));
|
||||
tokio::time::sleep(std::time::Duration::from_millis(16)).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user