preparing for drawing

This commit is contained in:
georgemoralis 2023-09-27 09:26:50 +03:00
parent 98ccbe7f30
commit 3b853413c7
3 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,12 @@ bool FlipQueue::flip(u32 micros) {
auto request = m_requests.at(0); // proceed first request auto request = m_requests.at(0); // proceed first request
m_mutex.UnlockMutex(); m_mutex.UnlockMutex();
auto* buffer = request.cfg->buffers[request.index].buffer_render;
Emulator::DrawBuffer(buffer);
m_mutex.LockMutex();
request.cfg->m_mutex.LockMutex(); request.cfg->m_mutex.LockMutex();
for (auto& flip_eq : request.cfg->m_flip_evtEq) { for (auto& flip_eq : request.cfg->m_flip_evtEq) {
if (flip_eq != nullptr) { if (flip_eq != nullptr) {

View File

@ -100,4 +100,6 @@ HLE::Libs::Graphics::GraphicCtx* getGraphicCtx() {
return &window_ctx->m_graphic_ctx; return &window_ctx->m_graphic_ctx;
} }
void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image) {}
} // namespace Emulator } // namespace Emulator

View File

@ -80,4 +80,5 @@ void emuInit(u32 width, u32 height);
void emuRun(); void emuRun();
void checkAndWaitForGraphicsInit(); void checkAndWaitForGraphicsInit();
HLE::Libs::Graphics::GraphicCtx* getGraphicCtx(); HLE::Libs::Graphics::GraphicCtx* getGraphicCtx();
void DrawBuffer(HLE::Libs::Graphics::VideoOutVulkanImage* image);
} // namespace Emulator } // namespace Emulator