vk: Enable deferred descriptor updates via descriptor-indexing

This commit is contained in:
kd-11 2021-09-23 22:54:50 +03:00 committed by kd-11
parent 381c7544fa
commit ba2a8ebf2e
10 changed files with 164 additions and 66 deletions

View file

@ -357,13 +357,7 @@ namespace vk
push_constants[0].size = 20;
}
VkDescriptorSetLayoutCreateInfo infos = {};
infos.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;
infos.pBindings = bindings.data();
infos.bindingCount = static_cast<u32>(bindings.size());
VkDescriptorSetLayout set_layout;
CHECK_RESULT(vkCreateDescriptorSetLayout(dev, &infos, nullptr, &set_layout));
const auto set_layout = vk::descriptors::create_layout(bindings);
VkPipelineLayoutCreateInfo layout_info = {};
layout_info.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;