Reduce number of included headers
This commit is contained in:
@@ -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 ===
|
||||
|
||||
Reference in New Issue
Block a user