Function webrender::image_tiling::tile_range_1d
source · fn tile_range_1d(image_range: &Range<i32>, regular_tile_size: i32) -> Range<i32>
Expand description
Compute the range of tiles (in number of tiles) that intersect the provided image range (in pixels) in an arbitrary dimension.
ⓘ
0
:
#-+---+---+---+---+---+--#
#-+---+---+---+---+---+--#
^ : ^
+------------------------+ image_range
+---+ regular_tile_size