mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Add raw_device for dx12, vulkan device
This commit is contained in:
committed by
Dzmitry Malyshau
parent
043e36c59a
commit
10a07e4807
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user