benilla-re systems structs docs

CGxDevice::DeviceOverride

function · gx · primitive

Address
0x592370 · 88 bytes, up to 0x5923c7
Signature
void __thiscall (CGxDevice *this, uint32_t slot, uint32_t value)
Meaning
Logs a device override and applies slot 8 to the fields +0x308, +0x30c and +0x310
Confidence
verified, proof one
Finding
gx/device#device-overrides

Finding: Device overrides in gx: the device

CGxDevice::DeviceOverride(slot, value) logs the pair; for slot 8 it stores value > 1 at +0x308 and +0x310 and the value as a float at +0x30c. Each backend's override calls it first. Both store slot 0 at +0x2d4 and slot 7 as value != 0 at +0x298. OpenGL also takes: slot 1 = 0 turns buffer objects off (opengl.md); slots 2 and 3 = 0 clear the buffer-object choice for the vertex and the index pools of usage 2, and slots 4 and 5 non-zero set their broker choice; slot 6 picks the texture generation of mode 6, 0x8512 when non-zero and 0x2402 when 0. Other values of slots 1 to 5 change nothing.

The derivation is in the doc.

Callers 2

Callees 1

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