| 461 | } |
| 462 | |
| 463 | static bool EndRenderPass(VulkanContext* context) |
| 464 | { |
| 465 | DM_MUTEX_SCOPED_LOCK(context->m_BaseContext.m_AssetHandleContainerMutex); |
| 466 | RenderTarget* current_rt = GetAssetFromContainer<RenderTarget>(context->m_BaseContext.m_AssetHandleContainer, context->m_CurrentRenderTarget); |
| 467 | |
| 468 | if (!current_rt->m_IsBound) |
| 469 | { |
| 470 | return false; |
| 471 | } |
| 472 | |
| 473 | vkCmdEndRenderPass(context->m_MainCommandBuffers[context->m_CurrentFrameInFlight]); |
| 474 | current_rt->m_IsBound = 0; |
| 475 | context->m_RenderTargetBound = 0; |
| 476 | return true; |
| 477 | } |
| 478 | |
| 479 | static void BeginRenderPass(VulkanContext* context, HRenderTarget render_target) |
| 480 | { |
no outgoing calls
no test coverage detected