| 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) |
no test coverage detected