From 46420212d71edb6daa1337284f6d94efa7c4ceb3 Mon Sep 17 00:00:00 2001 From: Xiaopeng Li Date: Sat, 4 Jun 2022 13:20:13 +0800 Subject: [PATCH] Add raw_adapter method for dx12 hal adapter (#2714) --- wgpu-hal/src/dx12/adapter.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index 039eb9ab11..c8d390fcfe 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -41,6 +41,10 @@ impl super::Adapter { } } + pub fn raw_adapter(&self) -> &native::DxgiAdapter { + &self.raw + } + #[allow(trivial_casts)] pub(super) fn expose( adapter: native::DxgiAdapter,