GxBufUnlock
function · gx · host
- Address
0x58a0a0· 27 bytes, up to0x58a0ba- Signature
void __fastcall (void *buffer, uint32_t bytes)- Meaning
- Unlocks a buffer through the device's slot +0xac and marks it valid
- Confidence
- verified, proof one
- Finding
- gx/draw#interleaving-helper
Finding: Interleaving helper in gx: drawing
0x58a3d0(count, pos, posStride, normal, normalStride, colour, colourStride, tex0, tex0Stride, tex1, tex1Stride) creates a vertex buffer of count vertices and fills it from strided arrays. It picks the format from which of normal, colour, texcoord 0 and texcoord 1 are non-null: none 0; normal 1; normal and colour 2; normal and tex0 3; normal, colour, tex0 4; normal, tex0, tex1 5; all four 6; colour 7; colour and tex0 8; colour, tex0, tex1 9; tex0 10; tex0 and tex1 11; texcoord 1 without texcoord 0 gives 1. Position and normal copy 12 bytes, texture coordinates 8. A colour copies as the dword, except that when the capability block's +0x1c equals 1 its bytes are reordered from AARRGGBB to AABBGGRR.
The derivation is in the doc.
Callers 50
- GxBuildVertices gx
- CGxDevice::DrawCursor gx
- GxuFontFrame unassigned
- FlushQuads font
- CGxStringBatch::DrawRun font
- FillQuadIndices font
- CGUnit_C::DrawBowstring objectlayer
- DrawFishingLine objectlayer
- BakeRainPacket lighting
- BakePatterPacket lighting
- Rain::DrawPatterFixed lighting
- Rain::DrawDropsFixed lighting
- Snow::BakePacket lighting
- Snow::DrawFixed lighting
- Sand::BakePacket lighting
- Sand::DrawFixed lighting
- Mists::Render lighting
- CChunkLiquid::BuildStrip terrain
- CChunkLiquid::DrawOcean terrain
- CChunkLiquid::DrawRiver terrain
- CChunkLiquid::DrawMagma terrain
- DrawDriftCloud terrain
- UpdateRipples terrain
- UpdateFootprints terrain
- FillDetailDoodadVertices terrain
- FillDetailDoodadIndices terrain
- DrawInteriorGroupLiquid terrain
- DrawExteriorGroupLiquid terrain
- DrawGroupMagma terrain
- VertexBufferBlockFill models
- CMapAreaLow::FillVertices terrain
- FillLowDetailIndices terrain
- CMapChunk::CopyLodVertices terrain
- CMapChunk::FillLodVertices terrain
- SWING::Step playername
- PLAYERNAMEDESC::UpdatePlate playername
- WorldTextDrawIcons playername
- RenderGlowWavePass ffxeffects
- BuildQuadVertices ffxeffects
- WriteDecalVerticesColoured lighting
- WriteDecalVertices lighting
- WriteDecalIndices lighting
- M2DrawBatchedRun models
- CM2Model::FillIndexBuffer models
- CM2Model::FillVerticesTwoTexCoords models
- CM2Model::FillVertices models
- CM2Shared::CreateIndexBuffer models
- CM2Shared::CreateVertexBuffer models
- ParticleFillQuadIndices models
- CParticleEmitter2::Render models
Callees 1
- 0x58a030 gx
Calls and jumps by a bare address, from tables/calls.tsv.