summaryrefslogtreecommitdiffstats
path: root/examples/integration/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-02-06 16:18:19 +0100
committerLibravatar GitHub <noreply@github.com>2021-02-06 16:18:19 +0100
commit2f10a1f2a2c92aada5d167d82e008588256b590f (patch)
treed587953309130c4de7721c27cecd733272fe690f /examples/integration/src/main.rs
parent12c0c18d662d2b817b559b94c71d18e122c76990 (diff)
parent74b9ea520f0f861bda82bbf79a6d4327e42a62fc (diff)
downloadiced-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.rs8
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,