From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:KTX and KTX2 (Khronos texture)" |
|---|
| claim | "Each KTX 2 level index entry is 24 bytes: byteOffset, byteLength (compressed) and uncompressedByteLength, all uint64." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "KTX 2 files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ktxLevelIndexEntry" |
|---|
| size | "0x18" |
|---|
| variant | "KTX2" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "byteOffset" |
|---|
| notes | "from start of file" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "byteLength" |
|---|
| notes | "bytes of compressed image data in the level" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| type | "uint64_t" |
|---|
| name | "uncompressedByteLength" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct ktxLevelIndexEntry" |
|---|
| repo | "https://github.com/KhronosGroup/KTX-Software" |
|---|
| commit | "2f7a0b07024dd4b35f2bc2f4c3a25fe159a91c28" |
|---|
| path | "lib/src/ktxint.h" |
|---|
| lines | "134-141" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "KTX 2 level index entry" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:04:28.770Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:16:54.890Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read ktxLevelIndexEntry in ktxint.h at the cited commit: three uint64." |
|---|
|
|
|---|