| 66 | } |
| 67 | |
| 68 | void 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 | |
| 84 | const DescriptorSetLayout &DescriptorPool::get_descriptor_set_layout() const |
| 85 | { |
nothing calls this directly
no test coverage detected