@kruseborn
Unfortunately, I am not able to replicate this issue here.
Can you confirm behaviour with the MoltenVK demos, as follows, please?
In the Hologram.cpp
file within the MoltenVK Demos…after the line (557):
vk::assert_success(vk::AllocateDescriptorSets(dev_, &set_info, desc_sets.data()));
add the following two lines:
vk::assert_success(vk::FreeDescriptorSets(dev_, desc_pool_, set_info.descriptorSetCount, desc_sets.data()));
vk::assert_success(vk::AllocateDescriptorSets(dev_, &set_info, desc_sets.data()));
Effectively…this is allocating the descriptor sets, then freeing them, then allocating them again. It works as expected.
Removing the FreeDescriptorSets
line causes the error that you are seeing to be returned…again as expected.
Let me know if that helps you resolve your issue, or whether the it persists for some reason.
…Bill