mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-23 18:06:34 +11:00
Fix the headless example for wgpu 0.16
This commit is contained in:
parent
bc903d1c3b
commit
51f00fbd1f
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
use std::{
|
||||
fs::File,
|
||||
num::NonZeroU32,
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
|
@ -189,7 +188,7 @@ async fn render(mut scenes: SceneSet, index: usize, args: &Args) -> Result<()> {
|
|||
buffer: &buffer,
|
||||
layout: wgpu::ImageDataLayout {
|
||||
offset: 0,
|
||||
bytes_per_row: NonZeroU32::new(padded_byte_width),
|
||||
bytes_per_row: Some(padded_byte_width),
|
||||
rows_per_image: None,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue