From abdf1cd74151fbc4e309c9debeedd1575e08cfc1 Mon Sep 17 00:00:00 2001 From: xiaopengli89 Date: Fri, 15 Apr 2022 16:29:32 +0800 Subject: [PATCH] Add raw_queue for d3d12 device --- wgpu-hal/src/dx12/device.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgpu-hal/src/dx12/device.rs b/wgpu-hal/src/dx12/device.rs index 778bd2e51a..f87111f6bc 100644 --- a/wgpu-hal/src/dx12/device.rs +++ b/wgpu-hal/src/dx12/device.rs @@ -290,6 +290,10 @@ impl super::Device { &self.raw } + pub fn raw_queue(&self) -> &native::CommandQueue { + &self.present_queue + } + pub unsafe fn texture_from_raw( resource: native::Resource, format: wgt::TextureFormat,