The template cache mechanism for the gpu::Object passed to the gpu::Batch. More...
#include <Batch.h>
Classes | |
| class | Vector |
| Templated container for objects inheriting from gpu::Object. More... | |
Static Public Attributes | |
| static size_t | _max = BATCH_PREALLOCATE_MIN |
The template cache mechanism for the gpu::Object passed to the gpu::Batch.
This allows us to have one cache container for each different types and eventually be smarter how we manage them.
| T | Type of the object inheriting from gpu::Object to store. |
|
static |
GPU object cashes in Batch structures keep track of how much memory needs to be preallocated. Since it's a static member, it's defined here.