File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,13 @@ Manager::createInstance()
179179 applicationExtensions.data ();
180180 }
181181
182+ #if VK_USE_PLATFORM_ANDROID_KHR
183+ vk::DynamicLoader dl;
184+ PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
185+ dl.getProcAddress <PFN_vkGetInstanceProcAddr>(" vkGetInstanceProcAddr" );
186+ VULKAN_HPP_DEFAULT_DISPATCHER.init (vkGetInstanceProcAddr);
187+ #endif // VK_USE_PLATFORM_ANDROID_KHR
188+
182189#ifndef KOMPUTE_DISABLE_VK_DEBUG_LAYERS
183190 KP_LOG_DEBUG (" Kompute Manager adding debug validation layers" );
184191 // We'll identify the layers that are supported
@@ -233,13 +240,6 @@ Manager::createInstance()
233240 }
234241#endif
235242
236- #if VK_USE_PLATFORM_ANDROID_KHR
237- vk::DynamicLoader dl;
238- PFN_vkGetInstanceProcAddr vkGetInstanceProcAddr =
239- dl.getProcAddress <PFN_vkGetInstanceProcAddr>(" vkGetInstanceProcAddr" );
240- VULKAN_HPP_DEFAULT_DISPATCHER.init (vkGetInstanceProcAddr);
241- #endif // VK_USE_PLATFORM_ANDROID_KHR
242-
243243 this ->mInstance = std::make_shared<vk::Instance>();
244244 vk::createInstance (
245245 &computeInstanceCreateInfo, nullptr , this ->mInstance .get ());
You can’t perform that action at this time.
0 commit comments