GxPrimRenderOne
function · gx · host
- Address
0x58a830· 12 bytes, up to0x58a83b- Signature
void __fastcall (const void *desc, uint32_t indexed)- Meaning
- Draws one 16-byte primitive record through GxPrimRender
- Confidence
- verified, proof one
- Finding
- gx/draw#draw-call
Finding: Draw call in gx: drawing
0x58a810(descs, count, indexed) loads the device and calls slot +0x78 with the same arguments; 0x58a830(descs, indexed) draws one record. Slot +0x78 is CGxDeviceOpenGl::PrimRender (0x59fc90) or CGxDeviceD3d::PrimRender (0x5a0f50). Each record is 16 bytes: +0 topology (0 points, 1 lines, 2 line strip, 3 triangles, 4 triangle strip, 5 triangle fan), +4 first vertex or start index, +8 u16 count, +0xa u16 minimum index, +0xc u16 maximum index, +0xe unused. Both refuse to draw and log invalid buf! unless every stream the attribute mask names, and for an indexed draw the index buffer at [dev+0x27ec], is a created and valid buffer (bytes +0x1c and +0x1d non-zero).
The derivation is in the doc.
Callers 53
- GxDrawCounted gx
- GxDrawCountedAgain gx
- CGxDevice::DrawCursor gx
- FlushQuads font
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Rain::DrawPatterShader lighting
- Rain::DrawDropsShader lighting
- Snow::DrawShader lighting
- Snow::DrawFixed lighting
- Sand::DrawFixed lighting
- Sand::DrawShader lighting
- Mists::Render lighting
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
- DrawDriftCloud terrain
- UpdateRipples terrain
- UpdateFootprints terrain
- UploadDetailDoodadSlot terrain
- DrawExteriorGroupBatches terrain
- DrawInteriorGroupBatches terrain
- DrawGroupVertexColors terrain
- DrawGroupUnlitTextures terrain
- DrawGroupPortals terrain
- DrawGroupFaceFlags terrain
- DrawGroupNormals terrain
- DrawInteriorGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- DrawGroupMagma terrain
- DrawQueryCells terrain
- CMapAreaLow::Draw terrain
- CMapChunk::DrawLayers terrain
- CMapChunk::DrawLayersShader terrain
- CMapChunk::DrawFlat terrain
- SWING::Step playername
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- RenderBox4Pass ffxeffects
- RenderGauss4Pass ffxeffects
- RenderGlowPass ffxeffects
- RenderGlowWavePass ffxeffects
- RenderDeathPass ffxeffects
- RenderDeathCombinerPass ffxeffects
- DrawDecalBatches lighting
- M2DrawBatch models
- M2DrawBatchedRun models
- CParticleEmitter2::Render models
- QueryGlareOcclusion lighting
- DrawGlare lighting
- DrawDisc lighting
- DrawSkyGradient lighting
- DrawClouds lighting
Callees 1
- GxPrimRender gx
Calls and jumps by a bare address, from tables/calls.tsv.