mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
tint/resolver: Improve errors for expr eval-stages
Raise the error on the inner-most expression that violates the required evaluation stage. Fixed: tint:1655 Change-Id: I82186e72ed6efa1cd6d4456c04446da18e9f1850 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105640 Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
559a248233
commit
c84d06e860
@@ -239,7 +239,8 @@ TEST_F(ParserImplTest, TextureSamplerTypes_StorageTexture_InvalidAccess) {
|
||||
EXPECT_EQ(t.value, nullptr);
|
||||
EXPECT_FALSE(t.matched);
|
||||
EXPECT_TRUE(t.errored);
|
||||
EXPECT_EQ(p->error(), R"(1:30: expected access control for storage texture type. Did you mean 'read'?
|
||||
EXPECT_EQ(p->error(),
|
||||
R"(1:30: expected access control for storage texture type. Did you mean 'read'?
|
||||
Possible values: 'read', 'read_write', 'write')");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user