benilla-re systems structs docs

s_texBlockEdge

global · gx

Address
0x809d48 · 36 bytes, up to 0x809d6b
Type
uint32_t[9]
Meaning
Holds the block edge in texels of each GxTex format: 1 and 4 for formats 5 to 7
Confidence
verified, proof one
Finding
gx/textures#device-texture-record

Finding: Device texture record in gx: textures

0x594a80 (CGxDevice::CreateTexture, reached by through the Direct3D forwarder 0x5a0810) allocates a 0x54-byte record with SMemAlloc (CGxDevice.cpp line 0x86b), constructs it from its nine arguments (0x5915a0, which builds the flags at +0x3c), returns it through the last argument, links it into the device's texture list (head at [dev+0x2838]), adds 1 to the count at [dev+0x84] and adds the record's byte size to [dev+0x88]. 0x594ce0(record, width, height) returns that size: the top kept level (width and height shifted right by the skip count [dev+0x31c]) as blocks of the format's edge ceil(w / e) * ceil(h / e) * bytes, plus each smaller level down to 1 by 1 when the flags' low three bits exceed 1.

The derivation is in the doc.