tint/writer/spirv: Tweak builtin tests to use 'var's

If the builtin has values passed by literal, let or const, then they may
be evaluated at shader-creation time, which makes the tests almost useless.

Bug: tint:1504
Change-Id: I004f49ec4b3430c8015e65d3fde1f5fa4fdd10f9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92322
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:
Ben Clayton 2022-06-01 22:21:40 +00:00 committed by Dawn LUCI CQ
parent e3e91c0d75
commit e0cd855aa2
1 changed files with 312 additions and 151 deletions

File diff suppressed because it is too large Load Diff