From 3dddf2dabe656720aa2037517b2de30ac698d895 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Mon, 23 Nov 2015 10:17:23 -0700 Subject: [PATCH] loader: Address Jon Ashburn's review comments. It took a few commits (squashed down into 1) to get it correct. Includes: Use loader_heap_{alloc|free}(). Try to deal correctly with initializing the vkCreate*SurfaceKHR()'s. --- include/vulkan/vk_layer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index a75f02a..85d141f 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -173,6 +173,21 @@ typedef struct VkLayerInstanceDispatchTable_ PFN_vkGetPhysicalDeviceSurfaceCapabilitiesKHR GetPhysicalDeviceSurfaceCapabilitiesKHR; PFN_vkGetPhysicalDeviceSurfaceFormatsKHR GetPhysicalDeviceSurfaceFormatsKHR; PFN_vkGetPhysicalDeviceSurfacePresentModesKHR GetPhysicalDeviceSurfacePresentModesKHR; +#ifdef VK_USE_PLATFORM_MIR_KHR + PFN_vkCreateMirSurfaceKHR CreateMirSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_WAYLAND_KHR + PFN_vkCreateWaylandSurfaceKHR CreateWaylandSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_WIN32_KHR + PFN_vkCreateWin32SurfaceKHR CreateWin32SurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_XCB_KHR + PFN_vkCreateXcbSurfaceKHR CreateXcbSurfaceKHR; +#endif +#ifdef VK_USE_PLATFORM_XLIB_KHR + PFN_vkCreateXlibSurfaceKHR CreateXlibSurfaceKHR; +#endif PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback; PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback; } VkLayerInstanceDispatchTable;