[rs] Add Adapter::get_info
@@ -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 {
