mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Go through funcptr for vkDestroyPipeline
This commit is contained in:
parent
d45f0e0946
commit
f0458495f4
@ -1158,6 +1158,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
|
|||||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineLayout);
|
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineLayout);
|
||||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineCache);
|
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreatePipelineCache);
|
||||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdBindPipeline);
|
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdBindPipeline);
|
||||||
|
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyPipeline);
|
||||||
|
|
||||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateCommandPool);
|
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateCommandPool);
|
||||||
|
|
||||||
|
@ -157,6 +157,7 @@ typedef struct vulkan_context
|
|||||||
PFN_vkCmdBindPipeline vkCmdBindPipeline;
|
PFN_vkCmdBindPipeline vkCmdBindPipeline;
|
||||||
PFN_vkCreatePipelineLayout vkCreatePipelineLayout;
|
PFN_vkCreatePipelineLayout vkCreatePipelineLayout;
|
||||||
PFN_vkCreatePipelineCache vkCreatePipelineCache;
|
PFN_vkCreatePipelineCache vkCreatePipelineCache;
|
||||||
|
PFN_vkDestroyPipeline vkDestroyPipeline;
|
||||||
|
|
||||||
/* Descriptor pools */
|
/* Descriptor pools */
|
||||||
PFN_vkCreateDescriptorPool vkCreateDescriptorPool;
|
PFN_vkCreateDescriptorPool vkCreateDescriptorPool;
|
||||||
|
@ -558,10 +558,14 @@ static void vulkan_deinit_pipelines(
|
|||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
vulkan_deinit_pipeline_layout(vkcfp, vk);
|
vulkan_deinit_pipeline_layout(vkcfp, vk);
|
||||||
vkDestroyPipeline(vk->context->device, vk->pipelines.alpha_blend, NULL);
|
VKFUNC(vkDestroyPipeline)(vk->context->device,
|
||||||
vkDestroyPipeline(vk->context->device, vk->pipelines.font, NULL);
|
vk->pipelines.alpha_blend, NULL);
|
||||||
|
VKFUNC(vkDestroyPipeline)(vk->context->device,
|
||||||
|
vk->pipelines.font, NULL);
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
vkDestroyPipeline(vk->context->device, vk->display.pipelines[i], NULL);
|
VKFUNC(vkDestroyPipeline)(vk->context->device,
|
||||||
|
vk->display.pipelines[i], NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vulkan_deinit_framebuffers(
|
static void vulkan_deinit_framebuffers(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user