benilla-re systems structs docs

GxDevGetTextureSkip

function · gx · orchestration

Address
0x589c50 · 11 bytes, up to 0x589c5a
Signature
uint32_t __cdecl (void)
Meaning
Returns the device's mip skip count through 0x5920c0
Confidence
verified, proof one
Finding
gx/facade#texture-mip-skip

Finding: Texture mip skip in gx: facade calls

0x589bf0(levels) calls slot +0x2c (SetTextureSkip). Both backends call 0x592050, which stores the count at +0x31c, and then recreate every texture (slots.md, Life cycle slots). 0x589c50 returns +0x31c through 0x5920c0. The constructor stores 0, and nothing else in the device files writes it. The one caller of 0x589bf0 is the baseMip callback 0x689090, which compares the new value with 0x589c50's: an equal level returns 1 at once, a level outside 0 to 1 prints BaseMip must be 0 or 1 and returns 0, and 0 or 1 is applied and printed as BaseMip level changed to %d. The uploads read it at 0x59f6d1 (OpenGL) and 0x5a08fc (Direct3D).

The derivation is in the doc.

Callers 2

Callees 1

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