dawn-cmake/test/tint/builtins/gen/literal/textureSampleLevel
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
..
0b0a1b.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
0b0a1b.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
0b0a1b.wgsl.expected.hlsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
0b0a1b.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
0b0a1b.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
0b0a1b.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
0bdd9a.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
0bdd9a.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
0bdd9a.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
0bdd9a.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
0bdd9a.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
0bdd9a.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1b0291.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1b0291.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b0291.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b0291.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b0291.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1b0291.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1bf73e.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
1bf73e.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1bf73e.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1bf73e.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1bf73e.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
1bf73e.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
02be59.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
02be59.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
02be59.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
02be59.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
02be59.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
02be59.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
302be4.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
302be4.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
302be4.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
302be4.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
302be4.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
302be4.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
749baf.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
749baf.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
749baf.wgsl.expected.hlsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
749baf.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
749baf.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
749baf.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
36780e.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
36780e.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
36780e.wgsl.expected.hlsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
36780e.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
36780e.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
36780e.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
979816.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
979816.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
979816.wgsl.expected.hlsl Skip Gamma and Gamut conversions for BT.709->SRGB 2022-06-22 03:14:26 +00:00
979816.wgsl.expected.msl tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
979816.wgsl.expected.spvasm Skip Gamma and Gamut conversions for BT.709->SRGB 2022-06-22 03:14:26 +00:00
979816.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
abfcc0.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
abfcc0.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
abfcc0.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
abfcc0.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
abfcc0.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
abfcc0.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
ae5e39.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
ae5e39.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
ae5e39.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
ae5e39.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
ae5e39.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
ae5e39.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
b7c55c.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
b7c55c.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
b7c55c.wgsl.expected.hlsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
b7c55c.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
b7c55c.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
b7c55c.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c6aca6.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c6aca6.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c6aca6.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c6aca6.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c6aca6.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c6aca6.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c32df7.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
c32df7.wgsl.expected.glsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c32df7.wgsl.expected.hlsl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c32df7.wgsl.expected.msl tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c32df7.wgsl.expected.spvasm tint: Shuffle builtin test directories 2022-06-01 19:49:50 +00:00
c32df7.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dcbecb.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dcbecb.wgsl.expected.glsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dcbecb.wgsl.expected.hlsl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dcbecb.wgsl.expected.msl tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dcbecb.wgsl.expected.spvasm tint: Add builtin tests for arguments passed by var 2022-06-02 14:36:10 +00:00
dcbecb.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00