dawn-cmake/test/intrinsics/gen/arrayLength
Ben Clayton 93e8f527ee wgsl: Deprecate [[access]] decorations
Handle access control on var declarations instead of via [[access]]
decorations. This change does the minimal work to migrate the WGSL
parser over to the new syntax. Additional changes will be needed
to correctly generate defaulted access qualifiers, as well as
validating access usage.

The [[access]] decorations are still supported by the WGSL parser,
with new deprecated warnings, but not for aliases. Example:
   var x : [[access(x)]] alias_to_struct;

Making this work is far more effort than I want to dedicate to backwards
compatibility, and I do not beleive any real-world usage will be doing
this.

Still TODO:
* Adding access control as the optional, third parameter to ptr<>.
* Calculating default accesses for the various storage types.
* Validating usage of variables against the different accesses.

Bug: tint:846
Change-Id: If8ca82e5d16ec319ecd01f9a2cafffd930963bde
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53088
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2021-06-04 20:41:47 +00:00
..
647a40.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
647a40.wgsl.expected.hlsl tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
647a40.wgsl.expected.msl [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
647a40.wgsl.expected.spvasm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
647a40.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
721c9d.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
721c9d.wgsl.expected.hlsl tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
721c9d.wgsl.expected.msl [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
721c9d.wgsl.expected.spvasm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
721c9d.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
b083be.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
b083be.wgsl.expected.hlsl tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
b083be.wgsl.expected.msl [tools]: Generate intrinisic test cases 2021-06-03 11:26:17 +00:00
b083be.wgsl.expected.spvasm tools: Return position from generated vertex shaders 2021-06-04 17:31:48 +00:00
b083be.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00