From dbc9a88f08f5d88951be1547e60404d1278d26d2 Mon Sep 17 00:00:00 2001 From: Brad Svercl Date: Sat, 15 Oct 2022 22:13:26 -0500 Subject: [PATCH 1/3] upgrade wgpu to 0.14.0 --- bracket-terminal/Cargo.toml | 2 +- bracket-terminal/src/hal/webgpu/init.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bracket-terminal/Cargo.toml b/bracket-terminal/Cargo.toml index 064fc37d..d77fa18c 100755 --- a/bracket-terminal/Cargo.toml +++ b/bracket-terminal/Cargo.toml @@ -31,7 +31,7 @@ ultraviolet = "~0.9" parking_lot = { version = "~0.12" } ctrlc = { version = "~3.2", optional=true } anyhow = "~1.0" -wgpu = { version = "0.13", optional=true } +wgpu = { version = "0.14.0", optional=true } pollster = { version = "0.2", optional=true } bytemuck = {version = "1.4.0", optional=true } diff --git a/bracket-terminal/src/hal/webgpu/init.rs b/bracket-terminal/src/hal/webgpu/init.rs index 095ea868..04178608 100644 --- a/bracket-terminal/src/hal/webgpu/init.rs +++ b/bracket-terminal/src/hal/webgpu/init.rs @@ -152,6 +152,7 @@ async fn init_adapter( width: size.width, height: size.height, present_mode: wgpu::PresentMode::Fifo, + alpha_mode: wgpu::CompositeAlphaMode::Auto, }; surface.configure(&device, &config); From 6d03aa3526fb39ffad3cd455009015e8ca1939ac Mon Sep 17 00:00:00 2001 From: Brad Svercl Date: Sat, 15 Oct 2022 22:17:53 -0500 Subject: [PATCH 2/3] use nearest filtering for framebuffer --- bracket-terminal/src/hal/webgpu/framebuffer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bracket-terminal/src/hal/webgpu/framebuffer.rs b/bracket-terminal/src/hal/webgpu/framebuffer.rs index 877d75c1..1bab77a9 100644 --- a/bracket-terminal/src/hal/webgpu/framebuffer.rs +++ b/bracket-terminal/src/hal/webgpu/framebuffer.rs @@ -31,9 +31,9 @@ impl Framebuffer { address_mode_u: wgpu::AddressMode::Repeat, address_mode_v: wgpu::AddressMode::Repeat, address_mode_w: wgpu::AddressMode::Repeat, - mag_filter: wgpu::FilterMode::Linear, - min_filter: wgpu::FilterMode::Linear, - mipmap_filter: wgpu::FilterMode::Linear, + mag_filter: wgpu::FilterMode::Nearest, + min_filter: wgpu::FilterMode::Nearest, + mipmap_filter: wgpu::FilterMode::Nearest, lod_min_clamp: -100.0, lod_max_clamp: 100.0, compare: None, From a7ba46884cf6682b29d645fa8bf3470361cef3a0 Mon Sep 17 00:00:00 2001 From: Brad Svercl Date: Fri, 27 Jan 2023 17:22:12 -0600 Subject: [PATCH 3/3] bump wgpu to 0.15.0 this didn't require any additional changes --- bracket-terminal/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bracket-terminal/Cargo.toml b/bracket-terminal/Cargo.toml index d77fa18c..ffb4cbfb 100755 --- a/bracket-terminal/Cargo.toml +++ b/bracket-terminal/Cargo.toml @@ -31,7 +31,7 @@ ultraviolet = "~0.9" parking_lot = { version = "~0.12" } ctrlc = { version = "~3.2", optional=true } anyhow = "~1.0" -wgpu = { version = "0.14.0", optional=true } +wgpu = { version = "0.15.0", optional=true } pollster = { version = "0.2", optional=true } bytemuck = {version = "1.4.0", optional=true }