mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
tint/writer: Handle and emit 'const' variables
Bug: tint:1580 Change-Id: Ib3a5ff5c567e19eca1ba8fb3c2f7e83dee68e2a0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94686 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
b3b324c0d1
commit
19576e9015
@@ -18,7 +18,7 @@ kernel void tint_symbol() {
|
||||
tint_array<tint_array<int, 3>, 2> zero = {};
|
||||
tint_array<int, 3> const tint_symbol_1 = tint_array<int, 3>{1, 2, 3};
|
||||
tint_array<int, 3> const tint_symbol_2 = tint_array<int, 3>{4, 5, 6};
|
||||
tint_array<tint_array<int, 3>, 2> init = tint_array<tint_array<int, 3>, 2>{tint_symbol_1, tint_symbol_2};
|
||||
tint_array<tint_array<int, 3>, 2> init = tint_array<tint_array<int, 3>, 2>{tint_array<int, 3>{1, 2, 3}, tint_array<int, 3>{4, 5, 6}};
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user