[rs] Add Adapter::get_info

This commit is contained in:
Paul Kernfeld committed 2019-09-21 21:10:58 -04:00
1 parent 728963b50c
commit f7bce2cc4e
1 file changed
+5
+5
View File
@@ -11,6 +11,7 @@ use std::slice;
use std::thread;
pub use wgn::{
AdapterInfo,
AddressMode,
BackendBit,
BlendDescriptor,
@@ -561,6 +562,10 @@ impl Adapter {
};
(device, queue)
}
pub fn get_info(&self) -> AdapterInfo {
wgn::wgpu_adapter_get_info(self.id)
}
}
impl Device {