- Add Pool iterator support - Add Pool Expandability - Add Pool::Push - Add Lithium Maths API - Remove InitPools - update spirv-helper
20 lines
415 B
C++
20 lines
415 B
C++
#include <pd/core/core.hpp>
|
|
#include <pd/lithium/pools.hpp>
|
|
|
|
namespace PD {
|
|
namespace Li {
|
|
PD::Pool<Vertex> pVtxPool;
|
|
PD::Pool<u16> pIdxPool;
|
|
|
|
PD_API Vertex* AllocateVertices(size_t count) {
|
|
return pVtxPool.Allocate(count);
|
|
}
|
|
|
|
PD_API u16* AllocateIndices(size_t count) { return pIdxPool.Allocate(count); }
|
|
|
|
PD_API void ResetPools() {
|
|
pVtxPool.Reset();
|
|
pIdxPool.Reset();
|
|
}
|
|
} // namespace Li
|
|
} // namespace PD
|