diff --git a/Cargo.toml b/Cargo.toml index 3447d87..268bfb7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -wgpu = "26.0.1" +wgpu = "27.0.1" euclid = "0.22.7" fontdue = "0.9.3" rect_packer = "0.2.1" diff --git a/tests/common.rs b/tests/common.rs index 5c0b067..8f6a3db 100644 --- a/tests/common.rs +++ b/tests/common.rs @@ -22,6 +22,7 @@ pub async fn setup() -> (wgpu::Device, wgpu::Queue) { required_limits: wgpu::Limits::default(), memory_hints: wgpu::MemoryHints::Performance, trace: wgpu::Trace::Off, + ..Default::default() }) .await .expect("Unable to find a suitable GPU adapter!") @@ -48,7 +49,7 @@ pub async fn create_png( // In an actual application, `device.poll(...)` should // be called in an event loop or on another thread. device - .poll(wgpu::PollType::Wait) + .poll(wgpu::PollType::wait_indefinitely()) .expect("Failed to poll device"); // If a file system is available, write the buffer as a PNG @@ -130,7 +131,7 @@ fn get_texture_data( queue.submit(Some(command_buffer)); device - .poll(wgpu::PollType::Wait) + .poll(wgpu::PollType::wait_indefinitely()) .expect("Failed to poll device"); output_buffer