diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-05-06 10:15:07 -0600 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-05-07 16:24:43 -0600 |
| commit | c5104f208dd40c53c47a77d84b4c5cd68065af26 (patch) | |
| tree | 2bcce4f0d3cf736a33e2c0127fedd79a1267f4e9 /loader/loader.c | |
| parent | 8abcd57aee10259ad7066200383c0769bdb7e3f4 (diff) | |
| download | usermoji-c5104f208dd40c53c47a77d84b4c5cd68065af26.tar.xz | |
misc: Add vkGetInstanceProcAddr() entrypoint
Adding this entrypoint as this has been discussed in khronos and is needed
for the loader/layer/extension proposal.
Caveats:
1) Have not updated layers or any tests/demos yet that will come later;
2) No one including loader is using this call yet;
3) Leaving exisitng vkGetProcAddr() as is for now; later once loader
is using vkGetInstanceProcAddr call can switch vkGetProcAddr() to
vkGetDeviceProcAddr()
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 17778d5b..c452ce52 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1288,6 +1288,17 @@ LOADER_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( return (count > 0) ? VK_SUCCESS : res; } +LOADER_EXPORT void * VKAPI vkGetInstanceProcAddr(VkInstance instance, const char * pName) +{ + if (instance != VK_NULL_HANDLE) { + + /* return entrypoint addresses that are global (in the loader)*/ + return globalGetProcAddr(pName); + } + + return NULL; +} + LOADER_EXPORT void * VKAPI vkGetProcAddr(VkPhysicalDevice gpu, const char * pName) { if (gpu == VK_NULL_HANDLE) { |
