mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
Use vk::detail::DynamicLoader instead of vk::DynamicLoader (#710)
* Use vk::detail::DynamicLoader instead of vk::DynamicLoader * Update renderer_vk.cpp
This commit is contained in:
parent
b559725920
commit
d30f2646ec
1 changed files with 9 additions and 2 deletions
|
@ -885,10 +885,17 @@ void RendererVK::display() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DynamicLoader is in a different namespace in different versions of Vulkan-Hpp
|
||||||
|
#if VK_HEADER_VERSION >= 301
|
||||||
|
using VulkanDynamicLoader = vk::detail::DynamicLoader
|
||||||
|
#else
|
||||||
|
using VulkanDynamicLoader = vk::DynamicLoader;
|
||||||
|
#endif
|
||||||
|
|
||||||
void RendererVK::initGraphicsContext(SDL_Window* window) {
|
void RendererVK::initGraphicsContext(SDL_Window* window) {
|
||||||
targetWindow = window;
|
targetWindow = window;
|
||||||
// Resolve all instance function pointers
|
// Resolve all instance function pointers
|
||||||
static vk::DynamicLoader dl;
|
static VulkanDynamicLoader dl;
|
||||||
VULKAN_HPP_DEFAULT_DISPATCHER.init(dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr"));
|
VULKAN_HPP_DEFAULT_DISPATCHER.init(dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr"));
|
||||||
|
|
||||||
// Create Instance
|
// Create Instance
|
||||||
|
|
Loading…
Add table
Reference in a new issue