MCPcopy Create free account
hub / github.com/defold/defold / EndRenderPass

Function EndRenderPass

engine/graphics/src/vulkan/graphics_vulkan.cpp:463–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 6

BeginRenderPassFunction · 0.70
VulkanFlipFunction · 0.70
VulkanDispatchComputeFunction · 0.70
VulkanSetRenderTargetFunction · 0.70
VulkanReadPixelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected