From 8143b95d9fca9140a0eaf8982c1b6e4f963e7514 Mon Sep 17 00:00:00 2001 From: Marc Pabst <“marcpabst@users.noreply.github.com”> Date: Fri, 21 Feb 2025 15:36:10 +0000 Subject: [PATCH] add as_raw for dx12 queue --- wgpu-hal/src/dx12/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wgpu-hal/src/dx12/mod.rs b/wgpu-hal/src/dx12/mod.rs index d5d6843c39..e4dbee301d 100644 --- a/wgpu-hal/src/dx12/mod.rs +++ b/wgpu-hal/src/dx12/mod.rs @@ -663,6 +663,12 @@ pub struct Queue { temp_lists: Mutex>>, } +impl Queue { + pub fn as_raw(&self) -> &Direct3D12::ID3D12CommandQueue { + &self.raw + } +} + unsafe impl Send for Queue {} unsafe impl Sync for Queue {}