mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
Update renderer_vk.cpp
This commit is contained in:
parent
fd8d2615e2
commit
bfa07cde12
1 changed files with 8 additions and 1 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) {
|
||||
targetWindow = window;
|
||||
// Resolve all instance function pointers
|
||||
static vk::detail::DynamicLoader dl;
|
||||
static VulkanDynamicLoader dl;
|
||||
VULKAN_HPP_DEFAULT_DISPATCHER.init(dl.getProcAddress<PFN_vkGetInstanceProcAddr>("vkGetInstanceProcAddr"));
|
||||
|
||||
// Create Instance
|
||||
|
|
Loading…
Add table
Reference in a new issue