mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
parent
8afaf0e2d0
commit
1e67e5aba4
@ -516,7 +516,7 @@ void VulkanHppGenerator::generateVulkanToStringHppFile() const
|
|||||||
|
|
||||||
#include <vulkan/vulkan_enums.hpp>
|
#include <vulkan/vulkan_enums.hpp>
|
||||||
|
|
||||||
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
|
#if __cpp_lib_format
|
||||||
# include <format> // std::format
|
# include <format> // std::format
|
||||||
#else
|
#else
|
||||||
# include <sstream> // std::stringstream
|
# include <sstream> // std::stringstream
|
||||||
@ -5034,7 +5034,7 @@ std::string VulkanHppGenerator::generateEnumsToString() const
|
|||||||
|
|
||||||
VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
|
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 );
|
return std::format( "{:x}", value );
|
||||||
#else
|
#else
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
#include <vulkan/vulkan_enums.hpp>
|
#include <vulkan/vulkan_enums.hpp>
|
||||||
|
|
||||||
#if ( ( 20 <= VULKAN_HPP_CPP_VERSION ) && __has_include( <format> ) )
|
#if __cpp_lib_format
|
||||||
# include <format> // std::format
|
# include <format> // std::format
|
||||||
#else
|
#else
|
||||||
# include <sstream> // std::stringstream
|
# include <sstream> // std::stringstream
|
||||||
@ -2949,7 +2949,7 @@ namespace VULKAN_HPP_NAMESPACE
|
|||||||
|
|
||||||
VULKAN_HPP_INLINE std::string toHexString( uint32_t value )
|
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 );
|
return std::format( "{:x}", value );
|
||||||
#else
|
#else
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
|
Loading…
Reference in New Issue
Block a user