mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
[rs] Add Adapter::get_info
This commit is contained in:
parent
728963b50c
commit
f7bce2cc4e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user