benilla-re systems structs docs

BindGroupBuffers

function · terrain · host

Address
0x6b4da0 · 358 bytes, up to 0x6b4f05
Signature
uint8_t __thiscall (void *this, void *group, uint32_t pass)
Meaning
Binds a group's vertex and index data from pool blocks or its own arrays
Confidence
verified, proof one
Finding
terrain/groupdraw#batch-buffers-and-cull

Finding: Batch buffers and cull in terrain: map object draw

A batch is drawn only when the volume does not cull its box, and only once a frame. 0x6b4d10 tests the box of 16-bit values against the current volume with 0x682f40. 0x6b4da0(group, format) binds the group's vertex and index data: a block from the group vertex pool (age set to 30.0 at each bind, filled when new) and one from the index pool, or the group's own arrays when no block is free. 0x6b5140 makes the draw record of a batch: primitive 3 (triangles), or 4 (strip) when the strip switch 0xc96304 (world flag 0x10000 at map load) is set and bit 0 of the batch flag is.

The derivation is in the doc.

Callers 2

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.