dawn-cmake/test/tint/builtins/gen/literal/textureLoad
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
..
1b8588.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1b8588.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b8588.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b8588.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b8588.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b8588.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1f2016.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1f2016.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1f2016.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1f2016.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1f2016.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1f2016.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
4fd803.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
4fd803.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
4fd803.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
4fd803.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
4fd803.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
4fd803.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
5a2f9d.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
5a2f9d.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
5a2f9d.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
5a2f9d.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
5a2f9d.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
5a2f9d.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
7c90e5.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
7c90e5.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
7c90e5.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
7c90e5.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
7c90e5.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
7c90e5.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
8acf41.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
8acf41.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
8acf41.wgsl.expected.hlsl Skip Gamma and Gamut conversions for BT.709->SRGB 2022-06-22 03:14:26 +00:00
8acf41.wgsl.expected.msl tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
8acf41.wgsl.expected.spvasm Skip Gamma and Gamut conversions for BT.709->SRGB 2022-06-22 03:14:26 +00:00
8acf41.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
9b2667.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
9b2667.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
9b2667.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
9b2667.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
9b2667.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
9b2667.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
19cf87.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
19cf87.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
19cf87.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
19cf87.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
19cf87.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
19cf87.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
79e697.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
79e697.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
79e697.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
79e697.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
79e697.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
79e697.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
81c381.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
81c381.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
81c381.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
81c381.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
81c381.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
81c381.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
87be85.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
87be85.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
87be85.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
87be85.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
87be85.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
87be85.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
6154d4.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
6154d4.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6154d4.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6154d4.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6154d4.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6154d4.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
6273b1.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
6273b1.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6273b1.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6273b1.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6273b1.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
6273b1.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
484344.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
484344.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
484344.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
484344.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
484344.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
484344.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
a9a9f5.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
a9a9f5.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a9a9f5.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a9a9f5.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a9a9f5.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a9a9f5.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
a583c9.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
a583c9.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a583c9.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a583c9.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a583c9.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
a583c9.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c2a480.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c2a480.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c2a480.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c2a480.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c2a480.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c2a480.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c378ee.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c378ee.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c378ee.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c378ee.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c378ee.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c378ee.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
e3d2cc.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
e3d2cc.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
e3d2cc.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
e3d2cc.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
e3d2cc.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
e3d2cc.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00