MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / reset

Method reset

framework/rendering/render_frame.h:495–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493
494template <vkb::BindingType bindingType>
495inline 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
526template <vkb::BindingType bindingType>
527inline void RenderFrame<bindingType>::set_buffer_allocation_strategy(BufferAllocationStrategy new_strategy)

Callers 4

begin_frameMethod · 0.45
wait_frameMethod · 0.45
clear_descriptorsMethod · 0.45
update_render_targetMethod · 0.45

Calls 2

waitMethod · 0.80
reset_poolMethod · 0.45

Tested by

no test coverage detected