diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 4de85c9..9c8b530 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -304,7 +304,7 @@ void VulkanHppGenerator::generateFormatTraitsHppFile() const #ifndef VULKAN_FORMAT_TRAITS_HPP # define VULKAN_FORMAT_TRAITS_HPP -#include +#include namespace VULKAN_HPP_NAMESPACE { @@ -313,7 +313,8 @@ ${formatTraits} #endif )"; - std::string str = replaceWithMap( vulkanFormatTraitsHppTemplate, { { "formatTraits", generateFormatTraits() }, { "licenseHeader", m_vulkanLicenseHeader } } ); + std::string str = replaceWithMap( vulkanFormatTraitsHppTemplate, + { { "api", m_api }, { "formatTraits", generateFormatTraits() }, { "licenseHeader", m_vulkanLicenseHeader } } ); writeToFile( str, vulkan_format_traits_hpp ); } @@ -403,7 +404,7 @@ void VulkanHppGenerator::generateHashHppFile() const #ifndef VULKAN_HASH_HPP # define VULKAN_HASH_HPP -#include +#include namespace std { @@ -428,7 +429,8 @@ ${structHashStructures} )"; std::string str = replaceWithMap( vulkanHandlesHppTemplate, - { { "handleHashStructures", generateHandleHashStructures() }, + { { "api", m_api }, + { "handleHashStructures", generateHandleHashStructures() }, { "licenseHeader", m_vulkanLicenseHeader }, { "structHashStructures", generateStructHashStructures() } } ); @@ -481,9 +483,9 @@ ${PoolFree} ${baseTypes} } // namespace VULKAN_HPP_NAMESPACE -#include +#include #if !defined( VULKAN_HPP_NO_TO_STRING ) -#include +#include #endif #ifndef VULKAN_HPP_NO_EXCEPTIONS @@ -509,9 +511,9 @@ ${constexprDefines} } // namespace VULKAN_HPP_NAMESPACE // clang-format off -#include -#include -#include +#include +#include +#include // clang-format on namespace VULKAN_HPP_NAMESPACE @@ -528,7 +530,8 @@ ${DispatchLoaderDynamic} std::string str = replaceWithMap( vulkanHppTemplate, - { { "ArrayProxy", readSnippet( "ArrayProxy.hpp" ) }, + { { "api", m_api }, + { "ArrayProxy", readSnippet( "ArrayProxy.hpp" ) }, { "ArrayProxyNoTemporaries", readSnippet( "ArrayProxyNoTemporaries.hpp" ) }, { "ArrayWrapper1D", readSnippet( "ArrayWrapper1D.hpp" ) }, { "ArrayWrapper2D", readSnippet( "ArrayWrapper2D.hpp" ) }, @@ -576,7 +579,7 @@ void VulkanHppGenerator::generateRAIIHppFile() const #include #include // std::exchange, std::forward -#include +#include #if !defined( VULKAN_HPP_RAII_NAMESPACE ) # define VULKAN_HPP_RAII_NAMESPACE raii @@ -609,7 +612,8 @@ ${RAIICommandDefinitions} )"; std::string str = replaceWithMap( vulkanHandlesHppTemplate, - { { "licenseHeader", m_vulkanLicenseHeader }, + { { "api", m_api }, + { "licenseHeader", m_vulkanLicenseHeader }, { "RAIICommandDefinitions", generateRAIICommandDefinitions() }, { "RAIIDispatchers", generateRAIIDispatchers() }, { "RAIIHandles", generateRAIIHandles() } } ); @@ -626,7 +630,7 @@ void VulkanHppGenerator::generateStaticAssertionsHppFile() const #ifndef VULKAN_STATIC_ASSERTIONS_HPP # define VULKAN_STATIC_ASSERTIONS_HPP -#include +#include //========================= //=== static_assertions === @@ -636,8 +640,8 @@ ${staticAssertions} #endif )"; - std::string str = - replaceWithMap( vulkanHandlesHppTemplate, { { "licenseHeader", m_vulkanLicenseHeader }, { "staticAssertions", generateStaticAssertions() } } ); + std::string str = replaceWithMap( vulkanHandlesHppTemplate, + { { "api", m_api }, { "licenseHeader", m_vulkanLicenseHeader }, { "staticAssertions", generateStaticAssertions() } } ); writeToFile( str, static_assertions_hpp ); } @@ -674,7 +678,7 @@ void VulkanHppGenerator::generateToStringHppFile() const #ifndef VULKAN_TO_STRING_HPP # define VULKAN_TO_STRING_HPP -#include +#include #if __cpp_lib_format # include // std::format @@ -690,9 +694,11 @@ ${enumsToString} #endif )"; - std::string str = replaceWithMap( - vulkanHandlesHppTemplate, - { { "bitmasksToString", generateBitmasksToString() }, { "enumsToString", generateEnumsToString() }, { "licenseHeader", m_vulkanLicenseHeader } } ); + std::string str = replaceWithMap( vulkanHandlesHppTemplate, + { { "api", m_api }, + { "bitmasksToString", generateBitmasksToString() }, + { "enumsToString", generateEnumsToString() }, + { "licenseHeader", m_vulkanLicenseHeader } } ); writeToFile( str, vulkan_to_string_hpp ); } @@ -705,11 +711,11 @@ void VulkanHppGenerator::generateCppModuleFile() const std::string const vulkanCppmTemplate = R"(${licenseHeader} module; -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include export module ${api}; @@ -726,10 +732,10 @@ export namespace VULKAN_HPP_NAMESPACE )"; auto const str = replaceWithMap( vulkanCppmTemplate, - { { "licenseHeader", m_vulkanLicenseHeader }, - { "api", m_api }, - { "usings", generateCppModuleUsings() }, - { "raiiUsings", generateCppModuleRaiiUsings() } } ); + { { "api", m_api }, + { "licenseHeader", m_vulkanLicenseHeader }, + { "raiiUsings", generateCppModuleRaiiUsings() }, + { "usings", generateCppModuleUsings() } } ); writeToFile( str, vulkan_cppm ); } diff --git a/vulkan/vulkansc.cppm b/vulkan/vulkansc.cppm index 3dccf13..70fea23 100644 --- a/vulkan/vulkansc.cppm +++ b/vulkan/vulkansc.cppm @@ -7,11 +7,11 @@ module; -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include export module vulkansc; diff --git a/vulkan/vulkansc.hpp b/vulkan/vulkansc.hpp index 9d0530a..54eb988 100644 --- a/vulkan/vulkansc.hpp +++ b/vulkan/vulkansc.hpp @@ -3805,9 +3805,9 @@ namespace VULKAN_HPP_NAMESPACE } // namespace VULKAN_HPP_NAMESPACE -#include +#include #if !defined( VULKAN_HPP_NO_TO_STRING ) -# include +# include #endif #ifndef VULKAN_HPP_NO_EXCEPTIONS @@ -4434,9 +4434,9 @@ namespace VULKAN_HPP_NAMESPACE } // namespace VULKAN_HPP_NAMESPACE // clang-format off -#include -#include -#include +#include +#include +#include // clang-format on diff --git a/vulkan/vulkansc_format_traits.hpp b/vulkan/vulkansc_format_traits.hpp index fefd1de..781fcfd 100644 --- a/vulkan/vulkansc_format_traits.hpp +++ b/vulkan/vulkansc_format_traits.hpp @@ -8,7 +8,7 @@ #ifndef VULKAN_FORMAT_TRAITS_HPP #define VULKAN_FORMAT_TRAITS_HPP -#include +#include namespace VULKAN_HPP_NAMESPACE { diff --git a/vulkan/vulkansc_hash.hpp b/vulkan/vulkansc_hash.hpp index 99d9cb9..e4f74c0 100644 --- a/vulkan/vulkansc_hash.hpp +++ b/vulkan/vulkansc_hash.hpp @@ -8,7 +8,7 @@ #ifndef VULKAN_HASH_HPP #define VULKAN_HASH_HPP -#include +#include namespace std { diff --git a/vulkan/vulkansc_raii.hpp b/vulkan/vulkansc_raii.hpp index eff0627..c7757d1 100644 --- a/vulkan/vulkansc_raii.hpp +++ b/vulkan/vulkansc_raii.hpp @@ -10,7 +10,7 @@ #include #include // std::exchange, std::forward -#include +#include #if !defined( VULKAN_HPP_RAII_NAMESPACE ) # define VULKAN_HPP_RAII_NAMESPACE raii diff --git a/vulkan/vulkansc_static_assertions.hpp b/vulkan/vulkansc_static_assertions.hpp index fcb1665..b569a6d 100644 --- a/vulkan/vulkansc_static_assertions.hpp +++ b/vulkan/vulkansc_static_assertions.hpp @@ -8,7 +8,7 @@ #ifndef VULKAN_STATIC_ASSERTIONS_HPP #define VULKAN_STATIC_ASSERTIONS_HPP -#include +#include //========================= //=== static_assertions === diff --git a/vulkan/vulkansc_to_string.hpp b/vulkan/vulkansc_to_string.hpp index 9b67d97..11f19dd 100644 --- a/vulkan/vulkansc_to_string.hpp +++ b/vulkan/vulkansc_to_string.hpp @@ -8,7 +8,7 @@ #ifndef VULKAN_TO_STRING_HPP #define VULKAN_TO_STRING_HPP -#include +#include #if __cpp_lib_format # include // std::format