benilla-re systems structs docs

s_texelBuffer

global · gxumath

Address
0xc2b860 · 256 bytes, up to 0xc2b95f
Type
uint32_t[64]
Meaning
Holds the 8 by 8 texel buffer that 0x5c5350 fills and hands out
Confidence
verified, proof one
Finding
gxumath#texel-buffer-callback

Finding: Texel buffer callback in gxumath

0x5c5350 is a data callback that three places pass to a texture creation function with an 8 by 8 size: 0x44a929 and 0x5996d6 to 0x448450, 0x4c0d49 to 0x58aa30 (call at 0x4c0d5d). With ecx 0 it fills the 64 dwords of the buffer 0xc2b860 with the dword at [ebp+0x14]; with ecx 1 it stores 4·edx to the pointer at [ebp+0x18] and the buffer's address to the pointer at [ebp+0x1c]; other values do nothing (ret 0x18). The first call clears the buffer and registers 0x5c53d0, a bare ret, with 0x409aef.

The derivation is in the doc.