#ifndef RAGNAROK_SOURCE_RENDER_PRIMITIVES_RENDERCOMMANDPOOL_H #define RAGNAROK_SOURCE_RENDER_PRIMITIVES_RENDERCOMMANDPOOL_H #include "Render/Primitives/RenderPrimitive.h" #include class RenderCommandPool { public: // INLINED __forceinline RenderCommandPool() { this->m_commands.resize(1024, RenderCommand()); this->m_current = this->m_commands.begin(); } RenderCommand* Acquire(); void Rewind(); private: /* 0050 */ std::deque m_commands; /* 0064 */ std::deque::iterator m_current; }; // INLINED inline void RenderCommandPool::Rewind() { this->m_current = this->m_commands.begin(); } #if defined(_WIN32) && !defined(_WIN64) static_assert(sizeof(RenderCommandPool) == 32); #endif #endif