mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Convert @id to an expression.
This CL updates the @id AST nodes to store an expression instead of a literal value. This is in anticipation of the parser updates for ID expressions. Bug: tint:1633 Change-Id: I4dd626007dd1f9093999a0236e220ffdbc9e62db Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/100760 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
969692ccf8
commit
5361d9e778
@@ -124,8 +124,9 @@ fn main() {
|
||||
auto got = Run<Unshadow, SimplifyPointers, ArrayLengthFromUniform>(src, data);
|
||||
|
||||
EXPECT_EQ(expect, str(got));
|
||||
EXPECT_EQ(std::unordered_set<uint32_t>({0}),
|
||||
got.data.Get<ArrayLengthFromUniform::Result>()->used_size_indices);
|
||||
auto* val = got.data.Get<ArrayLengthFromUniform::Result>();
|
||||
ASSERT_NE(val, nullptr);
|
||||
EXPECT_EQ(std::unordered_set<uint32_t>({0}), val->used_size_indices);
|
||||
}
|
||||
|
||||
TEST_F(ArrayLengthFromUniformTest, BasicInStruct) {
|
||||
|
||||
Reference in New Issue
Block a user