diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 3a70e03..393cb13 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -336,7 +336,7 @@ ${DispatchLoaderDynamic} { "Exceptions", readSnippet( "Exceptions.hpp" ) }, { "Flags", readSnippet( "Flags.hpp" ) }, { "headerVersion", m_version }, - { "includes", readSnippet( "includes.hpp" ) }, + { "includes", replaceWithMap( readSnippet( "includes.hpp" ), { { "vulkan", m_api } } ) }, { "licenseHeader", m_vulkanLicenseHeader }, { "ObjectDestroy", readSnippet( "ObjectDestroy.hpp" ) }, { "ObjectFree", readSnippet( "ObjectFree.hpp" ) }, diff --git a/snippets/includes.hpp b/snippets/includes.hpp index 42bd2e8..e0bf4bf 100644 --- a/snippets/includes.hpp +++ b/snippets/includes.hpp @@ -16,13 +16,13 @@ #elif 199711L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 11 #else -# error "vulkan.hpp needs at least c++ standard version 11" +# error "${vulkan}.hpp needs at least c++ standard version 11" #endif #include #include // ArrayWrapperND #include // std::string -#include +#include #if 17 <= VULKAN_HPP_CPP_VERSION # include // std::string_view #endif diff --git a/vulkan/vulkansc.hpp b/vulkan/vulkansc.hpp index 88d0d6a..e78e27b 100644 --- a/vulkan/vulkansc.hpp +++ b/vulkan/vulkansc.hpp @@ -23,13 +23,13 @@ #elif 199711L < VULKAN_HPP_CPLUSPLUS # define VULKAN_HPP_CPP_VERSION 11 #else -# error "vulkan.hpp needs at least c++ standard version 11" +# error "vulkansc.hpp needs at least c++ standard version 11" #endif #include #include // ArrayWrapperND #include // std::string -#include +#include #if 17 <= VULKAN_HPP_CPP_VERSION # include // std::string_view #endif