dawn-cmake/test/array
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
..
assign_to_function_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_function_var.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_function_var.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_function_var.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_function_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_private_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_private_var.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_private_var.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_private_var.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_private_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_storage_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_storage_var.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_storage_var.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_storage_var.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_storage_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_subexpr.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_subexpr.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_subexpr.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_subexpr.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_subexpr.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_workgroup_var.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
assign_to_workgroup_var.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_workgroup_var.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_workgroup_var.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
assign_to_workgroup_var.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
function_parameter.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_parameter.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.hlsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.spvasm writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
function_return_type.wgsl.expected.wgsl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
type_constructor.wgsl writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00
type_constructor.wgsl.expected.hlsl writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00
type_constructor.wgsl.expected.msl writer/msl: Wrap each array type in a struct 2021-06-02 17:23:03 +00:00
type_constructor.wgsl.expected.spvasm writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00
type_constructor.wgsl.expected.wgsl writer/msl: Hoist array and struct initializers 2021-06-01 12:08:20 +00:00