This commit is contained in:
Jorijn van der Graaf 2026-02-05 05:22:01 +01:00
commit 75c9ae5087
5 changed files with 28 additions and 24 deletions

View file

@ -78,7 +78,7 @@ export namespace Crafter {
bool found = false;
for(VkDescriptorPoolSize& type : types) {
if(type.type == binding.descriptorType && type.descriptorCount != 12345) {
type.descriptorCount += 1;
type.descriptorCount += binding.descriptorCount;
found = true;
}
}
@ -86,7 +86,7 @@ export namespace Crafter {
for(std::uint32_t i = 0; i < GetUniqueDiscriptorCount<Shaders...>(); i++){
if(types[i].descriptorCount == 12345) {
types[i].type = binding.descriptorType;
types[i].descriptorCount = 1;
types[i].descriptorCount = binding.descriptorCount;
break;
}
}