CGxDeviceD3d::GetQueryParam
function · gx · host
- Address
0x59aec0· 99 bytes, up to0x59af22- Signature
uint32_t __thiscall (CGxDeviceD3d *this, void *query, uint32_t param, uint32_t *value)- Meaning
- Returns a query's result size in bytes (0) or whether its result is ready (1)
- Confidence
- verified, proof one
- Finding
- gx/slots#query-slots
Finding: Query slots in gx: the device's virtual slots
The queries are occlusion queries; the sun glare (0x7e5238) counts its samples with them.
OpenGL's result for query type 0 is the passed sample count divided by the format's sample count
+0x220; Direct3D's is the count itself.
| slot | name | base | OpenGl | Direct3D | does |
|---|---|---|---|---|---|
+0xc4 | CreateQuery | 0x594fd0 | 0x58f060 | 0x59ade0 | allocates a 16-byte query of a type, links it at +0x2858 and makes the API query |
+0xc8 | DestroyQuery | 0x595070 | 0x58f090 | 0x59ae10 | deletes the API query, unlinks and frees the record |
+0xcc | BeginQuery | pure | 0x58f0b0 | 0x59ae30 | starts counting |
+0xd0 | EndQuery | pure | 0x58f100 | 0x59ae80 | stops counting |
+0xd4 | GetQueryParam | pure | 0x58f150 | 0x59aec0 | returns the result size in bytes (0) or whether it is ready (1) |
+0xd8 | GetQueryResult | pure | 0x58f200 | 0x59af30 | returns the result |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- 0x59ad40 gx
Calls and jumps by a bare address, from tables/calls.tsv.