diff options
author | Mark Young <marky@lunarg.com> | 2016-06-28 10:52:43 -0600 |
---|---|---|
committer | Mark Young <marky@lunarg.com> | 2016-09-19 14:52:50 -0600 |
commit | c1ee6940c9aef4be9b8d391dca2ca1ac7361a4c4 (patch) | |
tree | 359267cb43dd42eaa80ae7829745a7f7a1dc14c8 /loader/wsi.h | |
parent | 26f7026b125facaeaaf27b377181e7fa5d6a1ba9 (diff) |
loader: gh181 use ICD for SurfaceKHR
Use the ICD to create and destroy VkSurfaceKHR objects instead
of just performing the work in the ICD. This only occurs if the ICD
exports the appropriate entry-points, and exposes version 3 of the
loader/icd interface.
Change-Id: I5e7bf9506318823c57ad75cf19d3f53fdfa6451e
Diffstat (limited to 'loader/wsi.h')
-rw-r--r-- | loader/wsi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/loader/wsi.h b/loader/wsi.h index fa600888..65b39860 100644 --- a/loader/wsi.h +++ b/loader/wsi.h @@ -29,6 +29,10 @@ void wsi_create_instance(struct loader_instance *ptr_instance, const VkInstanceCreateInfo *pCreateInfo); bool wsi_unsupported_instance_extension(const VkExtensionProperties *ext_prop); +VKAPI_ATTR VkResult VKAPI_CALL terminator_vkCreateSwapchainKHR( + VkDevice device, const VkSwapchainCreateInfoKHR *pCreateInfo, + const VkAllocationCallbacks *pAllocator, VkSwapchainKHR *pSwapchain); + VKAPI_ATTR void VKAPI_CALL terminator_DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks *pAllocator); |