benilla-re systems structs docs

CGxDeviceD3d::DeviceOverride

function · gx · orchestration

Address
0x59a440 · 63 bytes, up to 0x59a47e
Signature
void __thiscall (CGxDeviceD3d *this, uint32_t slot, uint32_t value)
Meaning
Applies a device override, then the Direct3D slots 0 and 7
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 0

None by a direct call or jump.

Callees 1

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