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

Method reset

framework/core/descriptor_pool.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void DescriptorPool::reset()
69{
70 // Reset all descriptor pools
71 for (auto pool : pools)
72 {
73 vkResetDescriptorPool(device.get_handle(), pool, 0);
74 }
75
76 // Clear internal tracking of descriptor set allocations
77 std::fill(pool_sets_count.begin(), pool_sets_count.end(), 0);
78 set_pool_mapping.clear();
79
80 // Reset the pool index from which descriptor sets are allocated
81 pool_index = 0;
82}
83
84const DescriptorSetLayout &DescriptorPool::get_descriptor_set_layout() const
85{

Callers

nothing calls this directly

Calls 4

endMethod · 0.80
get_handleMethod · 0.45
beginMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected