mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Adjust name of included vulkan header. (#1527)
This commit is contained in:
parent
da4ab05a14
commit
9bee68b723
@ -321,37 +321,40 @@ ${DispatchLoaderDynamic}
|
||||
#endif
|
||||
)";
|
||||
|
||||
std::string str = replaceWithMap( vulkanHppTemplate,
|
||||
{ { "ArrayProxy", readSnippet( "ArrayProxy.hpp" ) },
|
||||
{ "ArrayProxyNoTemporaries", readSnippet( "ArrayProxyNoTemporaries.hpp" ) },
|
||||
{ "ArrayWrapper1D", readSnippet( "ArrayWrapper1D.hpp" ) },
|
||||
{ "ArrayWrapper2D", readSnippet( "ArrayWrapper2D.hpp" ) },
|
||||
{ "baseTypes", generateBaseTypes() },
|
||||
{ "defines", readSnippet( "defines.hpp" ) },
|
||||
{ "DispatchLoaderBase", readSnippet( "DispatchLoaderBase.hpp" ) },
|
||||
{ "DispatchLoaderDefault", readSnippet( "DispatchLoaderDefault.hpp" ) },
|
||||
{ "DispatchLoaderDynamic", generateDispatchLoaderDynamic() },
|
||||
{ "DispatchLoaderStatic", generateDispatchLoaderStatic() },
|
||||
{ "DynamicLoader", readSnippet( "DynamicLoader.hpp" ) },
|
||||
{ "Exceptions", readSnippet( "Exceptions.hpp" ) },
|
||||
{ "Flags", readSnippet( "Flags.hpp" ) },
|
||||
{ "headerVersion", m_version },
|
||||
{ "includes", replaceWithMap( readSnippet( "includes.hpp" ), { { "vulkan", m_api } } ) },
|
||||
{ "licenseHeader", m_vulkanLicenseHeader },
|
||||
{ "ObjectDestroy", readSnippet( "ObjectDestroy.hpp" ) },
|
||||
{ "ObjectFree", readSnippet( "ObjectFree.hpp" ) },
|
||||
{ "ObjectRelease", readSnippet( "ObjectRelease.hpp" ) },
|
||||
{ "Optional", readSnippet( "Optional.hpp" ) },
|
||||
{ "PoolFree", readSnippet( "PoolFree.hpp" ) },
|
||||
{ "resultChecks", readSnippet( "resultChecks.hpp" ) },
|
||||
{ "resultExceptions", generateResultExceptions() },
|
||||
{ "structExtendsStructs", generateStructExtendsStructs() },
|
||||
{ "ResultValue", readSnippet( "ResultValue.hpp" ) },
|
||||
{ "StridedArrayProxy", readSnippet( "StridedArrayProxy.hpp" ) },
|
||||
{ "StructureChain", readSnippet( "StructureChain.hpp" ) },
|
||||
{ "throwResultException", generateThrowResultException() },
|
||||
{ "typesafeCheck", m_typesafeCheck },
|
||||
{ "UniqueHandle", readSnippet( "UniqueHandle.hpp" ) } } );
|
||||
std::string str =
|
||||
replaceWithMap( vulkanHppTemplate,
|
||||
{ { "ArrayProxy", readSnippet( "ArrayProxy.hpp" ) },
|
||||
{ "ArrayProxyNoTemporaries", readSnippet( "ArrayProxyNoTemporaries.hpp" ) },
|
||||
{ "ArrayWrapper1D", readSnippet( "ArrayWrapper1D.hpp" ) },
|
||||
{ "ArrayWrapper2D", readSnippet( "ArrayWrapper2D.hpp" ) },
|
||||
{ "baseTypes", generateBaseTypes() },
|
||||
{ "defines", readSnippet( "defines.hpp" ) },
|
||||
{ "DispatchLoaderBase", readSnippet( "DispatchLoaderBase.hpp" ) },
|
||||
{ "DispatchLoaderDefault", readSnippet( "DispatchLoaderDefault.hpp" ) },
|
||||
{ "DispatchLoaderDynamic", generateDispatchLoaderDynamic() },
|
||||
{ "DispatchLoaderStatic", generateDispatchLoaderStatic() },
|
||||
{ "DynamicLoader", readSnippet( "DynamicLoader.hpp" ) },
|
||||
{ "Exceptions", readSnippet( "Exceptions.hpp" ) },
|
||||
{ "Flags", readSnippet( "Flags.hpp" ) },
|
||||
{ "headerVersion", m_version },
|
||||
{ "includes",
|
||||
replaceWithMap( readSnippet( "includes.hpp" ),
|
||||
{ { "vulkan_h", ( m_api == "vulkan" ) ? "vulkan.h" : "vulkan_sc_core.h" }, { "vulkan_hpp", m_api + ".hpp" } } ) },
|
||||
{ "licenseHeader", m_vulkanLicenseHeader },
|
||||
{ "ObjectDestroy", readSnippet( "ObjectDestroy.hpp" ) },
|
||||
{ "ObjectFree", readSnippet( "ObjectFree.hpp" ) },
|
||||
{ "ObjectRelease", readSnippet( "ObjectRelease.hpp" ) },
|
||||
{ "Optional", readSnippet( "Optional.hpp" ) },
|
||||
{ "PoolFree", readSnippet( "PoolFree.hpp" ) },
|
||||
{ "resultChecks", readSnippet( "resultChecks.hpp" ) },
|
||||
{ "resultExceptions", generateResultExceptions() },
|
||||
{ "structExtendsStructs", generateStructExtendsStructs() },
|
||||
{ "ResultValue", readSnippet( "ResultValue.hpp" ) },
|
||||
{ "StridedArrayProxy", readSnippet( "StridedArrayProxy.hpp" ) },
|
||||
{ "StructureChain", readSnippet( "StructureChain.hpp" ) },
|
||||
{ "throwResultException", generateThrowResultException() },
|
||||
{ "typesafeCheck", m_typesafeCheck },
|
||||
{ "UniqueHandle", readSnippet( "UniqueHandle.hpp" ) } } );
|
||||
|
||||
writeToFile( str, vulkan_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 <algorithm>
|
||||
#include <array> // ArrayWrapperND
|
||||
#include <string> // std::string
|
||||
#include <vulkan/${vulkan}.h>
|
||||
#include <vulkan/${vulkan_h}>
|
||||
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||
# include <string_view> // std::string_view
|
||||
#endif
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include <algorithm>
|
||||
#include <array> // ArrayWrapperND
|
||||
#include <string> // std::string
|
||||
#include <vulkan/vulkansc.h>
|
||||
#include <vulkan/vulkan_sc_core.h>
|
||||
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||
# include <string_view> // std::string_view
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user