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

Method WaitForFenceAndReset

source/emulator/src/Graphics/GraphicsRender.cpp:5567–5581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5565}
5566
5567void CommandBuffer::WaitForFenceAndReset()
5568{
5569 EXIT_IF(IsInvalid());
5570
5571 if (m_execute)
5572 {
5573 auto* device = g_render_ctx->GetGraphicCtx()->device;
5574
5575 vkWaitForFences(device, 1, &m_pool->fences[m_index], VK_TRUE, UINT64_MAX);
5576 vkResetFences(device, 1, &m_pool->fences[m_index]);
5577 vkResetCommandBuffer(m_pool->buffers[m_index], VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT);
5578
5579 m_execute = false;
5580 }
5581}
5582
5583void CommandBuffer::BeginRenderPass(VulkanFramebuffer* framebuffer, RenderColorInfo* color, RenderDepthInfo* depth) const
5584{

Callers 2

BufferFlushMethod · 0.80
BufferWaitMethod · 0.80

Calls 1

GetGraphicCtxMethod · 0.45

Tested by

no test coverage detected