RenderVaoPool class
#include <nCine/Graphics/RenderVaoPool.h>
Pool of reusable Vertex Array Objects.
Caches VAOs keyed by their vertex format so the same configuration can be rebound across frames instead of recreated. When the pool is full the least recently used binding is recycled.
Constructors, destructors, conversion operators
-
RenderVaoPool(std::
uint32_t vaoPoolSize) explicit
Public functions
- void BindVao(const GLVertexFormat& vertexFormat)
- Binds a VAO matching the specified vertex format, reusing a pooled one or creating it.