Vulkan: Fill unused descriptor array elements with a dummy image (required by API)

This commit is contained in:
DrChat
2017-02-13 14:43:06 -06:00
parent 75b34b83a6
commit 4a99b88650
3 changed files with 155 additions and 4 deletions

View File

@@ -308,6 +308,9 @@ class DescriptorPool : public BaseFencedPool<DescriptorPool, VkDescriptorSet> {
return Base::AcquireEntry(layout);
}
// WARNING: Allocating sets from the vulkan pool will not be tracked!
VkDescriptorPool descriptor_pool() { return descriptor_pool_; }
protected:
friend class BaseFencedPool<DescriptorPool, VkDescriptorSet>;
VkDescriptorSet AllocateEntry(void* data);