aboutsummaryrefslogtreecommitdiff
path: root/loader/table_ops.h
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-08-29 14:21:14 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-08-31 13:27:14 -0600
commit8b690b3313d17f47c738971d2a5db5cf6f03acee (patch)
treeecc1985024c503f553130bb75e237e39afd51b81 /loader/table_ops.h
parenteaf9285738b554a91ce33c3cb3123d11ca67bbad (diff)
downloadusermoji-8b690b3313d17f47c738971d2a5db5cf6f03acee.tar.xz
loader: Add support for NV instance extension
Added vkGetPhysicalDeviceExternalImageFormat API from the VK_NV_external_memory_capabilities extension to the loader. Change-Id: Ib87df7bae333d7944a4e181556bc2f99e1e19416
Diffstat (limited to 'loader/table_ops.h')
-rw-r--r--loader/table_ops.h5
1 files changed, 5 insertions, 0 deletions
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;