CGxDevice::MarkTextureDirty
function · gx · orchestration
- Address
0x594b90· 168 bytes, up to0x594c37- Signature
void __thiscall (CGxDevice *this, CGxTexture *texture, const int32_t *rect, uint32_t immediate)- Meaning
- Marks a texture dirty, grows its dirty rectangle by a rectangle and uploads it at once when asked
- Confidence
- verified, proof one
- Finding
- gx/slots#texture-state-and-cursor-slots
Finding: Texture, state and cursor slots in gx: the device's virtual slots
Slot +0 uploads a texture whose dirty byte +0 is set, and the base counts the upload. Slot
+0x18, not slot +0, is the deleting destructor (Life cycle slots).
| slot | name | base | OpenGl | Direct3D | does |
|---|---|---|---|---|---|
+0x00 | LoadTexture | 0x594c80 | 0x59f5b0 | 0x5a0d70 | uploads a dirty texture; the base adds 1 to +0x8c and the dirty rectangle's bytes to +0x90, then clears the byte |
+0x04 | ApplyRenderState | pure | 0x59d350 | 0x5a2f00 | applies one render state (renderstate.md) |
+0x08 | ApplyShaderParams | pure | 0x59ee60 | 0x5a0420 | uploads each changed parameter of a shader's list, or every one when forced |
+0x0c | CreateCursor | 0x595640 | base | 0x59a960 | picks the hardware or the software cursor and makes its 32 by 32 texture |
+0x10 | DestroyCursor | 0x5956d0 | base | 0x59a9e0 | frees the cursor texture |
+0x14 | DrawCursor | 0x5956f0 | base | 0x59a870 | draws the software cursor, or hands the hardware cursor its image (Cursor) |
The derivation is in the doc.
Callers 4
- GxTexMarkRectDirty gx
- 0x594dd0 gx
- CGxDeviceOpenGl::RecreateTextures gx
- CGxDeviceD3d::RecreateTextures gx
Callees 1
- 0x5977f0 gx
Calls and jumps by a bare address, from tables/calls.tsv.