diff --git a/Cargo.toml b/Cargo.toml index 0e4d3f2de..f0fb5ad63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,9 +33,9 @@ reims-vgpu-graphics = { path = "crates/reims-vgpu-graphics" } reims-vgpu-video = { path = "crates/reims-vgpu-video" } # The Vulkan platform's runtime (architecture D1): a Metal-shaped API on Vulkan, from # metal2vulkan's public repository at the commit both name. -metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "f84816ddec9d7b0422f2e12998daee41f67a7dd5" } +metal2vulkan-runtime = { git = "https://github.com/steelbrain/metal2vulkan", rev = "01506bb3ac64ff05034eb0e6eb7b73d0a409d574" } # Its translator, for the Metal enums and descriptor values the runtime's calls take. -metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "f84816ddec9d7b0422f2e12998daee41f67a7dd5" } +metal2vulkan = { git = "https://github.com/steelbrain/metal2vulkan", rev = "01506bb3ac64ff05034eb0e6eb7b73d0a409d574" } # The hashes of the Vulkan platform's metallib sources (reims-vgpu-vulkan/build.rs). sha2 = "0.10.9" # A display window's swapchain on Linux (reims-vgpu-vulkan/src/swapchain.rs), at the runtime's diff --git a/crates/reims-vgpu-vulkan/src/generation.rs b/crates/reims-vgpu-vulkan/src/generation.rs index 74717c8f2..a1d7baa05 100644 --- a/crates/reims-vgpu-vulkan/src/generation.rs +++ b/crates/reims-vgpu-vulkan/src/generation.rs @@ -77,7 +77,7 @@ impl Generation { for _ in 0..TAKES { let device = generation_serving(queue.device()); // SAFETY: the closure keeps no handle and calls nothing. - let (vk_queue, family) = unsafe { queue.with_vk_queue(|q, family| (q, family)) }; + let (vk_queue, family) = unsafe { queue.with_vk_queue(|_, q, family| (q, family)) }; let handle = handle_of(&device); if handle_of(&generation_serving(queue.device())) == handle { return Ok(Generation { @@ -141,7 +141,7 @@ impl Generation { submit: impl FnOnce(vk::Queue) -> R, ) -> Option { // SAFETY: the caller's. - unsafe { queue.with_vk_queue(|q, _| (q == self.queue).then(|| submit(q))) } + unsafe { queue.with_vk_queue(|_, q, _| (q == self.queue).then(|| submit(q))) } } }