mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 00:33:51 +00:00
[rs] Adapter describe example
This commit is contained in:
parent
f7bce2cc4e
commit
4b5afb8ba1
11
wgpu/examples/describe/main.rs
Normal file
11
wgpu/examples/describe/main.rs
Normal file
@ -0,0 +1,11 @@
|
||||
/// This example shows how to describe the adapter in use.
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
|
||||
let adapter = wgpu::Adapter::request(&wgpu::RequestAdapterOptions {
|
||||
power_preference: wgpu::PowerPreference::Default,
|
||||
backends: wgpu::BackendBit::PRIMARY,
|
||||
}).unwrap();
|
||||
|
||||
println!("{:?}", adapter.get_info())
|
||||
}
|
Loading…
Reference in New Issue
Block a user