diff --git a/src/dawn/native/TintUtils.cpp b/src/dawn/native/TintUtils.cpp index 74f377e31b..f2e08a66a4 100644 --- a/src/dawn/native/TintUtils.cpp +++ b/src/dawn/native/TintUtils.cpp @@ -31,6 +31,15 @@ thread_local DeviceBase* tlDevice = nullptr; void TintICEReporter(const tint::diag::List& diagnostics) { if (tlDevice) { tlDevice->HandleError(InternalErrorType::Internal, diagnostics.str().c_str()); +#if DAWN_ENABLE_ASSERTS + for (const tint::diag::Diagnostic& diag : diagnostics) { + if (diag.severity >= tint::diag::Severity::InternalCompilerError) { + HandleAssertionFailure( + diag.source.file ? diag.source.file->path.c_str() : "", "", + diag.source.range.begin.line, diag.message.c_str()); + } + } +#endif } }