Go back to default power preference and BackendBit

This commit is contained in:
Richard Feldman 2020-05-30 11:39:26 -04:00
parent 89f27cd5c6
commit 0ef7ec8d44

View File

@ -33,10 +33,10 @@ fn run_event_loop() -> Result<(), Box<dyn Error>> {
let (device, queue) = futures::executor::block_on(async { let (device, queue) = futures::executor::block_on(async {
let adapter = wgpu::Adapter::request( let adapter = wgpu::Adapter::request(
&wgpu::RequestAdapterOptions { &wgpu::RequestAdapterOptions {
power_preference: wgpu::PowerPreference::Default, power_preference: wgpu::PowerPreference::HighPerformance,
compatible_surface: Some(&surface), compatible_surface: Some(&surface),
}, },
wgpu::BackendBit::PRIMARY, wgpu::BackendBit::all(),
) )
.await .await
.expect("Request adapter"); .expect("Request adapter");