dawn-cmake/test/bug/tint
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
..
221.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
221.wgsl.expected.hlsl main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00
221.wgsl.expected.msl main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00
221.wgsl.expected.spvasm main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00
221.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
492.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
492.wgsl.expected.hlsl Add transform::Simplify 2021-05-21 21:01:23 +00:00
492.wgsl.expected.msl Add transform::Simplify 2021-05-21 21:01:23 +00:00
492.wgsl.expected.spvasm Add transform::Simplify 2021-05-21 21:01:23 +00:00
492.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
744.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
744.wgsl.expected.hlsl writer/hlsl: Fix continuing block emission 2021-05-20 21:31:37 +00:00
744.wgsl.expected.msl writer/msl: Emit builtins as parameters 2021-06-04 14:40:28 +00:00
744.wgsl.expected.spvasm writer/hlsl: Fix continuing block emission 2021-05-20 21:31:37 +00:00
744.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
749.spvasm test: Move bug cases to sub-directories 2021-05-17 21:01:37 +00:00
749.spvasm.expected.hlsl writer/hlsl: Fix continuing block emission 2021-05-20 21:31:37 +00:00
749.spvasm.expected.msl writer/msl: Add parentheses for member accesses 2021-05-27 14:15:47 +00:00
749.spvasm.expected.spvasm Implement Pointers and References 2021-05-18 10:28:48 +00:00
749.spvasm.expected.wgsl Implement Pointers and References 2021-05-18 10:28:48 +00:00
782.wgsl test: Move bug cases to sub-directories 2021-05-17 21:01:37 +00:00
782.wgsl.expected.hlsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
782.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
782.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
782.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
824.wgsl Add transform::VarForDynamicIndex 2021-05-20 11:55:28 +00:00
824.wgsl.expected.hlsl Add transform::VarForDynamicIndex 2021-05-20 11:55:28 +00:00
824.wgsl.expected.msl writer/msl: Emit builtins as parameters 2021-06-04 14:40:28 +00:00
824.wgsl.expected.spvasm transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00
824.wgsl.expected.wgsl Add transform::VarForDynamicIndex 2021-05-20 11:55:28 +00:00
825.wgsl transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00
825.wgsl.expected.hlsl transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00
825.wgsl.expected.msl transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00
825.wgsl.expected.spvasm transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00
825.wgsl.expected.wgsl transform::VarForDynamicIndex: Operate on matrices 2021-05-20 18:16:07 +00:00