Expand description
Allocation-free KTX2 container metadata and level-range parser (native + WASM). Allocation-free KTX2 container metadata and level-range parser (native + WASM).
Structs§
- Ktx2
Document - A borrowed KTX2 container. Every exposed section has passed checked bounds and overlap tests.
- Ktx2
Level - One level-index record and its compressed/encoded byte range.
Enums§
- Hardware
Compressed Upload Format - Hardware-native compressed GPU texture format for direct zero-inflation
wgpuupload. - Ktx2
Color Space - Transfer-function information that is safe to carry across a decode/transcode boundary.
- Ktx2
Error - Structural error found while inspecting a KTX2 byte stream.
- Ktx2
Supercompression - The KTX2 supercompression schemes understood by the container parser.
- Ktx2
Transcode Source - A source encoding which requires a real transcoder before it can become RGBA8.
Constants§
- KTX2_
IDENTIFIER - The 12-byte identifier mandated by the KTX2 container format.
Functions§
- select_
hardware_ compressed_ format - Select a direct hardware-compressed upload format when the KTX2 document’s
vk_formatmatches an enabled GPU compression feature (BC,ASTC, orETC2), avoiding CPU RGBA8 inflation.