dawn-cmake/test
James Price 4cc4315d6c Allow array size to be a module-scope constant
Change ast::Array to use an ast::Expression for its `size` field. The
WGSL frontend now parses the array size as an `primary_expression`,
and the Resolver is responsible for validating the expression is a
signed or unsigned integer, and either a literal or a non-overridable
module-scope constant.

The Resolver evaluates the constant value of the size expression, and
so the resolved sem::Array type still has a constant size as before.

Fixed: tint:1068
Fixed: tint:1117

Change-Id: Icfa141482ea1e47ea8c21a25e9eb48221f176e9a
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/63061
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-09-02 13:49:59 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
buffer msl: Overload matrix-vector arithmetic operators 2021-08-23 21:45:23 +00:00
bug Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
expressions msl: Overload matrix-vector arithmetic operators 2021-08-23 21:45:23 +00:00
intrinsics Implement atomicSub intrinsic 2021-08-26 15:26:25 +00:00
layout/storage/mat2x2 Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
loops Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
ptr_ref spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
samples msl: Only emit packed vectors when the width is 3 2021-08-23 21:45:23 +00:00
shader_io msl: Only emit packed vectors when the width is 3 2021-08-23 21:45:23 +00:00
statements/for Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
struct Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
switch writer/hlsl: Inline fallthrough case statements 2021-08-02 12:58:19 +00:00
types msl: Automatically remap binding numbers in exe 2021-08-12 19:47:20 +00:00
unittest/reader/spirv test: Remove many expected files 2021-08-24 22:49:42 +00:00
var spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
vk-gl-cts test: Remove many expected files 2021-08-24 22:49:42 +00:00
BUILD.gn Handle complex cases in Inspector::GenerateSamplerTargets 2021-07-27 15:42:51 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00