From 860b7fde62b35c639aa75db1949817008fd1591e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 29 Feb 2016 23:25:25 +0100 Subject: [PATCH] (Vulkan) Add DeviceWaitIdle function pointer --- gfx/common/vulkan_common.c | 2 +- gfx/common/vulkan_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index db5e81ff31..5965417a7d 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -1130,6 +1130,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, GetPhysicalDeviceQueueFamilyProperties); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateDevice); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyDevice); + VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DeviceWaitIdle); /* Queues */ VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetDeviceQueue); @@ -1156,7 +1157,6 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, BindImageMemory); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, GetImageSubresourceLayout); - /* Image Views */ VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateImageView); VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyImageView); diff --git a/gfx/common/vulkan_common.h b/gfx/common/vulkan_common.h index 5ec8ea2e4a..3bef4ff3cd 100644 --- a/gfx/common/vulkan_common.h +++ b/gfx/common/vulkan_common.h @@ -140,6 +140,7 @@ typedef struct vulkan_context /* Device */ PFN_vkCreateDevice vkCreateDevice; PFN_vkDestroyDevice vkDestroyDevice; + PFN_vkDeviceWaitIdle vkDeviceWaitIdle; /* Device Memory */ PFN_vkAllocateMemory vkAllocateMemory;