Introduce VULKAN_HPP_NO_TO_STRING to optionally remove the various vk::to_string functions.
Also extend the samples to hold some local version of the needed to_string functions in case VULKAN_HPP_NO_TO_STRING is defined.
This commit is contained in:
@@ -5624,7 +5624,11 @@ namespace VULKAN_HPP_NAMESPACE
|
||||
}
|
||||
virtual std::string message( int ev ) const override
|
||||
{
|
||||
return to_string( static_cast<Result>( ev ) );
|
||||
# if defined( VULKAN_HPP_NO_TO_STRING )
|
||||
return std::to_string( ev );
|
||||
# else
|
||||
return VULKAN_HPP_NAMESPACE::to_string( static_cast<VULKAN_HPP_NAMESPACE::Result>( ev ) );
|
||||
# endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user