mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Add Adapter::get_info
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user