mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
14 lines
403 B
Rust
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,
|
|
},
|
|
});
|
|
}
|