wgpu/examples/init.rs
2018-09-14 09:16:30 -04:00

14 lines
403 B
Rust

extern crate gpu_native as gn;
fn main() {
let instance = gn::create_instance();
let adapter = gn::instance_get_adapter(instance, gn::AdapterDescriptor {
power_preference: gn::PowerPreference::LowPower,
});
let device = gn::adapter_create_device(adapter, gn::DeviceDescriptor {
extensions: gn::Extensions {
anisotropic_filtering: false,
},
});
}