Skip to content

Commit 140c0e6

Browse files
authored
Merge pull request #101 from Davidster/wgpu_16
Wgpu 0.16
2 parents c1fd584 + dd46e46 commit 140c0e6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph"
1111
readme = "README.md"
1212

1313
[dependencies]
14-
wgpu = "0.15"
14+
wgpu = "0.16"
1515
glyph_brush = "0.7"
1616
log = "0.4"
1717

src/pipeline/cache.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use core::num::NonZeroU64;
2-
use std::num::NonZeroU32;
32

43
pub struct Cache {
54
texture: wgpu::Texture,
@@ -100,8 +99,8 @@ impl Cache {
10099
buffer: &self.upload_buffer,
101100
layout: wgpu::ImageDataLayout {
102101
offset: 0,
103-
bytes_per_row: NonZeroU32::new(padded_width as u32),
104-
rows_per_image: NonZeroU32::new(height as u32),
102+
bytes_per_row: Some(padded_width as u32),
103+
rows_per_image: Some(height as u32),
105104
},
106105
},
107106
wgpu::ImageCopyTexture {

0 commit comments

Comments
 (0)