dawn-cmake/test
James Price 70f80bb13d ast: Support non-literal workgroup_size parameters
Change the type of the values in an ast::WorkgroupDecoration to be
ast::Expression nodes, so that they can represent both
ast::ScalarExpression (literal) and ast::IdentifierExpression
(module-scope constant).

The Resolver processes these nodes to produce a uint32_t for the
default value on each dimension, and captures a reference to the
module-scope constant if it is overridable (which will soon be used by
the inspector and backends).

The WGSL parser now uses `primary_expression` to parse arguments to
workgroup_size.

Also added some WorkgroupSize() helpers to ProgramBuilder.

Bug: tint:713
Change-Id: I44b7b0021b925c84f25f65e26dc7da6b19ede508
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51262
Commit-Queue: James Price <jrprice@google.com>
Auto-Submit: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-05-19 13:40:08 +00:00
..
access writer/msl: Fix zero-valued matrix constructors 2021-05-19 11:15:58 +00:00
bug/tint writer/hlsl: Emit `static` for private global variables 2021-05-19 09:03:48 +00:00
intrinsics Implement Pointers and References 2021-05-18 10:28:48 +00:00
ptr_ref writer/msl: Generate address spaces for pointers 2021-05-19 10:38:18 +00:00
samples ast: Support non-literal workgroup_size parameters 2021-05-19 13:40:08 +00:00
BUILD.gn Revert "Add DuplicateStorageStruct transform" 2021-05-19 12:22:59 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh tools/test-all.sh: Fix usage info 2021-05-18 17:06:18 +00:00