diff options
author | 2021-02-06 16:18:19 +0100 | |
---|---|---|
committer | 2021-02-06 16:18:19 +0100 | |
commit | 2f10a1f2a2c92aada5d167d82e008588256b590f (patch) | |
tree | d587953309130c4de7721c27cecd733272fe690f /examples/integration/src/main.rs | |
parent | 12c0c18d662d2b817b559b94c71d18e122c76990 (diff) | |
parent | 74b9ea520f0f861bda82bbf79a6d4327e42a62fc (diff) | |
download | iced-2f10a1f2a2c92aada5d167d82e008588256b590f.tar.gz iced-2f10a1f2a2c92aada5d167d82e008588256b590f.tar.bz2 iced-2f10a1f2a2c92aada5d167d82e008588256b590f.zip |
Merge pull request #725 from PolyMeilex/wgpu-7.0
Update to wgpu 0.7
Diffstat (limited to 'examples/integration/src/main.rs')
-rw-r--r-- | examples/integration/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs index 9b52f3a5..ec01c4e6 100644 --- a/examples/integration/src/main.rs +++ b/examples/integration/src/main.rs @@ -36,7 +36,7 @@ pub fn main() { let (mut device, queue) = futures::executor::block_on(async { let adapter = instance .request_adapter(&wgpu::RequestAdapterOptions { - power_preference: wgpu::PowerPreference::Default, + power_preference: wgpu::PowerPreference::HighPerformance, compatible_surface: Some(&surface), }) .await @@ -45,9 +45,9 @@ pub fn main() { adapter .request_device( &wgpu::DeviceDescriptor { + label: None, features: wgpu::Features::empty(), limits: wgpu::Limits::default(), - shader_validation: false, }, None, ) @@ -63,7 +63,7 @@ pub fn main() { device.create_swap_chain( &surface, &wgpu::SwapChainDescriptor { - usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT, + usage: wgpu::TextureUsage::RENDER_ATTACHMENT, format: format, width: size.width, height: size.height, @@ -157,7 +157,7 @@ pub fn main() { swap_chain = device.create_swap_chain( &surface, &wgpu::SwapChainDescriptor { - usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT, + usage: wgpu::TextureUsage::RENDER_ATTACHMENT, format: format, width: size.width, height: size.height, |