benilla-re systems structs docs

CGxDeviceD3d::BeginFrame

function · gx · host

Address
0x5a1680 · 277 bytes, up to 0x5a1794
Signature
void __thiscall (CGxDeviceD3d *this, uint32_t mask)
Meaning
Resets a lost device, clears with the mask when capability bit 6 is set and begins the scene
Confidence
verified, proof one
Finding
gx/device#direct3d-present

Finding: Direct3D present in gx: the device

0x5a1910(mask), slot +0x68, presents: it counts the frame through the base (0x592430), ends the scene (0x5a17a0), draws the cursor (slot +0x14), optionally waits for the GPU, captures if armed (0x592140), calls Present(0, 0, 0, 0) and clears [dev+0xf2c] on failure. It then runs 0x5a1680(mask): a lost device that reports not-reset is reset with new present parameters; mask clears the targets when capability bit 6 is set; BeginScene starts the next frame and sets [dev+0x3a38].

The derivation is in the doc.

Callers 3

Callees 6

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