Roll Tint from 3cdb8e3c3e
to 0b39270e01
(8 revisions)
Also contains a fix for src/dawn_native/CompilationMessages.cpp, where the tint::Source structure has changed in a breaking way. https://dawn.googlesource.com/tint.git/+log/3cdb8e3c3e0a..0b39270e01ce Bug: None Change-Id: If801fa85200316012916b24324fd39d275d1fd2f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/78720 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
f8f78f145d
commit
a6222d2c5b
2
DEPS
2
DEPS
|
@ -113,7 +113,7 @@ deps = {
|
|||
|
||||
# WGSL support
|
||||
'third_party/tint': {
|
||||
'url': '{dawn_git}/tint@3cdb8e3c3e0a8affa648d5a5031d5ff9f35633f9',
|
||||
'url': '{dawn_git}/tint@0b39270e01ce2327dd8c01d8d7192e823cec4424',
|
||||
},
|
||||
|
||||
# GLFW for tests and samples
|
||||
|
|
|
@ -67,8 +67,8 @@ namespace dawn::native {
|
|||
uint64_t offset = 0;
|
||||
uint64_t length = 0;
|
||||
|
||||
if (lineNum && linePos && diagnostic.source.file_content) {
|
||||
const auto& lines = diagnostic.source.file_content->lines;
|
||||
if (lineNum && linePos && diagnostic.source.file) {
|
||||
const auto& lines = diagnostic.source.file->content.lines;
|
||||
size_t i = 0;
|
||||
// To find the offset of the message position, loop through each of the first lineNum-1
|
||||
// lines and add it's length (+1 to account for the line break) to the offset.
|
||||
|
|
Loading…
Reference in New Issue