Add raw_device for dx12, vulkan device

This commit is contained in:
xiaopengli89
2022-01-06 21:44:47 +08:00
committed by Dzmitry Malyshau
parent 043e36c59a
commit 10a07e4807
2 changed files with 8 additions and 0 deletions

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,

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 {