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

Function DestroyMainFrameBuffers

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

Source from the content-addressed store, hash-verified

741 }
742
743 VkResult DestroyMainFrameBuffers(VulkanContext* context)
744 {
745 for (uint8_t i=0; i < context->m_MainFrameBuffers.Size(); i++)
746 {
747 DestroyFrameBuffer(context->m_LogicalDevice.m_Device, context->m_MainFrameBuffers[i]);
748 }
749 context->m_MainFrameBuffers.SetCapacity(0);
750 context->m_MainFrameBuffers.SetSize(0);
751 return VK_SUCCESS;
752 }
753
754 static VkResult SetupMainRenderTarget(VulkanContext* context)
755 {

Callers 1

SwapChainChangedFunction · 0.85

Calls 4

DestroyFrameBufferFunction · 0.85
SizeMethod · 0.45
SetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected