From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:GX texture formats (GameCube and Wii)" |
|---|
| claim | "noclip lays mip levels back to back: each level's size is its block-padded size but at least 32 bytes, width and height halve per level; a trailing level whose data is shorter than the padded size is dropped (workaround for a Retro Studios mipmap encoder that emitted one block for a 4x8 level)." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "GameCube and Wii GX" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "calcMipChain" |
|---|
| effect | "offset of level n = sum of max(calcTextureSize, 32) of the levels before it" |
|---|
| condition | "noclip's reader; Unverified: whether every game's container follows this packing" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "calcMipChain read whole" |
|---|
| repo | "https://github.com/magcius/noclip.website" |
|---|
| commit | "fd973ff240233c63883750a557c62baf6ff2a6c7" |
|---|
| path | "src/gx/gx_texture.ts" |
|---|
| lines | "75-108" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Mip chain layout" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T17:08:34.437Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:46:45.410Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read calcMipChain (gx_texture.ts 75-108) at fd973ff: mipOffs += max(mipSize, 32), width/height /= 2, break when data is non-null and mipSize > data.byteLength (so the check only applies when data is present, and the break ends the whole chain)." |
|---|
| notes | "The data-present condition is the only nuance the claim leaves implicit." |
|---|
|
|
|---|