benilla-re systems structs docs

CGxDevice::AddFormat

function · gx · orchestration

Address
0x591220 · 64 bytes, up to 0x59125f
Signature
uint32_t __fastcall (CGxDevice *arg1, const void *record)
Meaning
Appends a format record to the list unless an equal one is held
Confidence
inferred
Finding
gx/device#display-modes

Finding: Display modes in gx: the device

0x58b740(list) fills a list of device format records (0x38 bytes) for Direct3D: for each of three adapter display formats (0x85a820: 0x17, 0x16, 0x15) it walks the adapter's modes (GetAdapterModeCount, EnumAdapterModes) and, for each depth format of 0x85a82c (0x50, 0x4d, 0x4b, 0x47) that CheckDeviceFormat accepts as a depth-stencil surface, and each sample count of 0x85a83c (0, 2, 4, ..., 16) that CheckDeviceMultiSampleType accepts for the display and the depth format, appends a record through 0x591220, which adds it when no equal one is held. 0x58bd40(list) does the OpenGL case from EnumDisplaySettings, keeping modes of 640 by 480 or more at 16 bits or more, and sorts them by area with 0x58be40.

The derivation is in the doc.

Callers 3

Callees 0

None by a direct call or jump.

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