mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Namespace Log.h/cpp in dawn::
The LogMessage::LogMessage constructor was redefining a symbol that exists in re2 inside of Chromium. So we namespace Log inside dawn:: to avoid the conflict. BUG=dawn:302 Change-Id: Ida349208e2c6fe9ac032e1bd8cd442dff0b3f6bc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14320 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
dd4584340d
commit
dc3317da6c
@@ -67,7 +67,7 @@ namespace utils {
|
||||
shaderc::Compiler compiler;
|
||||
auto result = compiler.CompileGlslToSpv(source, strlen(source), kind, "myshader?");
|
||||
if (result.GetCompilationStatus() != shaderc_compilation_status_success) {
|
||||
ErrorLog() << result.GetErrorMessage();
|
||||
dawn::ErrorLog() << result.GetErrorMessage();
|
||||
return {};
|
||||
}
|
||||
#ifdef DUMP_SPIRV_ASSEMBLY
|
||||
@@ -106,7 +106,7 @@ namespace utils {
|
||||
shaderc::Compiler compiler;
|
||||
shaderc::SpvCompilationResult result = compiler.AssembleToSpv(source, strlen(source));
|
||||
if (result.GetCompilationStatus() != shaderc_compilation_status_success) {
|
||||
ErrorLog() << result.GetErrorMessage();
|
||||
dawn::ErrorLog() << result.GetErrorMessage();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user