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

Function FlushResourcesToDestroy

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

Source from the content-addressed store, hash-verified

1039 }
1040
1041 void FlushResourcesToDestroy(VulkanContext* context, ResourcesToDestroyList* resource_list)
1042 {
1043 if (resource_list->Size() > 0)
1044 {
1045 for (uint32_t i = 0; i < resource_list->Size(); ++i)
1046 {
1047 DestroyResourceImmediatedly(context, &resource_list->Begin()[i]);
1048 }
1049
1050 resource_list->SetSize(0);
1051 }
1052 }
1053
1054 // Note: fence_resources ptr is no longer valid after this call!
1055 static void DestroyFenceResourcesImmediately(VulkanContext* context, HOpaqueHandle fence_resource_handle, FenceResourcesToDestroy* fence_resources)

Callers 2

VulkanBeginFrameFunction · 0.70
VulkanDestroyResourcesFunction · 0.70

Calls 4

SizeMethod · 0.45
BeginMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected