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

Method WaitForFence

source/emulator/src/Graphics/GraphicsRender.cpp:5552–5565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5550}
5551
5552void CommandBuffer::WaitForFence()
5553{
5554 EXIT_IF(IsInvalid());
5555
5556 if (m_execute)
5557 {
5558 auto* device = g_render_ctx->GetGraphicCtx()->device;
5559
5560 vkWaitForFences(device, 1, &m_pool->fences[m_index], VK_TRUE, UINT64_MAX);
5561 vkResetFences(device, 1, &m_pool->fences[m_index]);
5562
5563 m_execute = false;
5564 }
5565}
5566
5567void CommandBuffer::WaitForFenceAndReset()
5568{

Callers 5

UtilFillImageFunction · 0.80
UtilFillBufferFunction · 0.80
UtilCopyBufferFunction · 0.80

Calls 1

GetGraphicCtxMethod · 0.45

Tested by

no test coverage detected