Adjust descriptor pool

Fixes #1105
This commit is contained in:
Sascha Willems 2024-02-18 14:53:16 +01:00
parent 12892a87c2
commit eda68d2421

View file

@ -524,6 +524,8 @@ public:
{ VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR, 1 },
{ VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, 1 },
{ VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1 },
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1 },
{ VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 1 },
{ VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, static_cast<uint32_t>(model.textures.size()) }
};
VkDescriptorPoolCreateInfo descriptorPoolCreateInfo = vks::initializers::descriptorPoolCreateInfo(poolSizes, 1);
@ -778,7 +780,6 @@ public:
updateUniformBuffers();
if (camera.updated) {
// If the camera's view has been updated we reset the frame accumulation
std::cout << "Cam updated\n";
uniformData.frame = -1;
}
draw();