Fixes Descriptor pool is not being freed #155

This commit is contained in:
Alejandro Saucedo 2021-02-20 18:11:19 +00:00
parent 56d9a3a933
commit 4d9665d943

View file

@ -149,6 +149,7 @@ Algorithm::createParameters(std::vector<std::shared_ptr<Tensor>>& tensorParams)
this->mDescriptorPool = std::make_shared<vk::DescriptorPool>();
this->mDevice->createDescriptorPool(
&descriptorPoolInfo, nullptr, this->mDescriptorPool.get());
this->mFreeDescriptorPool = true;
std::vector<vk::DescriptorSetLayoutBinding> descriptorSetBindings;
for (size_t i = 0; i < tensorParams.size(); i++) {