Document the BC1 tile row bounds

Signed-off-by: katherinebytes <rebooteduck+kr@gmail.com>
This commit is contained in:
katherinebytes committed 2026-11-24 19:23:26 +00:00
1 parent 14d5083f0f
commit 82cb66e80f
1 file changed
+1
+1
View File
@@ -106,6 +106,7 @@ impl<'a> TiledBc1<'a> {
blocks
.try_reserve_exact(width * height * BLOCK_BYTES)
.map_err(|_| TextureError::AllocationFailed)?;
// Construction requires the exact padded length, so each selected tile row is in bounds.
for y in 0..height {
let row_start =
base + (y / TILE_BLOCKS) * tile_row_stride + (y % TILE_BLOCKS) * TILE_ROW_BYTES;