dawn-cmake/docs
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
..
arch.md Rename semantic to sem 2021-04-16 19:07:51 +00:00
compound_statements.md sem: Add CompoundStatement 2021-07-14 09:44:41 +00:00
diagnostics_guide.md docs: Relax don't-quote-source rule 2021-06-09 07:48:38 +00:00
experimental_extensions.md Proposed process for experimental extensions 2021-04-27 17:55:07 +00:00
origin-trial-changes.md Allow array size to be a module-scope constant 2021-09-02 13:49:59 +00:00
spirv-input-output-variables.md spirv-reader: builtin in/out keep their signedness as private vars 2021-06-11 20:45:06 +00:00
spirv-ptr-ref.md Add SPIR-V translation scheme for ptr-ref 2021-05-13 16:37:12 +00:00
style_guide.md Add a style guide 2021-04-08 15:10:47 +00:00
translations.md Implement texture_depth_multisampled_2d 2021-07-26 22:19:48 +00:00