RenderBuffer3D Type
An allocation-friendly buffer for 3D render commands.
Commands are accumulated each frame via RenderBuffer3D.Add, then executed in insertion order by the active pipeline. The pipeline may re-sort internally if needed for state efficiency (e.g., front-to-back, material batching), but the buffer itself does not impose an order. Uses ArrayPool for the backing store to avoid per-frame heap allocations. The buffer is designed to be cleared and repopulated each frame. RenderBuffer3D.Clear resets the count without deallocating the internal array.
Constructors
| Constructor |
Description
|
|
|
Instance members
| Instance member |
Description
|
Adds a render command to the buffer.
|
|
Full Usage:
this.Clear
|
Clears all commands from the buffer without deallocating the backing array. Call this at the start of each frame before populating with new commands. |
Full Usage:
this.Count
Returns: int
|
The number of commands currently in the buffer.
|
Mibo.Raylib