ARM-software / astc-encoder

The Arm ASTC Encoder, a compressor for the Adaptive Scalable Texture Compression data format.
https://developer.arm.com/graphics
Apache License 2.0
1.08k stars 241 forks source link

Fix sRGB alpha precision, and use correct decode_unorm8 rounding #448

Closed solidpixel closed 11 months ago

solidpixel commented 11 months ago

The compressor does not currently correctly handle sRGB alpha component values, which should decompress to an fp16 value, or reflect the decode_unorm8 extension behavior when writing to an 8-bit per component output image.

This PR attempts to improve this so that: