RenderBuffer<'Key, 'Cmd> Type
A small, allocation-friendly buffer that stores render commands tagged with a sort key.
This is the core data structure for deferred rendering. Commands are accumulated during the view phase and then sorted/executed by the renderer.
Constructors
| Constructor |
Description
|
Full Usage:
RenderBuffer(?capacity, ?keyComparer)
Parameters:
int
?keyComparer : IComparer<'Key>
Returns: RenderBuffer<'Key, 'Cmd>
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Add
Parameters:
'Key
cmd : 'Cmd
|
Adds a command with its sort key to the buffer.
|
Full Usage:
this.Clear
|
Clears all commands from the buffer without deallocating. |
Full Usage:
this.Count
Returns: int
|
The number of commands currently in the buffer.
|
Full Usage:
this[i]
Parameters:
int
Returns: 'Key * 'Cmd
|
Gets the command at the specified index as a (key, command) struct tuple.
|
Full Usage:
this.Sort
|
Sorts the buffer by key. Call this before iterating if order matters. |
Mibo