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

Method BufferFlush

source/emulator/src/Graphics/GraphicsRun.cpp:556–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void CommandProcessor::BufferFlush()
557{
558 Core::LockGuard lock(m_mutex);
559
560 EXIT_IF(m_current_buffer < 0 || m_current_buffer >= VK_BUFFERS_NUM);
561 EXIT_IF(m_buffer[m_current_buffer] == nullptr);
562
563 m_buffer[m_current_buffer]->End();
564 m_buffer[m_current_buffer]->Execute();
565
566 m_current_buffer = (m_current_buffer + 1) % VK_BUFFERS_NUM;
567
568 EXIT_IF(m_buffer[m_current_buffer] == nullptr);
569
570 m_buffer[m_current_buffer]->WaitForFenceAndReset();
571 m_buffer[m_current_buffer]->Begin();
572}
573
574void CommandProcessor::BufferWait()
575{

Callers 4

ThreadBatchRunMethod · 0.80
ThreadRunMethod · 0.80
KYTY_CP_OP_PARSERFunction · 0.80

Calls 4

WaitForFenceAndResetMethod · 0.80
EndMethod · 0.45
ExecuteMethod · 0.45
BeginMethod · 0.45

Tested by

no test coverage detected