Encoded again as BC7 (3)

Random blocks are the encoders' worst case, each texel at a weight of its own; astc_bcn_glsl holds them to those numbers. The rest of those pictures keeps the usual format: the four RGB ones (diffuse, emissive, two metal and roughness maps, 4x4, 8x8 and 12x12, -esw rgb1) mix partitions of colour, and luminance blocks among colour ones; RGBA and Amberlith's whole picture hold colour and alpha. On the normal maps BC5 loses less than BC7's fast build at 6 of the 8 footprints and errs far less in alpha (Y), its two channels apart where BC7 fits lines through RGBA.

Memory and time. BC1 and BC4 take 8 bytes a 4x4 block, half a byte a texel, an eighth of RGBA8's four and half of BC7's 16; BC5 takes BC7's 16. Their encoders cost little more than the decode: on an RX 6700 XT (RADV), a level uploaded from the start of the upload to the GPU's end of it (snx-test-astc-vulkan --bench, the median of four runs after the first, which makes the pipeline; a -O0 test build, under lock.sh gpu-measure):

BlocksLevelRGBA8BC7 (fast build)BC1BC4BC5
Random 8x84096x40961.5 ms13.4 ms5.2 ms2.5 ms2.8 ms
2040x20400.7 ms4.0 ms1.5 ms0.7 ms0.9 ms
The occlusion map's 4x4, repeated4096x40964.0 ms7.7 ms4.9 ms2.8 ms3.0 ms
2040x20401.0 ms2.5 ms2.0 ms1.2 ms1.2 ms
The occlusion map's 8x8, repeated4096x40961.5 ms4.9 ms4.9 ms2.5 ms2.5 ms
2040x20400.5 ms1.2 ms1.4 ms0.8 ms0.8 ms

Made from docs/layers/gpu/astc.md at 69237645142c. GPL-3.0-or-later.