dawn-cmake/test/tint/builtins
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
..
arrayLength tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
extractBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
gen tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
insertBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureDimensions Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureGather Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureLoad tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
textureNumSamples Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
degrees.spvasm
degrees.spvasm.expected.glsl
degrees.spvasm.expected.hlsl
degrees.spvasm.expected.msl
degrees.spvasm.expected.spvasm
degrees.spvasm.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
frexp.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
frexp.wgsl.expected.glsl
frexp.wgsl.expected.hlsl
frexp.wgsl.expected.msl
frexp.wgsl.expected.spvasm
frexp.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
modf.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
modf.wgsl.expected.glsl
modf.wgsl.expected.hlsl
modf.wgsl.expected.msl
modf.wgsl.expected.spvasm
modf.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
radians.spvasm
radians.spvasm.expected.glsl
radians.spvasm.expected.hlsl
radians.spvasm.expected.msl
radians.spvasm.expected.spvasm
radians.spvasm.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
repeated_use.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
repeated_use.wgsl.expected.glsl tint/writer/glsl: Inline constant expressions 2022-06-01 01:11:59 +00:00
repeated_use.wgsl.expected.hlsl tint/writer/hlsl: Inline constant expressions 2022-06-01 13:14:39 +00:00
repeated_use.wgsl.expected.msl tint/writer/msl: Inline constant expressions 2022-06-01 10:08:29 +00:00
repeated_use.wgsl.expected.spvasm Remove isNan, isInf, isFinite, and isNormal 2022-03-05 00:39:14 +00:00
repeated_use.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00