Missing qualifier

This commit is contained in:
Aevyrie 2021-06-06 10:32:38 -07:00 committed by GitHub
parent adc729747b
commit 5cd42e231c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,8 +492,8 @@ impl Texture {
rgba, rgba,
wgpu::ImageDataLayout { wgpu::ImageDataLayout {
offset: 0, offset: 0,
bytes_per_row: NonZeroU32::new(4 * dimensions.0), bytes_per_row: std::num::NonZeroU32::new(4 * dimensions.0),
rows_per_image: NonZeroU32::new(dimensions.1), rows_per_image: std::num::NonZeroU32::new(dimensions.1),
}, },
size, size,
); );