ConstructVboBroker
function · gx · primitive
- Address
0x58dab0· 356 bytes, up to0x58dc13- Signature
void * __thiscall (void *this, uint32_t target, uint32_t maxSize, void *device)- Meaning
- Builds a VBO broker: sets of stream buffers of each power-of-two size from 2^12 up to 2^maxSize bytes
- Confidence
- verified, proof one
- Finding
- gx/opengl#pool-buffers-and-the-broker
Finding: Pool buffers and the broker in gx: the OpenGL context and extensions
CGxDeviceOpenGl::CreatePoolAPI(pool) backs a pool with system memory of its size when buffer
objects are off. Otherwise, by the pool's kind (0 vertex, 1 index) and usage, a device table
chooses a broker, one buffer object of the pool's size, or system memory. A broker holds, for each
power-of-two size 2^k from 2^12 bytes to 2^20 (vertex) or 2^17 (index), 1200 >> (k − 10) buffers
above 2^12, 1200 at 2^12 and 32 at 2^18, each given its size with no data and GL_STREAM_DRAW_ARB.
The derivation is in the doc.
Callers 1
Callees 2
- DebugPrintStub unassigned
- 0x58da50 gx
Calls and jumps by a bare address, from tables/calls.tsv.