Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
29 lines
715 B
C++
29 lines
715 B
C++
#include "Render/Primitives/RenderCommandPool.h"
|
|
|
|
#include <new>
|
|
|
|
// OFFSET: 0x00560A40
|
|
// FUNCTION: fn_02161
|
|
RenderCommandPool::RenderCommandPool() {
|
|
this->m_commands.resize(1024);
|
|
this->m_current = this->m_commands.begin();
|
|
}
|
|
|
|
// OFFSET: 0x00CA63D0
|
|
// FUNCTION: fn_20958
|
|
RenderCommand* RenderCommandPool::Acquire() {
|
|
if (this->m_current == this->m_commands.end()) {
|
|
this->m_commands.emplace_back();
|
|
this->m_current = this->m_commands.end();
|
|
return &this->m_commands.back();
|
|
}
|
|
|
|
RenderCommand* command = &*this->m_current++;
|
|
return new (command) RenderCommand;
|
|
}
|
|
|
|
// OFFSET: 0x0055A360
|
|
// FUNCTION: fn_02079
|
|
void RenderCommandPool::Rewind() {
|
|
this->m_current = this->m_commands.begin();
|
|
}
|