mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Missing qualifier
This commit is contained in:
parent
adc729747b
commit
5cd42e231c
@ -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,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user