Introduce ColorMode for Atlas

This commit is contained in:
Héctor Ramón Jiménez 2023-06-01 03:08:54 +02:00 committed by Josh Groves
parent 80e8465af6
commit 9f82af4f7d
3 changed files with 83 additions and 13 deletions

View file

@ -147,7 +147,7 @@ impl TextRenderer {
&image.data,
ImageDataLayout {
offset: 0,
bytes_per_row: Some(width as u32 * inner.num_atlas_channels as u32),
bytes_per_row: Some(width as u32 * inner.num_channels() as u32),
rows_per_image: None,
},
Extent3d {