(Vulkan) Add vkDestroyDescriptorPool fp

This commit is contained in:
twinaphex 2016-02-29 23:13:13 +01:00
parent 6023a5f06e
commit 30eac5b778
2 changed files with 3 additions and 1 deletions

View File

@ -908,7 +908,7 @@ void vulkan_destroy_descriptor_manager(
VKFUNC(vkFreeDescriptorSets)(device, node->pool, VKFUNC(vkFreeDescriptorSets)(device, node->pool,
VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS, node->sets); VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS, node->sets);
vkDestroyDescriptorPool(device, node->pool, NULL); VKFUNC(vkDestroyDescriptorPool)(device, node->pool, NULL);
free(node); free(node);
node = next; node = next;
@ -1163,6 +1163,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
/* Descriptor pools */ /* Descriptor pools */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateDescriptorPool); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateDescriptorPool);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyDescriptorPool);
/* Descriptor sets */ /* Descriptor sets */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, AllocateDescriptorSets); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, AllocateDescriptorSets);

View File

@ -196,6 +196,7 @@ typedef struct vulkan_context
/* Descriptor pools */ /* Descriptor pools */
PFN_vkCreateDescriptorPool vkCreateDescriptorPool; PFN_vkCreateDescriptorPool vkCreateDescriptorPool;
PFN_vkDestroyDescriptorPool vkDestroyDescriptorPool;
/* Descriptor sets */ /* Descriptor sets */
PFN_vkAllocateDescriptorSets vkAllocateDescriptorSets; PFN_vkAllocateDescriptorSets vkAllocateDescriptorSets;