Reduce number of included headers

This commit is contained in:
asuessenbach
2022-07-27 14:01:36 +02:00
parent fa62e680f6
commit 056abda3e2
5 changed files with 418 additions and 394 deletions

View File

@@ -10,6 +10,12 @@
#include <vulkan/vulkan_enums.hpp>
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
# include <format> // std::format
#else
# include <sstream> // std::stringstream
#endif
namespace VULKAN_HPP_NAMESPACE
{
//==========================
@@ -2989,9 +2995,13 @@ namespace VULKAN_HPP_NAMESPACE
VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
{
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
return std::format( "{:x}", value );
#else
std::stringstream stream;
stream << std::hex << value;
return stream.str();
#endif
}
//=== VK_VERSION_1_0 ===