rendertarget multi frame rewrite complete

This commit is contained in:
Jorijn van der Graaf 2026-03-13 01:06:55 +01:00
commit bc97c13a0b
6 changed files with 76 additions and 22 deletions

View file

@ -153,11 +153,15 @@ export namespace Crafter {
}
public:
~DescriptorPool() {
vkDestroyDescriptorPool(Device::device, descriptorPool, nullptr);
}
void BuildPool(std::span<const VkDescriptorPoolSize> poolSizes, std::span<const VkDescriptorSetLayout> setLayouts) {
if(descriptorPool != VK_NULL_HANDLE) {
vkDestroyDescriptorPool(Device::device, descriptorPool, nullptr);
}
sets.resize(setLayouts.size());
VkDescriptorPoolCreateInfo descriptorPoolInfo {
.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO,