diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-09 09:35:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-03-09 09:36:38 +0100 |
commit | 1231c2ecfc70e6efb3fbbdc77c87598a7b767114 (patch) | |
tree | c8ac26bb1f5631c9cff5d8f64dea691e5129bb1e /thirdparty/glslang/SPIRV/Logger.h | |
parent | 214bc9e5a1f3300b97aed407fb62d902c53ae0e6 (diff) |
glslang: Sync with upstream 4fc7a33 for Vulkan SDK 1.2.131
Fixes #36888.
Diffstat (limited to 'thirdparty/glslang/SPIRV/Logger.h')
-rw-r--r-- | thirdparty/glslang/SPIRV/Logger.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/thirdparty/glslang/SPIRV/Logger.h b/thirdparty/glslang/SPIRV/Logger.h index 2e4ddaf517..411367c030 100644 --- a/thirdparty/glslang/SPIRV/Logger.h +++ b/thirdparty/glslang/SPIRV/Logger.h @@ -46,6 +46,14 @@ class SpvBuildLogger { public: SpvBuildLogger() {} +#ifdef GLSLANG_WEB + void tbdFunctionality(const std::string& f) { } + void missingFunctionality(const std::string& f) { } + void warning(const std::string& w) { } + void error(const std::string& e) { errors.push_back(e); } + std::string getAllMessages() { return ""; } +#else + // Registers a TBD functionality. void tbdFunctionality(const std::string& f); // Registers a missing functionality. @@ -59,6 +67,7 @@ public: // Returns all messages accumulated in the order of: // TBD functionalities, missing functionalities, warnings, errors. std::string getAllMessages() const; +#endif private: SpvBuildLogger(const SpvBuildLogger&); |