diff --git a/Cargo.lock b/Cargo.lock index f148964fca..64a1b10d3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -493,7 +493,7 @@ dependencies = [ [[package]] name = "gfx-descriptor" version = "0.1.0" -source = "git+https://github.com/gfx-rs/gfx-extras?rev=438353c3f75368c12024ad2fc03cbeb15f351fd9#438353c3f75368c12024ad2fc03cbeb15f351fd9" +source = "git+https://github.com/gfx-rs/gfx-extras?rev=0f7dac1b05813948fa0e5999c4fe6473f0c98f9b#0f7dac1b05813948fa0e5999c4fe6473f0c98f9b" dependencies = [ "fxhash", "gfx-hal", @@ -513,7 +513,7 @@ dependencies = [ [[package]] name = "gfx-memory" version = "0.1.3" -source = "git+https://github.com/gfx-rs/gfx-extras?rev=438353c3f75368c12024ad2fc03cbeb15f351fd9#438353c3f75368c12024ad2fc03cbeb15f351fd9" +source = "git+https://github.com/gfx-rs/gfx-extras?rev=0f7dac1b05813948fa0e5999c4fe6473f0c98f9b#0f7dac1b05813948fa0e5999c4fe6473f0c98f9b" dependencies = [ "fxhash", "gfx-hal", diff --git a/wgpu-core/src/command/mod.rs b/wgpu-core/src/command/mod.rs index 9a383c015a..e8ab91ac07 100644 --- a/wgpu-core/src/command/mod.rs +++ b/wgpu-core/src/command/mod.rs @@ -158,7 +158,7 @@ impl Global { .expect("Used swap chain frame has already presented"); comb.trackers.views.remove(view_id.value); } - log::debug!("Command buffer {:?} {:#?}", encoder_id, comb.trackers); + log::trace!("Command buffer {:?} {:#?}", encoder_id, comb.trackers); encoder_id } diff --git a/wgpu-core/src/device/life.rs b/wgpu-core/src/device/life.rs index 089aab757c..3ba1953396 100644 --- a/wgpu-core/src/device/life.rs +++ b/wgpu-core/src/device/life.rs @@ -629,15 +629,17 @@ impl LifetimeTracker { }) .collect::>(); - log::debug!("Free framebuffers {:?}", remove_list); - for (ref key, submit_index) in remove_list { - let framebuffer = framebuffers.remove(key).unwrap(); - self.active - .iter_mut() - .find(|a| a.index == submit_index) - .map_or(&mut self.free_resources, |a| &mut a.last_resources) - .framebuffers - .push(framebuffer); + if !remove_list.is_empty() { + log::debug!("Free framebuffers {:?}", remove_list); + for (ref key, submit_index) in remove_list { + let framebuffer = framebuffers.remove(key).unwrap(); + self.active + .iter_mut() + .find(|a| a.index == submit_index) + .map_or(&mut self.free_resources, |a| &mut a.last_resources) + .framebuffers + .push(framebuffer); + } } } diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 8b77d295a0..2e1818e84b 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -504,7 +504,7 @@ impl Global { comb.raw.insert(0, transit); } - log::debug!("Device after submission {}: {:#?}", submit_index, trackers); + log::trace!("Device after submission {}: {:#?}", submit_index, trackers); } // now prepare the GPU submission diff --git a/wgpu-core/src/lib.rs b/wgpu-core/src/lib.rs index 7d903ed096..4b4f50889b 100644 --- a/wgpu-core/src/lib.rs +++ b/wgpu-core/src/lib.rs @@ -15,17 +15,17 @@ mod macros; pub mod backend { pub use gfx_backend_empty::Backend as Empty; + #[cfg(windows)] + pub use gfx_backend_dx11::Backend as Dx11; + #[cfg(windows)] + pub use gfx_backend_dx12::Backend as Dx12; + #[cfg(any(target_os = "ios", target_os = "macos"))] + pub use gfx_backend_metal::Backend as Metal; #[cfg(any( not(any(target_os = "ios", target_os = "macos")), feature = "gfx-backend-vulkan" ))] pub use gfx_backend_vulkan::Backend as Vulkan; - #[cfg(any(target_os = "ios", target_os = "macos"))] - pub use gfx_backend_metal::Backend as Metal; - #[cfg(windows)] - pub use gfx_backend_dx12::Backend as Dx12; - #[cfg(windows)] - pub use gfx_backend_dx11::Backend as Dx11; } pub mod binding_model;