dawn-cmake/test
Antonio Maiorano 39a65a1d1e Add type inference support to Resolver
There is still no way to spell this out in WGSL, but this adds support
for VariableDecls with an ast::Variable that has nullptr type. In this
case, the Resolver uses the type of the rhs (constructor expression),
which is stored in semantic::Variable.

Added tests for resolving inferred types from constructor, arithmetic,
and call expressions.

Bug: tint:672
Change-Id: I3dcfd18adecebc8b969373d2ac72c21891c21a87
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46160
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-03-31 12:46:52 +00:00
..
BUILD.gn Add type inference support to Resolver 2021-03-31 12:46:52 +00:00
compute_boids.wgsl Fix test/compute_builds.wgsl 2021-03-17 18:43:53 +00:00
cube.wgsl Implement Default Struct Layout 2021-03-15 10:43:11 +00:00
function.wgsl Update comments in test WGSL files. 2021-01-12 18:13:28 +00:00
simple.wgsl Update comments in test WGSL files. 2021-01-12 18:13:28 +00:00
test-all.sh Add test/test-all.sh 2021-03-17 18:49:03 +00:00
triangle.wgsl Update builtin idx names. 2021-01-18 15:51:13 +00:00