Index

ASTC textures are decoded on the GPU by a compute shader, src/nx/gpu/texture/astc.comp with its body in astc_decode.glsl. It is a GLSL port of Eden's src/video_core/host_shaders/astc_decoder.comp (GPL-3.0-or-later, with yuzu's GPL-2.0-or-later parts). The CPU decoder in tests/support/astc.c is a C port of Eden's src/video_core/textures/astc.cpp, which carries the University of North Carolina at Chapel Hill's Apache-2.0 decoder (FasTC). The tests use it as the reference the shader must match byte for byte, and the runtime runs it only for the background encodes on the CPU (Very large levels).


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