summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Wyatt Herkamp <wherkamp@kingtux.me>2022-10-07 09:03:41 -0400
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-01 19:20:23 +0100
commit0a12590b6f500394194ccd7588af8c6729426d71 (patch)
treef22e03c0033e06c930e5162a92b07904576f25f9 /examples
parentac6a3cf8eb77df69cbb6538900786faca778cf05 (diff)
downloadiced-0a12590b6f500394194ccd7588af8c6729426d71.tar.gz
iced-0a12590b6f500394194ccd7588af8c6729426d71.tar.bz2
iced-0a12590b6f500394194ccd7588af8c6729426d71.zip
Update `wgpu` to `0.14` and `wgpu_glyph` to `0.18`
Diffstat (limited to 'examples')
-rw-r--r--examples/integration_wgpu/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs
index 69d46c3e..ed03f77a 100644
--- a/examples/integration_wgpu/src/main.rs
+++ b/examples/integration_wgpu/src/main.rs
@@ -16,6 +16,7 @@ use winit::{
event_loop::{ControlFlow, EventLoop},
};
+use crate::wgpu::CompositeAlphaMode;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen::JsCast;
#[cfg(target_arch = "wasm32")]
@@ -119,6 +120,7 @@ pub fn main() {
width: physical_size.width,
height: physical_size.height,
present_mode: wgpu::PresentMode::AutoVsync,
+ alpha_mode: CompositeAlphaMode::Auto,
},
);
@@ -213,6 +215,7 @@ pub fn main() {
width: size.width,
height: size.height,
present_mode: wgpu::PresentMode::AutoVsync,
+ alpha_mode: CompositeAlphaMode::Auto
},
);