mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 01:21:03 +00:00
(Vulkan) Go through function pointer for vkDestroyPipelineCache
This commit is contained in:
parent
a7df7be64b
commit
1fbac78e35
@ -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 */
|
||||
|
@ -182,6 +182,7 @@ typedef struct vulkan_context
|
||||
|
||||
/* Pipeline Cache */
|
||||
PFN_vkCreatePipelineCache vkCreatePipelineCache;
|
||||
PFN_vkDestroyPipelineCache vkDestroyPipelineCache;
|
||||
|
||||
/* Pipeline Barriers */
|
||||
PFN_vkCmdPipelineBarrier vkCmdPipelineBarrier;
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user