(Vulkan) Go through function pointer for vkDestroyPipelineCache

This commit is contained in:
twinaphex 2016-02-29 22:38:58 +01:00
parent a7df7be64b
commit 1fbac78e35
3 changed files with 8 additions and 2 deletions

View File

@ -1177,10 +1177,15 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyRenderPass);
/* Pipelines */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyPipeline);
/* Pipeline Layouts */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineLayout);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyPipelineLayout);
/* Pipeline Cache */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineCache);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyPipeline);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyPipelineCache);
/* Command buffers */

View File

@ -182,6 +182,7 @@ typedef struct vulkan_context
/* Pipeline Cache */
PFN_vkCreatePipelineCache vkCreatePipelineCache;
PFN_vkDestroyPipelineCache vkDestroyPipelineCache;
/* Pipeline Barriers */
PFN_vkCmdPipelineBarrier vkCmdPipelineBarrier;

View File

@ -718,7 +718,7 @@ static void vulkan_deinit_static_resources(
vk_t *vk)
{
unsigned i;
vkDestroyPipelineCache(vk->context->device,
VKFUNC(vkDestroyPipelineCache)(vk->context->device,
vk->pipelines.cache, NULL);
vulkan_destroy_texture(&vk->context->fp,
vk->context->device,