rendertarget multi frame rewrite complete
This commit is contained in:
parent
2b22c16ce7
commit
bc97c13a0b
6 changed files with 76 additions and 22 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue