Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
Adaptive scalable texture compression
Lossy texture compression scheme

Adaptive scalable texture compression (ASTC) is a lossy block-based texture compression algorithm developed by Jørn Nystad et al. of ARM Ltd. and AMD.

Full details of ASTC were first presented publicly at the High Performance Graphics 2012 conference, in a paper by Olson et al. entitled "Adaptive Scalable Texture Compression".

ASTC was adopted as an official extension for both OpenGL and OpenGL ES by the Khronos Group on 6 August 2012.

We don't have any images related to Adaptive scalable texture compression yet.
We don't have any YouTube videos related to Adaptive scalable texture compression yet.
We don't have any PDF documents related to Adaptive scalable texture compression yet.
We don't have any Books related to Adaptive scalable texture compression yet.
We don't have any archived web articles related to Adaptive scalable texture compression yet.

Hardware support

Vendor/productProfileGeneration
AMD Radeon?
Apple GPUsLDR onlyA8 through A124
FullSince A135
Arm MaliFullSince Mali-T620/T720/T8206
Imagination PowerVRFullSince Series6XT7
Intel GPUsFull8From Skylake9 ; Removed in Arc / Gen12.510
Nvidia Tegra?Since Kepler11
Qualcomm AdrenoFullLDR since 4xx series,12 at least 7xx series support GL_KHR_texture_compression_astc_hdr extension on Android 13

On Linux, all Gallium 3D drivers have a software fallback since 2018, so ASTC can be used on any AMD Radeon GPU.13

Overview

The method of compression is an evolution of Color Cell Compression with features including numerous closely spaced fractional bit rates, multiple color formats, support for high-dynamic-range (HDR) textures, and real 3D texture support.

The stated primary design goal for ASTC is to enable content developers to have better control over the space/quality tradeoff inherent in any lossy compression scheme. With ASTC, the ratio between adjacent bit rates is of the order of 25%, making it less expensive to increase quality for a given texture.

Encoding different assets often requires different color formats. ASTC allows a wide choice of input formats, including luminance-only, luminance-alpha, RGB, RGBA, and modes optimized for surface normals. The designer can thus choose the optimal format without having to support multiple different compression schemes.

The choices of bit rate and color format do not constrain each other, so that it's possible to choose from a large number of combinations.

Despite this flexibility, ASTC achieves better peak signal-to-noise ratios than PVRTC, S3TC, and ETC2 when measured at 2 and 3.56 bits per texel.14 For HDR textures, it produces results comparable to BC6H at 8 bits per texel.15

Supported color formats

ASTC supports anywhere from 1 to 4 channels. In modes with 2–4 channels, one of the channels can be treated as "uncorrelated" and be given a separate gradient for prediction. In any case, the data is decoded as RGBA.16

Channel countRGBA interpretationDescription
1LLuminance-only: RGB set to same value in decoded buffer, alpha set to 1
2LALuminance with transparency
2L+ALuminance with uncorrelated transparency
3RGBFull color, alpha set to 1
3RG+BFull color with uncorrelated blue (not actually used for color purposes)
4RGBAFull color with transparency
4RGB+AFull color with uncorrelated transparency

Each of these may be encoded as low or high dynamic range. The encoder selects color formats independently for each block in the image.

In practice, ASTC may be used to represent data other than color. For example, the L+A format may be used to represent "X+Y", a normal map with uncorrelated components; the "RG+B" format can be used to represent XY+Z.17 The astc-encoder software supplied by ARM supports "X+Y" generation with the -normal option. The shader is expected to treat the decoded output as a swizzled texture.18

2D block footprints and bit rates

ASTC textures are compressed using a fixed block size of 128 bits, but with a variable block footprint ranging from 4×4 texels up to 12×12 texels. The available bit rates thus range from 8 bits per texel down to 0.89 bits per texel, with fine steps in between.

Block footprintBit rateIncrement
4×48.0025%
5×46.4025%
5×55.1220%
6×54.2720%
6×63.5614%
8×53.2020%
8×62.675%
10×52.5620%
10×62.137%
8×82.0025%
10×81.6025%
10×101.2820%
12×101.0720%
12×120.89

In the above table, the "Increment" column shows the additional storage required to store a texture using this bit rate, as compared to the next smallest. Block footprints are presented as width × height.

3D block footprints and bit rates

ASTC 3D textures are compressed using a fixed block size of 128 bits, as for 2D but with a variable block footprint ranging from 3×3×3 texels up to 6×6×6 texels. The available bit rates thus range from 4.74 bits per texel down to 0.59 bits per texel, with fine steps in between.

Block footprintBit rateIncrement
3×3×34.7433%
4×3×33.5633%
4×4×32.6733%
4×4×42.0025%
5×4×41.6025%
5×5×41.2825%
5×5×51.0220%
6×5×50.8520%
6×6×50.7120%
6×6×60.59

Block footprints are presented as width × height × depth.

Universal ASTC

UASTC (Universal ASTC) is a subset of ASTC specified by Binomial. The format is used in their Basis Universal "supercompressed" GPU texture format, which adds extra compression over compressed texture formats such as UASTC and ETC1S and allows for efficient conversion from UASTC/ETC1S to compressed texture formats directly usable by GPUs.19 UASTC, as part of Basis Universal, is part of the KTX (Khronos Texture) file format.20

See also

References

  1. "Adaptive Scalable Texture Compression (ASTC) technology developed by ARM and AMD". https://www.arm.com/products/multimedia/mali-technologies/adaptive-scalable-texture-compression.php

  2. "Adaptive Scalable Texture Compression" (PDF). HPG 2012. Retrieved 2012-06-27. https://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/readings/nystad12_astc.pdf

  3. "Khronos Releases ATSC Next-Generation Texture Compression Specification". The Khronos Group Inc. 2012-08-06. Retrieved 2012-08-06. http://www.khronos.org/news/press/khronos-releases-atsc-next-generation-texture-compression-specification

  4. "Metal Feature Set Tables" (PDF). Apple Inc. 2020-10-21. Retrieved 2021-08-31. https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf

  5. "Metal Feature Set Tables" (PDF). Apple Inc. 2020-10-21. Retrieved 2021-08-31. https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf

  6. "Arm Mali GPU Datasheet" (PDF). Arm Limited. 2021. Retrieved 2021-08-31. https://developer.arm.com/-/media/Arm%20Developer%20Community/PDF/Mali%20GPU%20datasheet/Arm%20Mali%20GPU%20Datasheet%202021.pdf?revision=d3378de8-806b-4920-897c-e295509847b3

  7. "Imagination's new generation PowerVR Series6XT architecture delivers up to 50% higher performance and advanced power management". Imagination Technologies. 2014-01-06. Retrieved 2021-08-21. https://www.imaginationtech.com/news/press-release/imaginations-new-generation-powervr-series6xt-architecture-delivers-up-to-50-higher-performance-and-advanced-power-management/

  8. "Intel Skylake Adds ASTC Texture Compression, Open-Source Support Coming". Phoronix. 2015-05-20. Retrieved 2021-08-31. https://www.phoronix.com/scan.php?page=news_item&px=ASTC-Skylake-Intel-Mesa

  9. "Graphics API Developer's Guide For 6th Generation Intel Core Processors". Archived from the original on 2017-07-20. https://web.archive.org/web/20170720043433/https://software.intel.com/en-us/articles/6th-gen-graphics-api-dev-guide

  10. Michael Larabel (2021-10-07). "Intel Removes ASTC Hardware From Gen12.5+ Graphics". Phoronix. Retrieved 2022-07-10. https://www.phoronix.com/scan.php?page=news_item&px=Intel-Gen12.5-No-ASTC

  11. "Vulkan API" (PDF). http://on-demand.gputechconf.com/siggraph/2015/presentation/SIG1501-Piers-Daniell.pdf

  12. "Qualcomm Adreno OpenGL ES Developer Guide" (PDF). Qualcomm. 2015-05-01. Retrieved 2021-08-31. https://developer.qualcomm.com/qfile/28557/80-nu141-1_b_adreno_opengl_es_developer_guide.pdf

  13. "[Mesa-dev] [PATCH 0/7] ASTC texture compression for all Gallium drivers". Lists.freedesktop.org. 23 July 2018. Retrieved 2022-09-01. https://lists.freedesktop.org/archives/mesa-dev/2018-July/200867.html

  14. "Adaptive Scalable Texture Compression" (PDF). HPG 2012. Retrieved 2012-06-27. https://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/readings/nystad12_astc.pdf

  15. "Adaptive Scalable Texture Compression" (PDF). HPG 2012. Retrieved 2012-06-27. https://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/readings/nystad12_astc.pdf

  16. "Khronos Data Format Specification v1.1 rev 9". registry.khronos.org. https://registry.khronos.org/DataFormat/specs/1.1/dataformat.1.1.html#ASTC

  17. "Khronos Releases ASTC Next-Generation Texture Compression Specification". The Khronos Group. 6 August 2012. https://www.khronos.org/news/press/khronos-releases-atsc-next-generation-texture-compression-specification

  18. "Effective ASTC Encoding [astc-encoder/Docs/Encoding.md at 2042cfc1a507c0414fb41dce1603ed53c503a0da · ARM-software/astc-encoder]". GitHub. The best way to store normal maps using ASTC is similar to the scheme used by BC5; store the X and Y components of a unit-length normal. The Z component of the normal can be reconstructed in shader code based on the knowledge that the vector is unit length. To encode this we need to store only two input components in the compressed data, and therefore use the rrrg coding swizzle to align the data with the ASTC luminance+alpha endpoint. https://github.com/ARM-software/astc-encoder/blob/2042cfc1a507c0414fb41dce1603ed53c503a0da/Docs/Encoding.md

  19. "UASTC Texture Specification". GitHub. https://github.com/BinomialLLC/basis_universal/wiki/UASTC-Texture-Specification

  20. "KTX - GPU Texture Container Format". The Khronos Group. 16 April 2021. https://www.khronos.org/ktx/