mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
hal/metal: Expose raw_device() from Metal Adapter (#9518)
This commit is contained in:
1 parent
6208d80934
commit
ed4d16e56c
1 file changed
+3
@@ -69,6 +69,9 @@ impl super::Adapter {
|
||||
pub(super) fn new(shared: Arc<super::AdapterShared>) -> Self {
|
||||
Self { shared }
|
||||
}
|
||||
pub fn raw_device(&self) -> &ProtocolObject<dyn MTLDevice> {
|
||||
&self.shared.device
|
||||
}
|
||||
}
|
||||
|
||||
impl crate::Adapter for super::Adapter {
|
||||
|
||||
Reference in new issue
Block a user