ImageDataLayout change

pull/188/head
Aevyrie 3 years ago committed by GitHub
parent b8853689fe
commit c9003caa9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,8 +70,8 @@ queue.write_texture(
// The layout of the texture
wgpu::ImageDataLayout {
offset: 0,
bytes_per_row: 4 * dimensions.0,
rows_per_image: dimensions.1,
bytes_per_row: std::num::NonZeroU32::new(4 * dimensions.0),
rows_per_image: std::num::NonZeroU32::new(dimensions.1),
},
texture_size,
);

Loading…
Cancel
Save