@@ -516,7 +516,7 @@ void VulkanHppGenerator::generateVulkanToStringHppFile() const
|
||||
|
||||
#include <vulkan/vulkan_enums.hpp>
|
||||
|
||||
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
|
||||
#if __cpp_lib_format
|
||||
# include <format> // std::format
|
||||
#else
|
||||
# include <sstream> // std::stringstream
|
||||
@@ -5034,7 +5034,7 @@ std::string VulkanHppGenerator::generateEnumsToString() const
|
||||
|
||||
VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
|
||||
{
|
||||
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
|
||||
#if __cpp_lib_format
|
||||
return std::format( "{:x}", value );
|
||||
#else
|
||||
std::stringstream stream;
|
||||
|
||||
Reference in New Issue
Block a user