dawn-cmake/test/samples
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
..
compute_boids.wgsl test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
compute_boids.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
compute_boids.wgsl.expected.msl Implement Pointers and References 2021-05-18 10:28:48 +00:00
compute_boids.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
compute_boids.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
cube.wgsl test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
cube.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
cube.wgsl.expected.msl Implement Pointers and References 2021-05-18 10:28:48 +00:00
cube.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
cube.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
function.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl.expected.msl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
function.wgsl.expected.wgsl ast: Support non-literal workgroup_size parameters 2021-05-19 13:40:08 +00:00
simple.wgsl test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
simple.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple.wgsl.expected.msl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple_vertex.spvasm test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
simple_vertex.spvasm.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple_vertex.spvasm.expected.msl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple_vertex.spvasm.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
simple_vertex.spvasm.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
triangle.wgsl test: Move misc sample shaders to test/samples 2021-05-18 08:51:48 +00:00
triangle.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
triangle.wgsl.expected.msl Implement Pointers and References 2021-05-18 10:28:48 +00:00
triangle.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
triangle.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00