Add fix for moved class in VK 1.4.303

This commit is contained in:
Georg Hagen
2024-12-17 12:17:52 +01:00
parent d5e6cb441d
commit f01968f09e
2 changed files with 10 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include <vulkan/vulkan.hpp>
#include "Debuging/ValidationLayer.hpp"
#include "DeviceManager.hpp"
#include "SwapChain.hpp"
#include "RenderPass.hpp"

View File

@@ -11,6 +11,15 @@
#include <vector>
#include <vulkan/vulkan.hpp>
#if VK_HEADER_VERSION > 302
// Vulkan 1.4.303 moved the dynamic dispatch loader definition,
// this is a workaround to allow building for both the old and the new verisons
namespace vk
{
using DispatchLoaderDynamic = detail::DispatchLoaderDynamic;
}
#endif
namespace OpenVulkano::Vulkan
{
class Debug