benilla-re systems structs docs

TexelBufferCallback

function · gxumath · primitive

Address
0x5c5350 · 119 bytes, up to 0x5c53c6
Signature
void __fastcall (int mode, uint32_t width, uint32_t arg3, uint32_t arg4, uint32_t arg5, void *owner, uint32_t *pitch, void **data)
Meaning
Fills the 256-byte texel buffer with a dword, or returns its pitch and address, for a texture of 8 by 8
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.

Callers 0

None by a direct call or jump.

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.