summaryrefslogtreecommitdiffstats
path: root/examples/integration/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Poly <marynczak.bartlomiej@gmail.com>2021-02-03 22:38:45 +0100
committerLibravatar Poly <marynczak.bartlomiej@gmail.com>2021-02-03 22:38:45 +0100
commit09a5348740803329c98f6422700569595c2be8c5 (patch)
treeaa89e239c6fb2536356f8ff83c4a890df6625d6e /examples/integration/src/main.rs
parent1fb60c5dcbea77bf36934f243bb0832c3e5a116e (diff)
downloadiced-09a5348740803329c98f6422700569595c2be8c5.tar.gz
iced-09a5348740803329c98f6422700569595c2be8c5.tar.bz2
iced-09a5348740803329c98f6422700569595c2be8c5.zip
[wgpu 0.7] Update integration example
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,