From 8b690b3313d17f47c738971d2a5db5cf6f03acee Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 29 Aug 2016 14:21:14 -0600 Subject: loader: Add support for NV instance extension Added vkGetPhysicalDeviceExternalImageFormat API from the VK_NV_external_memory_capabilities extension to the loader. Change-Id: Ib87df7bae333d7944a4e181556bc2f99e1e19416 --- loader/table_ops.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'loader/table_ops.h') diff --git a/loader/table_ops.h b/loader/table_ops.h index 8a5f8df3..f527f6a2 100644 --- a/loader/table_ops.h +++ b/loader/table_ops.h @@ -584,6 +584,9 @@ static inline void loader_init_instance_extension_dispatch_table( table->GetPhysicalDeviceSurfacePresentModesKHR = (PFN_vkGetPhysicalDeviceSurfacePresentModesKHR)gpa( inst, "vkGetPhysicalDeviceSurfacePresentModesKHR"); + table->GetPhysicalDeviceExternalImageFormatPropertiesNV = + (PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV)gpa( + inst, "vkGetPhysicalDeviceExternalImageFormatPropertiesNV"); #ifdef VK_USE_PLATFORM_MIR_KHR table->CreateMirSurfaceKHR = (PFN_vkCreateMirSurfaceKHR)gpa(inst, "vkCreateMirSurfaceKHR"); @@ -684,6 +687,8 @@ loader_lookup_instance_dispatch_table(const VkLayerInstanceDispatchTable *table, return (void *)table->GetPhysicalDeviceSurfaceFormatsKHR; if (!strcmp(name, "GetPhysicalDeviceSurfacePresentModesKHR")) return (void *)table->GetPhysicalDeviceSurfacePresentModesKHR; + if (!strcmp(name, "GetPhysicalDeviceExternalImageFormatPropertiesNV")) + return (void *)table->GetPhysicalDeviceExternalImageFormatPropertiesNV; #ifdef VK_USE_PLATFORM_MIR_KHR if (!strcmp(name, "CreateMirSurfaceKHR")) return (void *)table->CreateMirSurfaceKHR; -- cgit v1.2.3