| 39 | public: |
| 40 | RenderCommandPool() {} |
| 41 | ~RenderCommandPool() |
| 42 | { |
| 43 | // if( 0 != _usedPool.size()) |
| 44 | // { |
| 45 | // AXLOGD("All RenderCommand should not be used when Pool is released!"); |
| 46 | // } |
| 47 | _freePool.clear(); |
| 48 | for (auto&& allocatedPoolBlock : _allocatedPoolBlocks) |
| 49 | { |
| 50 | delete[] allocatedPoolBlock; |
| 51 | allocatedPoolBlock = nullptr; |
| 52 | } |
| 53 | _allocatedPoolBlocks.clear(); |
| 54 | } |
| 55 | |
| 56 | T* generateCommand() |
| 57 | { |