Overte C++ Documentation
gpu::Batch::Cache< T > Class Template Reference

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
 

Detailed Description

template<typename T>
class gpu::Batch::Cache< T >

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.

Template Parameters
TType of the object inheriting from gpu::Object to store.

Member Data Documentation

◆ _max

template<typename T >
size_t gpu::Batch::Cache< T >::_max = BATCH_PREALLOCATE_MIN
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.


The documentation for this class was generated from the following file: