Gregg Tavares 2b0e1daeb1 Support uploading multiple mip levels
This only works for passing arrays. It assumes you pass
however much data is needed for mips up to the level you
want uploaded. In other words. Say your texture is 10x7 RGBA.
Then src would be a TypedArray with 10x7 + 5x3 + 2x1 + 1x1
4 byte texels or exactly 352 bytes.

If you pass (10x7 + 5x3) * 4, which is 340 bytes, then it would
only fill out the first 2 mip levels. That texture would be
unrenderable unless you (1) set filtering to not use mips or
(2) set `maxLevel` to 1 (TEXTURE_MAX_LEVEL).
2025-07-15 23:15:58 -07:00
..
2022-10-18 09:42:43 -07:00
2022-07-07 14:26:40 -07:00
2021-09-27 13:32:02 -07:00
2021-09-27 13:32:02 -07:00