From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:KTX and KTX2 (Khronos texture)" |
|---|
| claim | "A KTX 1 file starts with the 12-byte identifier AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A; a uint32 at offset 12 equals 0x04030201 when no byte swapping is needed (0x01020304 when swapped)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "KTX 1 (.ktx) files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A" |
|---|
| offset | "0x0" |
|---|
| meaning | "KTX 1 file identifier; endianness word at 0xC" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "KTX_IDENTIFIER_REF, KTX_ENDIAN_REF 0x04030201, KTX_ENDIAN_REF_REV 0x01020304, KTX_HEADER_SIZE 64" |
|---|
| repo | "https://github.com/KhronosGroup/KTX-Software" |
|---|
| commit | "2f7a0b07024dd4b35f2bc2f4c3a25fe159a91c28" |
|---|
| path | "lib/include/ktx.h" |
|---|
| lines | "205-208" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "KTX 1 identifier" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:04:28.470Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:22:41.344Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/include/ktx.h lines 205-208 at the commit: KTX_IDENTIFIER_REF { AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A }, KTX_ENDIAN_REF 0x04030201, KTX_ENDIAN_REF_REV 0x01020304, KTX_HEADER_SIZE 64. That the endianness word sits at offset 12 is the KTX 1 header layout, not shown in these lines." |
|---|
|
|
|---|