Update wgpu to 0.14 and wgpu_glyph to 0.18

This commit is contained in:
Wyatt Herkamp 2022-10-07 09:03:41 -04:00 committed by Héctor Ramón Jiménez
parent ac6a3cf8eb
commit 0a12590b6f
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 16 additions and 11 deletions

View file

@ -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
},
);