GxRsSetWord
function · gx · orchestration
- Address
0x589e00· 43 bytes, up to0x589e2a- Signature
void __fastcall (uint32_t id, uint32_t unused, uint32_t arg3)- Meaning
- Sets a one-word render state through the device, rejecting an id of 0x46 or more
- Confidence
- verified, proof one
- Finding
- gx/renderstate#cache-dirty-list-and-stack
Finding: Cache, dirty list and stack in gx: render state
An entry holds four value dwords (+0 to +0xc), a stack generation (+0x10) and a dirty flag (+0x14). The setters (0x593710 integers, 0x593770 floats, 0x5937b0, 0x5937e0 and 0x593840 other values) compare with the cached value and on a change call 0x594010 and store. 0x594010 appends the id to the dirty list ([dev+0x2c], count [dev+0x28]) once, and when the entry's generation differs from the device's ([dev+0x18]) pushes the old value as an undo record. Setting id 7 also sets id 8 to 0x85ad20[mode].
The derivation is in the doc.
Callers 26
- CWorld::SetFogState terrain
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Rain::DrawPatterShader lighting
- Rain::DrawDropsShader lighting
- DrawOceanPass terrain
- DrawRiverPass terrain
- BeginDetailDoodadPass terrain
- DrawDetailDoodadBatch terrain
- DrawExteriorGroupBatches terrain
- DrawInteriorGroupBatches terrain
- DrawGroupPortals terrain
- DrawGroupFaceFlags terrain
- DrawGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- CMapAreaLow::Draw terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- CMapChunk::DrawFlat terrain
- WorldTextDrawIcons playername
- DrawDecalBatches lighting
- DrawBlobShadow lighting
- M2DrawSetLighting models
- M2DrawSetMaterial models
- M2LightingSetDeviceLights models
- LightningBolt::Render gx
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.