Add raw_device for dx12, vulkan device

This commit is contained in:
xiaopengli89 authored and Dzmitry Malyshau committed 2022-01-06 12:59:08 -05:00
1 parent 043e36c59a
commit 10a07e4807
2 files changed
+8

No files matched your search

+4
View File
@@ -283,6 +283,10 @@ impl super::Device {
result
}
pub fn raw_device(&self) -> &native::Device {
&self.raw
}
pub unsafe fn texture_from_raw(
resource: native::Resource,
format: wgt::TextureFormat,
+4
View File
@@ -677,6 +677,10 @@ impl super::Device {
},
})
}
pub fn raw_device(&self) -> &ash::Device {
&self.shared.raw
}
}
impl crate::Device<super::Api> for super::Device {