CGxDeviceD3d::BuildPresentParameters
function · gx · primitive
- Address
0x599790· 365 bytes, up to0x5998fc- Signature
void __thiscall (CGxDeviceD3d *this, void *params, const void *format)- Meaning
- Builds the D3DPRESENT_PARAMETERS for a format: size, formats, swap, depth, multisample and interval
- Confidence
- verified, proof one
- Finding
- gx/device#present-parameters
Finding: Present parameters in gx: the device
0x599790(out, format) builds the D3DPRESENT_PARAMETERS. Windowed (format byte +7 set): width and height are the window's float size converted with __ftol, the back buffer format is the desktop's, refresh 0. Full screen: width format+0x10, height format+0x14, back buffer format 0x809ec0[format+0x24], refresh format+0x28. Always: swap effect discard (1), the window at +0x3894, auto depth stencil on with the depth format 0x809ec0[format+0xc], back buffer count format+0x18 when byte +0x2c is set and 1 otherwise, and presentation interval 1 with that byte set, immediate (0x80000000) otherwise.
The derivation is in the doc.
Callers 3
Callees 2
- __ftol crt
- CGxDevice::DrawRect gx
Calls and jumps by a bare address, from tables/calls.tsv.