CGxDeviceD3d::EnumerateFormats
function · gx · host
- Address
0x58b740· 718 bytes, up to0x58ba0d- Signature
uint32_t __thiscall (CGxDeviceD3d *this)- Meaning
- Lists the Direct3D modes, depth formats and sample counts the adapter supports as 0x38-byte format records
- Confidence
- verified, proof one
- 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 1
Callees 5
- 0x5898d0 gx
- 0x58b6a0 gx
- CGxDevice::AddFormat gx
- CGxDeviceD3d::LoadD3d gx
- 0x598eb0 gx
Calls and jumps by a bare address, from tables/calls.tsv.