VulkanRenderer: Fix descriptor pool release
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Nz
|
||||
using BindingStorage = std::aligned_storage_t<sizeof(VulkanShaderBinding), alignof(VulkanShaderBinding)>;
|
||||
|
||||
Bitset<UInt64> freeBindings;
|
||||
Vk::DescriptorPool descriptorPool;
|
||||
std::unique_ptr<Vk::DescriptorPool> descriptorPool;
|
||||
std::unique_ptr<BindingStorage[]> storage;
|
||||
};
|
||||
|
||||
|
||||
@@ -145,9 +145,8 @@ namespace Nz
|
||||
|
||||
inline DescriptorSet& DescriptorSet::operator=(DescriptorSet&& descriptorSet) noexcept
|
||||
{
|
||||
m_pool = descriptorSet.m_pool;
|
||||
|
||||
std::swap(m_handle, descriptorSet.m_handle);
|
||||
std::swap(m_pool, descriptorSet.m_pool);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user