diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index 0610d047cd..3cf0d8bc39 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -790,6 +790,10 @@ pub trait Queue: WasmNotSendSync { /// [cb]: Api::CommandBuffer /// [ce]: Api::CommandEncoder /// [st]: Api::SurfaceTexture + /// [t]: Api::Texture + /// [bg]: Api::BindGroup + /// [rp]: Api::RenderPipeline + /// [d]: Api::Device unsafe fn submit( &self, command_buffers: &[&::CommandBuffer], diff --git a/wgpu-hal/src/vulkan/device.rs b/wgpu-hal/src/vulkan/device.rs index 759d33b21a..c26c83dc28 100644 --- a/wgpu-hal/src/vulkan/device.rs +++ b/wgpu-hal/src/vulkan/device.rs @@ -2341,9 +2341,7 @@ impl super::DeviceShared { } else { match active.iter().find(|&&(value, _)| value >= wait_value) { Some(&(_, raw)) => { - match unsafe { - self.raw.wait_for_fences(&[raw], true, timeout_ns) - } { + match unsafe { self.raw.wait_for_fences(&[raw], true, timeout_ns) } { Ok(()) => Ok(true), Err(vk::Result::TIMEOUT) => Ok(false), Err(other) => Err(other.into()),