s_d3dQueryTypes
global · gx
- Address
0x809ef4· 4 bytes, up to0x809ef7- Type
uint32_t[1]- Meaning
- Holds the Direct3D query type by query type: D3DQUERYTYPE_OCCLUSION (9) for type 0
- 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.