About this project

TxtgSharp is a C# reader designed to handle TexToGo (.txtg) texture containers used in Tears of the Kingdom. The library outputs texture surfaces that are deswizzled but remain in block-compressed formats, allowing developers to directly upload them to GPUs that support these formats or decode them on the CPU when necessary. The implementation relies solely on ZstdSharp.Port for decompression. The package includes a command-line interface (CLI) for inspecting texture headers, formats, and sizes, as well as for dumping ASTC layers into PNG images. It supports querying texture dimensions, layer counts, mip levels, and format details, and provides iteration over surfaces ordered by array layer. The project is derived from the EPD-Libraries/txtg repository.