Commit 04515da4 by Sean Risser

Don't auto append value of stringified enums

Since vulkan.hpp was updated to do this for us, we should stop outputting this number while in debug mode. Bug: b/170962162 Change-Id: I1d813d69db4a73c71383fc54bc129e2768d5be60 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50309 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarSean Risser <srisser@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 3e551b3c
...@@ -22,11 +22,6 @@ ...@@ -22,11 +22,6 @@
#define VULKAN_HPP_NAMESPACE vkhpp #define VULKAN_HPP_NAMESPACE vkhpp
#include <vulkan/vulkan.hpp> #include <vulkan/vulkan.hpp>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
namespace vk { namespace vk {
std::string Stringify(VkStructureType value) std::string Stringify(VkStructureType value)
...@@ -51,9 +46,8 @@ std::string Stringify(VkStructureType value) ...@@ -51,9 +46,8 @@ std::string Stringify(VkStructureType value)
ret = vkhpp::to_string(static_cast<vkhpp::StructureType>(value)); ret = vkhpp::to_string(static_cast<vkhpp::StructureType>(value));
break; break;
} }
std::ostringstream stringStream;
stringStream << ret << " (" << static_cast<int>(value) << ")"; return ret;
return stringStream.str();
#else #else
return std::to_string(static_cast<int>(value)); return std::to_string(static_cast<int>(value));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment