Skip to main content

Module engine

Module engine 

Source
Expand description

Compression and decompression orchestration

Implements tile-based compression using 64KB tiles with GDeflate encoding. Compression runs on the CPU (crate::gdeflate::gdeflate_compress_tile). Decompression can run on GPU (via crate::backend::ComputeBackend) or CPU fallback.

Structs§

EngineConfig
Runtime configuration for the GPU compression engine.
TileIndex
Loaded tile index for O(1) tile lookup.

Functions§

compress
Compress input into a GPU-format archive.
decompress
Decompress a GPU-format archive back to the original bytes.
decompress_tile_by_index
Decompress a single tile by index from a GPU archive.
load_tile_index
Load the tile index from a GPU archive without decompressing any tiles.