aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-07-10 10:50:45 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-17 10:05:19 -0600
commit4efb01f1bcbf9403eaddb428c7684b8ec39344a9 (patch)
tree2186e749400f5eb54a60eef87dfe42992a868bb3 /layers/draw_state.cpp
parentc0980d972bffe57c30eaaf149156d9324ae7936d (diff)
downloadusermoji-4efb01f1bcbf9403eaddb428c7684b8ec39344a9.tar.xz
Bug 14248: Add vkFreeDescriptorSets
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index becde6a3..60f65aa0 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -1918,6 +1918,13 @@ VK_LAYER_EXPORT VkResult VKAPI vkAllocDescriptorSets(VkDevice device, VkDescript
return result;
}
+VK_LAYER_EXPORT VkResult VKAPI vkFreeDescriptorSets(VkDevice device, VkDescriptorPool descriptorPool, uint32_t count, const VkDescriptorSet* pDescriptorSets)
+{
+ VkResult result = get_dispatch_table(draw_state_device_table_map, device)->FreeDescriptorSets(device, descriptorPool, count, pDescriptorSets);
+ // TODO : Clean up any internal data structures using this obj.
+ return result;
+}
+
VK_LAYER_EXPORT VkResult VKAPI vkUpdateDescriptorSets(VkDevice device, uint32_t writeCount, const VkWriteDescriptorSet* pDescriptorWrites, uint32_t copyCount, const VkCopyDescriptorSet* pDescriptorCopies)
{
if (dsUpdate(device, VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, writeCount, pDescriptorWrites) &&