dawn-cmake/test/tint/statements/compound_assign
Ben Clayton f47887d207 tint/writer/msl: Generate an array<T,N> helper
And remove the WrapArraysInStructs transform.

Wrapping arrays in structures becomes troublesome for `const` arrays, as
currently WGSL does not allow `const` structures.

MSL 2.0+ has a builtin array<> helper, but we're targetting MSL 1.2, so
we have to emit our own. Fortunately, it can be done with a few lines of
templated code.

This produces significantly cleaner output.

Change-Id: Ifc92ef21e09befa252a07c856c4b5afdc51cc2e4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94540
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Reviewed-by: David Neto <dneto@google.com>
2022-06-24 17:01:59 +00:00
..
matrix tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
scalar glsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
vector tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
complex_lhs.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
complex_lhs.wgsl.expected.glsl glsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
complex_lhs.wgsl.expected.hlsl hlsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
complex_lhs.wgsl.expected.msl tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
complex_lhs.wgsl.expected.spvasm spirv: Implement compound assignment 2022-03-31 22:30:10 +00:00
complex_lhs.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
divide_by_zero.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
divide_by_zero.wgsl.expected.glsl glsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
divide_by_zero.wgsl.expected.hlsl hlsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
divide_by_zero.wgsl.expected.msl msl: Implement compound assignment 2022-03-31 22:30:10 +00:00
divide_by_zero.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
divide_by_zero.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
for_loop.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
for_loop.wgsl.expected.glsl glsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
for_loop.wgsl.expected.hlsl hlsl: Implement compound assignment 2022-03-31 22:30:10 +00:00
for_loop.wgsl.expected.msl tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
for_loop.wgsl.expected.spvasm spirv: Implement compound assignment 2022-03-31 22:30:10 +00:00
for_loop.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
function.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
function.wgsl.expected.glsl tint/writer/glsl: Inline constant expressions 2022-06-01 01:11:59 +00:00
function.wgsl.expected.hlsl tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
function.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
function.wgsl.expected.spvasm spirv: Implement compound assignment 2022-03-31 22:30:10 +00:00
function.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
private.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
private.wgsl.expected.glsl tint/writer/glsl: Inline constant expressions 2022-06-01 01:11:59 +00:00
private.wgsl.expected.hlsl tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
private.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
private.wgsl.expected.spvasm spirv: Implement compound assignment 2022-03-31 22:30:10 +00:00
private.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
workgroup.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00
workgroup.wgsl.expected.glsl tint/writer/glsl: Inline constant expressions 2022-06-01 01:11:59 +00:00
workgroup.wgsl.expected.hlsl tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
workgroup.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
workgroup.wgsl.expected.spvasm spirv: Implement compound assignment 2022-03-31 22:30:10 +00:00
workgroup.wgsl.expected.wgsl wgsl: Add support for compound assignment 2022-03-31 22:30:10 +00:00