[rs] Add Adapter::get_info

This commit is contained in:
Paul Kernfeld 2019-09-08 08:33:36 -04:00
parent 728963b50c
commit f7bce2cc4e

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 {