Skip to content

Commit a7f9a0d

Browse files
committed
Also handle self-query for vkGetInstanceProcAddr
1 parent 750caf3 commit a7f9a0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source_common/framework/manual_functions.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ VkLayerDeviceCreateInfo* getChainInfo(const VkDeviceCreateInfo* pCreateInfo)
113113
/* See header for documentation. */
114114
std::pair<bool, PFN_vkVoidFunction> getInstanceLayerFunction(const char* name)
115115
{
116-
const std::array<const char*, 4> globalFunctions {
116+
const std::array<const char*, 5> globalFunctions {
117+
// Supported since Vulkan 1.0
117118
"vkCreateInstance",
118119
"vkEnumerateInstanceVersion",
119120
"vkEnumerateInstanceExtensionProperties",
120-
"vkEnumerateInstanceLayerProperties"
121+
"vkEnumerateInstanceLayerProperties",
122+
// Supported since Vulkan 1.2
123+
"vkGetInstanceProcAddr",
121124
};
122125

123126
bool isGlobal {false};

0 commit comments

Comments
 (0)