Function getMaxValidTextureSizeForFormatAndDimension
getMaxValidTextureSizeForFormatAndDimension(device, format, dimension): [number, number, number]
Returns the maximum valid size in each dimension for a given texture format.
This is useful because compressed formats must be a multiple of blocks in size
so, for example, the largest valid width of a 2d texture
roundDown(device.limits.maxTextureDimension2D, blockWidth)
Returns the maximum valid size in each dimension for a given texture format. This is useful because compressed formats must be a multiple of blocks in size so, for example, the largest valid width of a 2d texture roundDown(device.limits.maxTextureDimension2D, blockWidth)