From 4fc47673237d6b41dad49ccbecd4d4167940e49e Mon Sep 17 00:00:00 2001 From: threadexception Date: Thu, 6 Oct 2022 20:31:45 +0200 Subject: [PATCH 1/2] Update wgpu and winit --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d4ff64..87288e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" resolver = "2" [dependencies] -wgpu = "0.13" +wgpu = "0.14" glyph_brush = "0.7" log = "0.4" @@ -22,5 +22,5 @@ features = ["derive"] [dev-dependencies] env_logger = "0.9" -winit = "0.26" +winit = "0.27" futures = "0.3" From 654f21db2a90029b8ba02cdc4f65382f6f7ec4af Mon Sep 17 00:00:00 2001 From: Wyatt Herkamp Date: Fri, 7 Oct 2022 11:43:36 -0400 Subject: [PATCH 2/2] Fix tests --- examples/clipping.rs | 3 +++ examples/depth.rs | 2 ++ examples/hello.rs | 3 +++ 3 files changed, 8 insertions(+) diff --git a/examples/clipping.rs b/examples/clipping.rs index 5826de8..306c00e 100644 --- a/examples/clipping.rs +++ b/examples/clipping.rs @@ -1,4 +1,5 @@ use std::error::Error; +use wgpu::CompositeAlphaMode; use wgpu_glyph::{ab_glyph, GlyphBrushBuilder, Region, Section, Text}; fn main() -> Result<(), Box> { @@ -47,6 +48,7 @@ fn main() -> Result<(), Box> { width: size.width, height: size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); @@ -81,6 +83,7 @@ fn main() -> Result<(), Box> { width: size.width, height: size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); } diff --git a/examples/depth.rs b/examples/depth.rs index c0d06e9..505664a 100644 --- a/examples/depth.rs +++ b/examples/depth.rs @@ -1,4 +1,5 @@ use std::error::Error; +use wgpu::CompositeAlphaMode; use wgpu_glyph::{ab_glyph, GlyphBrushBuilder, Section, Text}; const FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Bgra8UnormSrgb; @@ -202,6 +203,7 @@ fn create_frame_views( width, height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); diff --git a/examples/hello.rs b/examples/hello.rs index aa6c108..e656692 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -1,4 +1,5 @@ use std::error::Error; +use wgpu::CompositeAlphaMode; use wgpu_glyph::{ab_glyph, GlyphBrushBuilder, Section, Text}; fn main() -> Result<(), Box> { @@ -47,6 +48,7 @@ fn main() -> Result<(), Box> { width: size.width, height: size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); @@ -81,6 +83,7 @@ fn main() -> Result<(), Box> { width: size.width, height: size.height, present_mode: wgpu::PresentMode::AutoVsync, + alpha_mode: CompositeAlphaMode::Auto }, ); }