dawn-cmake/test
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
..
access writer/msl: Fix zero-valued matrix constructors 2021-05-19 11:15:58 +00:00
array wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
bug/tint wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
deprecated/access_deco wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
expressions writer/msl: Emit field designators for structures 2021-06-03 18:12:15 +00:00
intrinsics wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
ptr_ref wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
samples wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
shader_io wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
struct writer/msl: Emit field designators for structures 2021-06-03 18:12:15 +00:00
types writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
var Implement type inference 2021-06-04 15:28:47 +00:00
BUILD.gn wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +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