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,