From dc8a8707bcb0d7ca477354891315d873f52e4d09 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 17 Nov 2015 15:31:02 -0700 Subject: [PATCH] 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. --- include/vulkan/vk_layer.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index 4777cbb..60d30af 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;