mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-23 18:06:34 +11:00
Roll wgpu to 0.16
This commit is contained in:
parent
fa027978ed
commit
8a35c51289
2 changed files with 4 additions and 6 deletions
|
@ -55,7 +55,7 @@ vello_encoding = { path = "crates/encoding" }
|
||||||
bytemuck = { version = "1.12.1", features = ["derive"] }
|
bytemuck = { version = "1.12.1", features = ["derive"] }
|
||||||
fello = { git = "https://github.com/dfrg/fount", rev = "58a284eaae67512fb61cf76177c5d33238d79cb1" }
|
fello = { git = "https://github.com/dfrg/fount", rev = "58a284eaae67512fb61cf76177c5d33238d79cb1" }
|
||||||
peniko = { git = "https://github.com/linebender/peniko", rev = "cafdac9a211a0fb2fec5656bd663d1ac770bcc81" }
|
peniko = { git = "https://github.com/linebender/peniko", rev = "cafdac9a211a0fb2fec5656bd663d1ac770bcc81" }
|
||||||
wgpu = "0.15"
|
wgpu = "0.16"
|
||||||
|
|
||||||
# Used for examples
|
# Used for examples
|
||||||
clap = "4.1.0"
|
clap = "4.1.0"
|
||||||
|
|
|
@ -311,8 +311,8 @@ impl Engine {
|
||||||
bytes,
|
bytes,
|
||||||
wgpu::ImageDataLayout {
|
wgpu::ImageDataLayout {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
bytes_per_row: NonZeroU32::new(
|
bytes_per_row: Some(
|
||||||
image_proxy.width * format.describe().block_size as u32,
|
image_proxy.width * format.block_size(None).unwrap(),
|
||||||
),
|
),
|
||||||
rows_per_image: None,
|
rows_per_image: None,
|
||||||
},
|
},
|
||||||
|
@ -338,9 +338,7 @@ impl Engine {
|
||||||
&data[..],
|
&data[..],
|
||||||
wgpu::ImageDataLayout {
|
wgpu::ImageDataLayout {
|
||||||
offset: 0,
|
offset: 0,
|
||||||
bytes_per_row: NonZeroU32::new(
|
bytes_per_row: Some(*width * format.block_size(None).unwrap()),
|
||||||
*width * format.describe().block_size as u32,
|
|
||||||
),
|
|
||||||
rows_per_image: None,
|
rows_per_image: None,
|
||||||
},
|
},
|
||||||
wgpu::Extent3d {
|
wgpu::Extent3d {
|
||||||
|
|
Loading…
Add table
Reference in a new issue