mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 12:41:18 +00:00
(Vulkan) Function pointer for vkFreeCommandBuffers
This commit is contained in:
parent
1e407079e4
commit
caed6c61cb
@ -487,7 +487,7 @@ struct vk_texture vulkan_create_texture(vk_t *vk,
|
||||
VKFUNC(vkQueueWaitIdle)(vk->context->queue);
|
||||
slock_unlock(vk->context->queue_lock);
|
||||
|
||||
vkFreeCommandBuffers(vk->context->device, vk->staging_pool, 1, &staging);
|
||||
VKFUNC(vkFreeCommandBuffers)(vk->context->device, vk->staging_pool, 1, &staging);
|
||||
vulkan_destroy_texture(&vk->context->fp,
|
||||
vk->context->device, &tmp);
|
||||
tex.layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
|
||||
@ -1152,6 +1152,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateFramebuffer);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyFramebuffer);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, AllocateCommandBuffers);
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, FreeCommandBuffers);
|
||||
|
||||
/* Memory allocation */
|
||||
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, MapMemory);
|
||||
|
@ -179,6 +179,7 @@ typedef struct vulkan_context
|
||||
PFN_vkBeginCommandBuffer vkBeginCommandBuffer;
|
||||
PFN_vkEndCommandBuffer vkEndCommandBuffer;
|
||||
PFN_vkResetCommandBuffer vkResetCommandBuffer;
|
||||
PFN_vkFreeCommandBuffers vkFreeCommandBuffers;
|
||||
PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers;
|
||||
|
||||
/* Command Buffer Submission */
|
||||
|
@ -537,7 +537,7 @@ static void vulkan_deinit_command_buffers(
|
||||
for (i = 0; i < vk->num_swapchain_images; i++)
|
||||
{
|
||||
if (vk->swapchain[i].cmd)
|
||||
vkFreeCommandBuffers(vk->context->device,
|
||||
VKFUNC(vkFreeCommandBuffers)(vk->context->device,
|
||||
vk->swapchain[i].cmd_pool, 1, &vk->swapchain[i].cmd);
|
||||
|
||||
VKFUNC(vkDestroyCommandPool)(vk->context->device,
|
||||
|
Loading…
x
Reference in New Issue
Block a user