From 36fd030ecf3f8e55e36a1462a4e7bd8e309f0431 Mon Sep 17 00:00:00 2001 From: grovesNL Date: Tue, 18 Oct 2022 13:02:31 -0230 Subject: [PATCH] Update to wgpu 0.14 --- Cargo.toml | 4 ++-- examples/hello-world.rs | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8207fa5..c3f8b89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,10 @@ repository = "https://github.com/grovesNL/glyphon" license = "MIT OR Apache-2.0 OR Zlib" [dependencies] -wgpu = "0.13.1" +wgpu = "0.14.0" fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" } etagere = "0.2.6" [dev-dependencies] -winit = "0.26.1" +winit = "0.27.0" pollster = "0.2.5" diff --git a/examples/hello-world.rs b/examples/hello-world.rs index 47df576..ac854de 100644 --- a/examples/hello-world.rs +++ b/examples/hello-world.rs @@ -7,8 +7,8 @@ use glyphon::{ Color, HasColor, Resolution, TextAtlas, TextOverflow, TextRenderer, }; use wgpu::{ - Backends, CommandEncoderDescriptor, DeviceDescriptor, Features, Instance, Limits, LoadOp, - Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor, + Backends, CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance, + Limits, LoadOp, Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration, TextureUsages, TextureViewDescriptor, }; use winit::{ @@ -64,6 +64,7 @@ async fn run() { width: size.width, height: size.height, present_mode: PresentMode::Mailbox, + alpha_mode: CompositeAlphaMode::Opaque, }; surface.configure(&device, &config);