dawn-cmake/test/tint/builtins/gen/literal
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
..
abs Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
acos Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
all Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
any Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
arrayLength tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
asin Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atan Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atan2 Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicAdd Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicAnd Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicCompareExchangeWeak Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicExchange Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicLoad Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicMax Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicMin Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicOr Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicStore Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicSub Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
atomicXor Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
ceil Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
clamp Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
cos Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
cosh Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
countLeadingZeros Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
countOneBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
countTrailingZeros Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
cross Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
degrees Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
determinant Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
distance Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dot Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdx Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdxCoarse Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdxFine Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdy Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdyCoarse Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
dpdyFine Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
exp Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
exp2 Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
extractBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
faceForward Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
firstLeadingBit Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
firstTrailingBit Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
floor Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
fma Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
fract Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
frexp Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
fwidth Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
fwidthCoarse Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
fwidthFine Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
insertBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
inverseSqrt Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
ldexp Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
length Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
log Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
log2 Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
max Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
min Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
mix Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
modf Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
normalize Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pack2x16float Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pack2x16snorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pack2x16unorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pack4x8snorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pack4x8unorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
pow Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
radians Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
reflect Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
refract Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
reverseBits Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
round Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
select Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
sign Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
sin Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
sinh Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
smoothstep tint: Remove support for smoothStep builtin 2022-06-15 23:32:14 +00:00
sqrt Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
step Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
storageBarrier Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
tan Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
tanh Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureDimensions Skip Gamma and Gamut conversions for BT.709->SRGB 2022-06-22 03:14:26 +00:00
textureGather Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureGatherCompare 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
textureNumLayers Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureNumLevels Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureNumSamples Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSample Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSampleBias Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSampleCompare Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSampleCompareLevel Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSampleGrad Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
textureSampleLevel tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
textureStore Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
transpose Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
trunc Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unpack2x16float Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unpack2x16snorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unpack2x16unorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unpack4x8snorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unpack4x8unorm Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
workgroupBarrier Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00