| 493 | |
| 494 | template <vkb::BindingType bindingType> |
| 495 | inline void RenderFrame<bindingType>::reset() |
| 496 | { |
| 497 | VK_CHECK(fence_pool.wait()); |
| 498 | |
| 499 | fence_pool.reset(); |
| 500 | |
| 501 | for (auto &command_pools_per_queue : command_pools) |
| 502 | { |
| 503 | for (auto &command_pool : command_pools_per_queue.second) |
| 504 | { |
| 505 | command_pool.reset_pool(); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | for (auto &buffer_pools_per_usage : buffer_pools) |
| 510 | { |
| 511 | for (auto &buffer_pool : buffer_pools_per_usage.second) |
| 512 | { |
| 513 | buffer_pool.first.reset(); |
| 514 | buffer_pool.second = nullptr; |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | semaphore_pool.reset(); |
| 519 | |
| 520 | if (descriptor_management_strategy == DescriptorManagementStrategy::CreateDirectly) |
| 521 | { |
| 522 | clear_descriptors(); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | template <vkb::BindingType bindingType> |
| 527 | inline void RenderFrame<bindingType>::set_buffer_allocation_strategy(BufferAllocationStrategy new_strategy) |
no test coverage detected