From d584304ea30ae6296ded9ac0dcfef662e69b5fb0 Mon Sep 17 00:00:00 2001 From: Imbris Date: Wed, 9 Nov 2022 22:24:25 -0500 Subject: [PATCH] Upgrade to wgpu 0.14, bump version, and switch to rust 2021 edition --- Cargo.toml | 10 +++++----- examples/demo.rs | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 435913d..ffabb66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,21 +1,21 @@ [package] name = "wgpu-profiler" -version = "0.9.1" +version = "0.10.0" authors = ["Andreas Reich "] -edition = "2018" +edition = "2021" description = "Simple profiler scopes for wgpu using timer queries" homepage = "https://github.com/Wumpf/wgpu-profiler" repository = "https://github.com/Wumpf/wgpu-profiler" keywords = ["graphics"] license = "MIT OR Apache-2.0" -resolver="2" +resolver = "2" [lib] [dependencies] -wgpu = "0.13" +wgpu = "0.14.0" [dev-dependencies] -winit = "0.26.0" +winit = "0.27.5" futures-lite = "1" #env_logger = "0.8.2" diff --git a/examples/demo.rs b/examples/demo.rs index 70926fa..6dcbf40 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -96,6 +96,7 @@ async fn run(event_loop: EventLoop<()>, window: Window) { // By using the Fifo mode we ensure that CPU waits for GPU, thus we won't have an arbitrary amount of frames in flight that may be discarded. // Profiler works just fine in any other mode, but keep in mind that this can mean that it would need to buffer up many more frames until the first results are back. present_mode: wgpu::PresentMode::Fifo, + alpha_mode: wgpu::CompositeAlphaMode::Auto, }; surface.configure(&device, &sc_desc);