| 5550 | } |
| 5551 | |
| 5552 | void 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 | |
| 5567 | void CommandBuffer::WaitForFenceAndReset() |
| 5568 | { |
no test coverage detected