Files
palladium/source/lithium/pools.cpp
T
tobid7 fc76a4f3fe Add Drawlist
- Add Pool iterator support
- Add Pool Expandability
- Add Pool::Push
- Add Lithium Maths API
- Remove InitPools
- update spirv-helper
2026-09-06 16:06:14 +02:00

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