Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Choose smaller texture sizes (#3912)
The old code did an lcm of width vs height where for for cubemaps because cubemaps must be square and textures must be a multiple of block sizes. With a format with a blockSize of 5x8 and a minSize of 32 that would end up doing lcm of 35x32 which is 1120. Then for a cube array it would end up allocating 1120x1120x24 and if the format is rgba32float that's 418meg. The new code just gets the lcm of the blockWidth vs blockHeight and then aligning to that which will be much much smaller.
- Loading branch information