mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-09 20:09:49 -04:00
Adjust include snippet of vulkan[sc].hpp to actually use vulkan[sc]. (#1526)
This commit is contained in:
parent
4befd8e643
commit
da4ab05a14
@ -336,7 +336,7 @@ ${DispatchLoaderDynamic}
|
|||||||
{ "Exceptions", readSnippet( "Exceptions.hpp" ) },
|
{ "Exceptions", readSnippet( "Exceptions.hpp" ) },
|
||||||
{ "Flags", readSnippet( "Flags.hpp" ) },
|
{ "Flags", readSnippet( "Flags.hpp" ) },
|
||||||
{ "headerVersion", m_version },
|
{ "headerVersion", m_version },
|
||||||
{ "includes", readSnippet( "includes.hpp" ) },
|
{ "includes", replaceWithMap( readSnippet( "includes.hpp" ), { { "vulkan", m_api } } ) },
|
||||||
{ "licenseHeader", m_vulkanLicenseHeader },
|
{ "licenseHeader", m_vulkanLicenseHeader },
|
||||||
{ "ObjectDestroy", readSnippet( "ObjectDestroy.hpp" ) },
|
{ "ObjectDestroy", readSnippet( "ObjectDestroy.hpp" ) },
|
||||||
{ "ObjectFree", readSnippet( "ObjectFree.hpp" ) },
|
{ "ObjectFree", readSnippet( "ObjectFree.hpp" ) },
|
||||||
|
@ -16,13 +16,13 @@
|
|||||||
#elif 199711L < VULKAN_HPP_CPLUSPLUS
|
#elif 199711L < VULKAN_HPP_CPLUSPLUS
|
||||||
# define VULKAN_HPP_CPP_VERSION 11
|
# define VULKAN_HPP_CPP_VERSION 11
|
||||||
#else
|
#else
|
||||||
# error "vulkan.hpp needs at least c++ standard version 11"
|
# error "${vulkan}.hpp needs at least c++ standard version 11"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array> // ArrayWrapperND
|
#include <array> // ArrayWrapperND
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/${vulkan}.h>
|
||||||
#if 17 <= VULKAN_HPP_CPP_VERSION
|
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||||
# include <string_view> // std::string_view
|
# include <string_view> // std::string_view
|
||||||
#endif
|
#endif
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
#elif 199711L < VULKAN_HPP_CPLUSPLUS
|
#elif 199711L < VULKAN_HPP_CPLUSPLUS
|
||||||
# define VULKAN_HPP_CPP_VERSION 11
|
# define VULKAN_HPP_CPP_VERSION 11
|
||||||
#else
|
#else
|
||||||
# error "vulkan.hpp needs at least c++ standard version 11"
|
# error "vulkansc.hpp needs at least c++ standard version 11"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <array> // ArrayWrapperND
|
#include <array> // ArrayWrapperND
|
||||||
#include <string> // std::string
|
#include <string> // std::string
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkansc.h>
|
||||||
#if 17 <= VULKAN_HPP_CPP_VERSION
|
#if 17 <= VULKAN_HPP_CPP_VERSION
|
||||||
# include <string_view> // std::string_view
|
# include <string_view> // std::string_view
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user