diff options
author | 2022-10-07 09:03:41 -0400 | |
---|---|---|
committer | 2022-11-01 19:20:23 +0100 | |
commit | 0a12590b6f500394194ccd7588af8c6729426d71 (patch) | |
tree | f22e03c0033e06c930e5162a92b07904576f25f9 /examples | |
parent | ac6a3cf8eb77df69cbb6538900786faca778cf05 (diff) | |
download | iced-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.rs | 3 |
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 }, ); |