diff --git a/openVulkanoCpp/Vulkan/Context.hpp b/openVulkanoCpp/Vulkan/Context.hpp index d474963..18d4765 100644 --- a/openVulkanoCpp/Vulkan/Context.hpp +++ b/openVulkanoCpp/Vulkan/Context.hpp @@ -7,6 +7,7 @@ #pragma once #include +#include "Debuging/ValidationLayer.hpp" #include "DeviceManager.hpp" #include "SwapChain.hpp" #include "RenderPass.hpp" diff --git a/openVulkanoCpp/Vulkan/Debuging/ValidationLayer.hpp b/openVulkanoCpp/Vulkan/Debuging/ValidationLayer.hpp index 7167137..536efbd 100644 --- a/openVulkanoCpp/Vulkan/Debuging/ValidationLayer.hpp +++ b/openVulkanoCpp/Vulkan/Debuging/ValidationLayer.hpp @@ -11,6 +11,15 @@ #include #include +#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