aboutsummaryrefslogtreecommitdiff
path: root/include/vulkan
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-11-17 15:31:02 -0700
committerJon Ashburn <jon@lunarg.com>2015-11-18 17:05:38 -0700
commit01261e73d94be281a6b8bc73e088333841fb83d6 (patch)
tree422905de73cc57fc3340522c598c5304187fa7de /include/vulkan
parente716d2ed830a7080604a7d6b66224ff88c0f14b6 (diff)
downloadusermoji-01261e73d94be281a6b8bc73e088333841fb83d6.tar.xz
loader: Add dynamic dispatch for unknown device extension entrypoints
GetInstancePorcAddr() is specified to return trampoline entrypoints for all Vulkan core and extension entrypoints that are dispatched on an instance object or a child of that instance object. However, typically, device extensions would be unknown to the loader (don't want to rev the loader everytime an IHV creates a new device extension). This patch allows loader to dynamically discover device extension entrypoints and configure generic trampoline code for these discovered device extensions.
Diffstat (limited to 'include/vulkan')
-rw-r--r--include/vulkan/vk_layer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h
index 4777cbb5..60d30af0 100644
--- a/include/vulkan/vk_layer.h
+++ b/include/vulkan/vk_layer.h
@@ -17,8 +17,7 @@
# define VK_LAYER_EXPORT
#endif
-typedef void * (*PFN_vkGPA)(void* obj, const char * pName);
-
+typedef void * (VKAPI_PTR *PFN_vkGPA)(void* obj, const char * pName);
typedef struct VkBaseLayerObject_
{
PFN_vkGPA pGPA;