File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph"
1111readme = " README.md"
1212
1313[dependencies ]
14- wgpu = " 0.15 "
14+ wgpu = " 0.16 "
1515glyph_brush = " 0.7"
1616log = " 0.4"
1717
Original file line number Diff line number Diff line change 11use core:: num:: NonZeroU64 ;
2- use std:: num:: NonZeroU32 ;
32
43pub 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 {
You can’t perform that action at this time.
0 commit comments