I have created a descriptor pool with maxSet=15 and the flag VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT.
Everytime I resize the window I delete one Texture and free the descriptorSet associated with it: vkFreeDescriptorSets(vkContext.device, vkContext.descriptorPool, 1, &texture.descriptorSet);
I then create a new descriptorSet vkAllocateDescriptorSets with descriptorSetCount = 1. However after a few times I get the error: [***MoltenVK ERROR***] VK_ERROR_INITIALIZATION_FAILED: The maximum number of descriptor sets that can be allocated yb this descriptor pool is 15.
I have checked the adress of the descriptor being freed and it is correct. I do not get any errors or warnings on Windows with the validation layer turned on.