[rs] Adapter describe example

This commit is contained in:
Paul Kernfeld 2019-09-21 21:08:21 -04:00
parent f7bce2cc4e
commit 4b5afb8ba1

View 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())
}