validation fix

This commit is contained in:
Turánszki János
2026-01-29 12:04:38 +01:00
parent 5c29fdbc61
commit 4ebae3da32
+6
View File
@@ -670,11 +670,17 @@ namespace wi::graphics
vulkan_check(vkCreateDescriptorSetLayout(device->device, &layoutInfo, nullptr, &descriptorSetLayout));
VkDescriptorSetVariableDescriptorCountAllocateInfo count_allocation_info = {};
count_allocation_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO;
count_allocation_info.descriptorSetCount = 1;
count_allocation_info.pDescriptorCounts = &descriptorCount;
VkDescriptorSetAllocateInfo allocInfo = {};
allocInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO;
allocInfo.descriptorPool = descriptorPool;
allocInfo.descriptorSetCount = 1;
allocInfo.pSetLayouts = &descriptorSetLayout;
allocInfo.pNext = &count_allocation_info;
vulkan_check(vkAllocateDescriptorSets(device->device, &allocInfo, &descriptorSet));
for (int i = 0; i < (int)descriptorCount; ++i)