Show diagnostic notes in WGSL compilation messages

These notes often contain additional useful information that is not
currently being surfaced to the developer console.

Change-Id: I342bfc3147593755d6addf5466f27b083f954826
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90160
Reviewed-by: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
James Price 2022-05-13 19:04:24 +00:00
parent a064872983
commit 49385c99cc
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ void OwnedCompilationMessages::AddFormattedTintMessages(const tint::diag::List&
messageList.add(tint::diag::Diagnostic(diag));
break;
}
case (tint::diag::Severity::Note): {
messageList.add(tint::diag::Diagnostic(diag));
break;
}
default:
break;
}