Roll wgpu to 0.16

This commit is contained in:
Arman Uguray 2023-04-23 11:56:57 -07:00
parent fa027978ed
commit 8a35c51289
2 changed files with 4 additions and 6 deletions

View file

@ -55,7 +55,7 @@ vello_encoding = { path = "crates/encoding" }
bytemuck = { version = "1.12.1", features = ["derive"] }
fello = { git = "https://github.com/dfrg/fount", rev = "58a284eaae67512fb61cf76177c5d33238d79cb1" }
peniko = { git = "https://github.com/linebender/peniko", rev = "cafdac9a211a0fb2fec5656bd663d1ac770bcc81" }
wgpu = "0.15"
wgpu = "0.16"
# Used for examples
clap = "4.1.0"

View file

@ -311,8 +311,8 @@ impl Engine {
bytes,
wgpu::ImageDataLayout {
offset: 0,
bytes_per_row: NonZeroU32::new(
image_proxy.width * format.describe().block_size as u32,
bytes_per_row: Some(
image_proxy.width * format.block_size(None).unwrap(),
),
rows_per_image: None,
},
@ -338,9 +338,7 @@ impl Engine {
&data[..],
wgpu::ImageDataLayout {
offset: 0,
bytes_per_row: NonZeroU32::new(
*width * format.describe().block_size as u32,
),
bytes_per_row: Some(*width * format.block_size(None).unwrap()),
rows_per_image: None,
},
wgpu::Extent3d {