tint/resolver: Clean up the SPIRV builder built-in unittests
This patch clean up the writer/spirv/builder_builtin_test. The major changes are: 1. Group the testcases by built-in types (array built-ins, logical built-ins, derivative built-ins, texture built-ins, etc.), and put each types in a namespace, which may help reading the code. 2. Make sure all tests for numeric built-in use variable rather than literal as input, in order to prevent supporting constant evaluation for these built-ins break the unit tests. 3. Make float type (`f32` for now) explicit in test names for float built-ins, to help implementing corresponding f16 testcases. Bug: tint:1473, tint:1502 Change-Id: I6a1ad5fe24729d36d01f4fd570bfae5fae7351ed Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97384 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
f180d5498f
commit
65dcdcbad0