From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:KTX and KTX2 (Khronos texture)" |
|---|
| claim | "libktx always rejects (KTX_FILE_DATA_ERROR) BasisLZ supercompression unless the data format descriptor model is ETC1S, and UASTC_HDR_6x6 intermediate supercompression unless the model is UASTC_HDR_6x6. Only when the loader is called with KTX_TEXTURE_CREATE_CHECK_GLTF_BASISU_BIT (KHR_texture_basisu compatibility) does it also reject a model other than ETC1S or UASTC, UASTC with a supercompression other than none or Zstandard, non-2D, array or cubemap textures, base width or height not a multiple of 4, and a mip count that is neither 1 nor the full pyramid." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "KTX-Software loader at this commit" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "loading a KTX 2 file; the glTF checks only with KTX_TEXTURE_CREATE_CHECK_GLTF_BASISU_BIT" |
|---|
| effect | "KTX_FILE_DATA_ERROR when the model/supercompression pair is not allowed" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "model checks against KHR_DF_MODEL_ETC1S/UASTC and supercompression restrictions" |
|---|
| repo | "https://github.com/KhronosGroup/KTX-Software" |
|---|
| commit | "2f7a0b07024dd4b35f2bc2f4c3a25fe159a91c28" |
|---|
| path | "lib/src/texture2.c" |
|---|
| lines | "849-853, 876-886" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "KTX2 Basis Universal validation" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T08:05:14.454Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:48:13.615Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/src/texture2.c lines 835-930 at 2f7a0b0: BasisLZ-needs-ETC1S and UASTC_HDR_6x6-intermediate checks are unconditional; level count, 2D, multiple-of-4, ETC1S/UASTC model and UASTC supercompression checks are inside if (createFlags & KTX_TEXTURE_CREATE_CHECK_GLTF_BASISU_BIT)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:36:35.648Z" |
|---|
| summary | "The model/UASTC-supercompression checks sit inside 'if (createFlags & KTX_TEXTURE_CREATE_CHECK_GLTF_BASISU_BIT)', so a default load does not reject them; only the BasisLZ-requires-ETC1S check (and…" |
|---|
| changed | |
|---|
|
|
|---|