MCPcopy Create free account
hub / github.com/InoriRus/Kyty / BufferInit

Method BufferInit

source/emulator/src/Graphics/GraphicsRun.cpp:536–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void CommandProcessor::BufferInit()
537{
538 Core::LockGuard lock(m_mutex);
539
540 if (m_current_buffer < 0)
541 {
542 for (auto& buf: m_buffer)
543 {
544 EXIT_IF(buf != nullptr);
545
546 buf = new CommandBuffer(m_queue);
547 buf->SetParent(this);
548 // buf->SetQueue(m_queue);
549 }
550
551 m_current_buffer = 0;
552 m_buffer[m_current_buffer]->Begin();
553 }
554}
555
556void CommandProcessor::BufferFlush()
557{

Callers 2

ThreadBatchRunMethod · 0.80
ThreadRunMethod · 0.80

Calls 2

SetParentMethod · 0.45
BeginMethod · 0.45

Tested by

no test coverage detected