diff --git a/wgpu-hal/src/metal/adapter.rs b/wgpu-hal/src/metal/adapter.rs index 2a6c2bd2d..4874179d7 100644 --- a/wgpu-hal/src/metal/adapter.rs +++ b/wgpu-hal/src/metal/adapter.rs @@ -69,6 +69,9 @@ impl super::Adapter { pub(super) fn new(shared: Arc) -> Self { Self { shared } } + pub fn raw_device(&self) -> &ProtocolObject { + &self.shared.device + } } impl crate::Adapter for super::Adapter {