From 5b7539092506392837cfc916d7425182e4467eb0 Mon Sep 17 00:00:00 2001 From: David Huculak Date: Thu, 20 Apr 2023 21:15:58 -0400 Subject: [PATCH 1/2] wgpu 0.16 --- Cargo.toml | 2 +- src/pipeline/cache.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 611fd61..4878662 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph" readme = "README.md" [dependencies] -wgpu = "0.15" +wgpu = "0.16" glyph_brush = "0.7" log = "0.4" diff --git a/src/pipeline/cache.rs b/src/pipeline/cache.rs index 20fec22..5911549 100644 --- a/src/pipeline/cache.rs +++ b/src/pipeline/cache.rs @@ -100,8 +100,8 @@ impl Cache { buffer: &self.upload_buffer, layout: wgpu::ImageDataLayout { offset: 0, - bytes_per_row: NonZeroU32::new(padded_width as u32), - rows_per_image: NonZeroU32::new(height as u32), + bytes_per_row: Some(padded_width as u32), + rows_per_image: Some(height as u32), }, }, wgpu::ImageCopyTexture { From dd46e462cc51aab21f219a090a66a9a2eb45cdf2 Mon Sep 17 00:00:00 2001 From: David Huculak Date: Thu, 20 Apr 2023 21:16:39 -0400 Subject: [PATCH 2/2] remove unused import --- src/pipeline/cache.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pipeline/cache.rs b/src/pipeline/cache.rs index 5911549..5197dca 100644 --- a/src/pipeline/cache.rs +++ b/src/pipeline/cache.rs @@ -1,5 +1,4 @@ use core::num::NonZeroU64; -use std::num::NonZeroU32; pub struct Cache { texture: wgpu::Texture,