From cb6ddd2aa69f1327e0a7b18b7937d65c2a07b0d1 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 1 Jun 2022 10:08:29 +0000 Subject: [PATCH] tint/writer/msl: Inline constant expressions This is required to handle materialized values, and for constant expressions. Bug: tint:1504 Change-Id: Ic3ac62317241fa6f7009360128f222aeb56f62e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92083 Reviewed-by: Corentin Wallez Commit-Queue: Ben Clayton --- src/tint/writer/msl/generator_impl.cc | 150 ++++++++++--- src/tint/writer/msl/generator_impl.h | 6 + .../generator_impl_builtin_texture_test.cc | 2 +- .../writer/msl/generator_impl_cast_test.cc | 6 +- .../msl/generator_impl_constructor_test.cc | 12 +- .../msl/generator_impl_function_test.cc | 2 +- src/tint/writer/msl/generator_impl_test.cc | 22 +- ...rator_impl_variable_decl_statement_test.cc | 6 +- test/tint/access/let/matrix.wgsl.expected.msl | 2 +- test/tint/access/let/vector.wgsl.expected.msl | 6 +- .../access/var/matrix.spvasm.expected.msl | 2 +- .../access/var/vector.spvasm.expected.msl | 2 +- .../array/type_constructor.wgsl.expected.msl | 8 +- .../dynamic_index/write.wgsl.expected.msl | 16 +- .../static_index/write.wgsl.expected.msl | 16 +- .../bug/chromium/1251009.wgsl.expected.msl | 2 +- test/tint/bug/dawn/947.wgsl.expected.msl | 6 +- .../read/workgroup.wgsl.expected.msl | 2 +- .../write/workgroup.wgsl.expected.msl | 2 +- test/tint/bug/tint/1081.wgsl.expected.msl | 4 +- test/tint/bug/tint/1083.wgsl.expected.msl | 2 +- test/tint/bug/tint/1118.wgsl.expected.msl | 28 +-- test/tint/bug/tint/1121.wgsl.expected.msl | 10 +- test/tint/bug/tint/1369.wgsl.expected.msl | 2 +- test/tint/bug/tint/1520.spvasm.expected.msl | 36 ++-- test/tint/bug/tint/292.wgsl.expected.msl | 2 +- test/tint/bug/tint/403.wgsl.expected.msl | 2 +- test/tint/bug/tint/413.spvasm.expected.msl | 4 +- test/tint/bug/tint/453.wgsl.expected.msl | 4 +- test/tint/bug/tint/534.wgsl.expected.msl | 4 +- test/tint/bug/tint/749.spvasm.expected.msl | 82 +++---- test/tint/bug/tint/764.wgsl.expected.msl | 4 +- test/tint/bug/tint/824.wgsl.expected.msl | 4 +- test/tint/bug/tint/825.wgsl.expected.msl | 2 +- test/tint/bug/tint/827.wgsl.expected.msl | 2 +- test/tint/bug/tint/913.wgsl.expected.msl | 2 +- test/tint/bug/tint/914.wgsl.expected.msl | 44 ++-- test/tint/bug/tint/942.wgsl.expected.msl | 6 +- test/tint/bug/tint/943.spvasm.expected.msl | 6 +- test/tint/bug/tint/948.wgsl.expected.msl | 12 +- test/tint/bug/tint/949.wgsl.expected.msl | 16 +- .../extractBits/vec3/i32.spvasm.expected.msl | 2 +- .../extractBits/vec3/u32.spvasm.expected.msl | 2 +- .../builtins/gen/abs/002533.wgsl.expected.msl | 4 +- .../builtins/gen/abs/005174.wgsl.expected.msl | 4 +- .../builtins/gen/abs/1ce782.wgsl.expected.msl | 4 +- .../builtins/gen/abs/1e9d53.wgsl.expected.msl | 4 +- .../builtins/gen/abs/467cd1.wgsl.expected.msl | 2 +- .../builtins/gen/abs/4ad288.wgsl.expected.msl | 2 +- .../builtins/gen/abs/5ad50a.wgsl.expected.msl | 4 +- .../builtins/gen/abs/7326de.wgsl.expected.msl | 4 +- .../builtins/gen/abs/7f28e6.wgsl.expected.msl | 4 +- .../builtins/gen/abs/7faa9e.wgsl.expected.msl | 4 +- .../builtins/gen/abs/9c80a6.wgsl.expected.msl | 4 +- .../builtins/gen/abs/b96037.wgsl.expected.msl | 2 +- .../gen/acos/489247.wgsl.expected.msl | 2 +- .../gen/acos/8e2acf.wgsl.expected.msl | 4 +- .../gen/acos/a610c4.wgsl.expected.msl | 4 +- .../gen/acos/dfc915.wgsl.expected.msl | 4 +- .../builtins/gen/all/353d6a.wgsl.expected.msl | 4 +- .../builtins/gen/all/986c7b.wgsl.expected.msl | 4 +- .../builtins/gen/all/bd2dba.wgsl.expected.msl | 4 +- .../builtins/gen/all/f46790.wgsl.expected.msl | 4 +- .../builtins/gen/any/083428.wgsl.expected.msl | 4 +- .../builtins/gen/any/0e3e58.wgsl.expected.msl | 4 +- .../builtins/gen/any/2ab91a.wgsl.expected.msl | 4 +- .../builtins/gen/any/e755c1.wgsl.expected.msl | 4 +- .../gen/arrayLength/1588cd.wgsl.expected.msl | 2 +- .../gen/arrayLength/61b1c7.wgsl.expected.msl | 2 +- .../gen/arrayLength/a0f5ca.wgsl.expected.msl | 2 +- .../gen/arrayLength/cdd123.wgsl.expected.msl | 2 +- .../gen/arrayLength/cfca0a.wgsl.expected.msl | 2 +- .../gen/arrayLength/eb510f.wgsl.expected.msl | 2 +- .../gen/asin/064953.wgsl.expected.msl | 4 +- .../gen/asin/7b6a44.wgsl.expected.msl | 4 +- .../gen/asin/8cd9c9.wgsl.expected.msl | 4 +- .../gen/asin/c0c272.wgsl.expected.msl | 2 +- .../gen/atan/02979a.wgsl.expected.msl | 2 +- .../gen/atan/331e6d.wgsl.expected.msl | 4 +- .../gen/atan/a8b696.wgsl.expected.msl | 4 +- .../gen/atan/ad96e4.wgsl.expected.msl | 4 +- .../gen/atan2/57fb13.wgsl.expected.msl | 4 +- .../gen/atan2/96057c.wgsl.expected.msl | 2 +- .../gen/atan2/a70d0d.wgsl.expected.msl | 4 +- .../gen/atan2/ae713e.wgsl.expected.msl | 4 +- .../gen/atomicAdd/794055.wgsl.expected.msl | 2 +- .../gen/atomicAdd/d5db1d.wgsl.expected.msl | 2 +- .../gen/atomicAnd/34edd3.wgsl.expected.msl | 2 +- .../gen/atomicAnd/45a819.wgsl.expected.msl | 2 +- .../83580d.wgsl.expected.msl | 2 +- .../e88938.wgsl.expected.msl | 2 +- .../atomicExchange/0a5dca.wgsl.expected.msl | 2 +- .../atomicExchange/e114ba.wgsl.expected.msl | 2 +- .../gen/atomicLoad/361bf1.wgsl.expected.msl | 2 +- .../gen/atomicLoad/afcc03.wgsl.expected.msl | 2 +- .../gen/atomicMax/a89cc3.wgsl.expected.msl | 2 +- .../gen/atomicMax/beccfc.wgsl.expected.msl | 2 +- .../gen/atomicMin/278235.wgsl.expected.msl | 2 +- .../gen/atomicMin/69d383.wgsl.expected.msl | 2 +- .../gen/atomicOr/5e3d61.wgsl.expected.msl | 2 +- .../gen/atomicOr/d09248.wgsl.expected.msl | 2 +- .../gen/atomicStore/726882.wgsl.expected.msl | 2 +- .../gen/atomicStore/8bea94.wgsl.expected.msl | 2 +- .../gen/atomicSub/0d26c2.wgsl.expected.msl | 2 +- .../gen/atomicSub/77883a.wgsl.expected.msl | 2 +- .../gen/atomicXor/75dc95.wgsl.expected.msl | 2 +- .../gen/atomicXor/c8e6be.wgsl.expected.msl | 2 +- .../gen/ceil/34064b.wgsl.expected.msl | 4 +- .../gen/ceil/678655.wgsl.expected.msl | 2 +- .../gen/ceil/96f597.wgsl.expected.msl | 4 +- .../gen/ceil/b74c16.wgsl.expected.msl | 4 +- .../gen/clamp/0acf8f.wgsl.expected.msl | 4 +- .../gen/clamp/1a32e3.wgsl.expected.msl | 4 +- .../gen/clamp/2bd567.wgsl.expected.msl | 2 +- .../gen/clamp/2bde41.wgsl.expected.msl | 4 +- .../gen/clamp/548fc7.wgsl.expected.msl | 4 +- .../gen/clamp/5f0819.wgsl.expected.msl | 4 +- .../gen/clamp/6c1749.wgsl.expected.msl | 4 +- .../gen/clamp/7706d7.wgsl.expected.msl | 4 +- .../gen/clamp/867397.wgsl.expected.msl | 4 +- .../gen/clamp/a2de25.wgsl.expected.msl | 2 +- .../gen/clamp/b07c65.wgsl.expected.msl | 2 +- .../gen/clamp/bd43ce.wgsl.expected.msl | 4 +- .../builtins/gen/cos/16dc15.wgsl.expected.msl | 4 +- .../builtins/gen/cos/29d66d.wgsl.expected.msl | 4 +- .../builtins/gen/cos/c3b486.wgsl.expected.msl | 4 +- .../builtins/gen/cos/c5c28e.wgsl.expected.msl | 2 +- .../gen/cosh/377652.wgsl.expected.msl | 4 +- .../gen/cosh/c13756.wgsl.expected.msl | 4 +- .../gen/cosh/da92dd.wgsl.expected.msl | 2 +- .../gen/cosh/e0c1de.wgsl.expected.msl | 4 +- .../208d46.wgsl.expected.msl | 2 +- .../6d4656.wgsl.expected.msl | 2 +- .../70783f.wgsl.expected.msl | 4 +- .../7c38a6.wgsl.expected.msl | 4 +- .../858d40.wgsl.expected.msl | 4 +- .../ab6345.wgsl.expected.msl | 4 +- .../eab32b.wgsl.expected.msl | 4 +- .../f70103.wgsl.expected.msl | 4 +- .../gen/countOneBits/0d0e46.wgsl.expected.msl | 4 +- .../gen/countOneBits/0f7980.wgsl.expected.msl | 4 +- .../gen/countOneBits/65d2ae.wgsl.expected.msl | 4 +- .../gen/countOneBits/690cfc.wgsl.expected.msl | 4 +- .../gen/countOneBits/94fd81.wgsl.expected.msl | 4 +- .../gen/countOneBits/ae44f9.wgsl.expected.msl | 2 +- .../gen/countOneBits/af90e2.wgsl.expected.msl | 4 +- .../gen/countOneBits/fd88b2.wgsl.expected.msl | 2 +- .../1ad138.wgsl.expected.msl | 4 +- .../1dc84a.wgsl.expected.msl | 4 +- .../21e394.wgsl.expected.msl | 2 +- .../327c37.wgsl.expected.msl | 4 +- .../42fed6.wgsl.expected.msl | 2 +- .../8ed26f.wgsl.expected.msl | 4 +- .../acfacb.wgsl.expected.msl | 4 +- .../d2b4a0.wgsl.expected.msl | 4 +- .../gen/cross/041cb0.wgsl.expected.msl | 4 +- .../gen/degrees/0d170c.wgsl.expected.msl | 4 +- .../gen/degrees/1ad5df.wgsl.expected.msl | 4 +- .../gen/degrees/2af623.wgsl.expected.msl | 4 +- .../gen/degrees/51f705.wgsl.expected.msl | 2 +- .../gen/determinant/2b62ba.wgsl.expected.msl | 4 +- .../gen/determinant/a0a87c.wgsl.expected.msl | 4 +- .../gen/determinant/e19305.wgsl.expected.msl | 4 +- .../gen/distance/0657d4.wgsl.expected.msl | 4 +- .../gen/distance/9646ea.wgsl.expected.msl | 4 +- .../gen/distance/aa4055.wgsl.expected.msl | 4 +- .../gen/distance/cfed73.wgsl.expected.msl | 2 +- .../builtins/gen/dot/0c577b.wgsl.expected.msl | 4 +- .../builtins/gen/dot/7548a0.wgsl.expected.msl | 4 +- .../builtins/gen/dot/883f0e.wgsl.expected.msl | 4 +- .../builtins/gen/dot/97c7ee.wgsl.expected.msl | 4 +- .../builtins/gen/dot/ba4246.wgsl.expected.msl | 4 +- .../builtins/gen/dot/e994c7.wgsl.expected.msl | 4 +- .../builtins/gen/dot/ef6b1d.wgsl.expected.msl | 4 +- .../builtins/gen/dot/f1312c.wgsl.expected.msl | 4 +- .../builtins/gen/dot/fc5f7c.wgsl.expected.msl | 4 +- .../gen/dpdx/0763f7.wgsl.expected.msl | 2 +- .../gen/dpdx/99edb1.wgsl.expected.msl | 2 +- .../gen/dpdx/c487fa.wgsl.expected.msl | 2 +- .../gen/dpdxCoarse/9581cf.wgsl.expected.msl | 2 +- .../gen/dpdxCoarse/c28641.wgsl.expected.msl | 2 +- .../gen/dpdxCoarse/f64d7b.wgsl.expected.msl | 2 +- .../gen/dpdxFine/8c5069.wgsl.expected.msl | 2 +- .../gen/dpdxFine/9631de.wgsl.expected.msl | 2 +- .../gen/dpdxFine/f92fb6.wgsl.expected.msl | 2 +- .../gen/dpdy/699a05.wgsl.expected.msl | 2 +- .../gen/dpdy/a8b56e.wgsl.expected.msl | 2 +- .../gen/dpdy/feb40f.wgsl.expected.msl | 2 +- .../gen/dpdyCoarse/3e1ab4.wgsl.expected.msl | 2 +- .../gen/dpdyCoarse/445d24.wgsl.expected.msl | 2 +- .../gen/dpdyCoarse/ae1873.wgsl.expected.msl | 2 +- .../gen/dpdyFine/1fb7ab.wgsl.expected.msl | 2 +- .../gen/dpdyFine/d0a648.wgsl.expected.msl | 2 +- .../gen/dpdyFine/df33aa.wgsl.expected.msl | 2 +- .../builtins/gen/exp/0f70eb.wgsl.expected.msl | 4 +- .../builtins/gen/exp/1951e7.wgsl.expected.msl | 4 +- .../builtins/gen/exp/771fd2.wgsl.expected.msl | 2 +- .../builtins/gen/exp/d98450.wgsl.expected.msl | 4 +- .../gen/exp2/1f8680.wgsl.expected.msl | 4 +- .../gen/exp2/a9d0a7.wgsl.expected.msl | 4 +- .../gen/exp2/d6777c.wgsl.expected.msl | 4 +- .../gen/exp2/dea523.wgsl.expected.msl | 2 +- .../gen/extractBits/12b197.wgsl.expected.msl | 4 +- .../gen/extractBits/249874.wgsl.expected.msl | 2 +- .../gen/extractBits/631377.wgsl.expected.msl | 4 +- .../gen/extractBits/a99a8d.wgsl.expected.msl | 4 +- .../gen/extractBits/ce81f8.wgsl.expected.msl | 2 +- .../gen/extractBits/e04f5d.wgsl.expected.msl | 4 +- .../gen/extractBits/f28f69.wgsl.expected.msl | 4 +- .../gen/extractBits/fb850f.wgsl.expected.msl | 4 +- .../gen/faceForward/5afbd5.wgsl.expected.msl | 4 +- .../gen/faceForward/b316e5.wgsl.expected.msl | 4 +- .../gen/faceForward/e6908b.wgsl.expected.msl | 4 +- .../firstLeadingBit/000ff3.wgsl.expected.msl | 4 +- .../firstLeadingBit/35053e.wgsl.expected.msl | 4 +- .../firstLeadingBit/3fd7d0.wgsl.expected.msl | 4 +- .../firstLeadingBit/57a1a3.wgsl.expected.msl | 2 +- .../firstLeadingBit/6fe804.wgsl.expected.msl | 4 +- .../firstLeadingBit/a622c2.wgsl.expected.msl | 4 +- .../firstLeadingBit/c1f940.wgsl.expected.msl | 4 +- .../firstLeadingBit/f0779d.wgsl.expected.msl | 2 +- .../firstTrailingBit/110f2c.wgsl.expected.msl | 4 +- .../firstTrailingBit/3a2acc.wgsl.expected.msl | 2 +- .../firstTrailingBit/45eb10.wgsl.expected.msl | 4 +- .../firstTrailingBit/47d475.wgsl.expected.msl | 2 +- .../firstTrailingBit/50c072.wgsl.expected.msl | 4 +- .../firstTrailingBit/7496d6.wgsl.expected.msl | 4 +- .../firstTrailingBit/86551b.wgsl.expected.msl | 4 +- .../firstTrailingBit/cb51ce.wgsl.expected.msl | 4 +- .../gen/floor/3bccc4.wgsl.expected.msl | 4 +- .../gen/floor/5fc9ac.wgsl.expected.msl | 4 +- .../gen/floor/60d7ea.wgsl.expected.msl | 4 +- .../gen/floor/66f154.wgsl.expected.msl | 2 +- .../builtins/gen/fma/26a7a9.wgsl.expected.msl | 4 +- .../builtins/gen/fma/6a3283.wgsl.expected.msl | 4 +- .../builtins/gen/fma/c10ba3.wgsl.expected.msl | 2 +- .../builtins/gen/fma/e17c5c.wgsl.expected.msl | 4 +- .../gen/fract/8bc1e9.wgsl.expected.msl | 4 +- .../gen/fract/943cb1.wgsl.expected.msl | 4 +- .../gen/fract/a49758.wgsl.expected.msl | 4 +- .../gen/fract/fa5c71.wgsl.expected.msl | 2 +- .../gen/frexp/368997.wgsl.expected.msl | 4 +- .../gen/frexp/3c4f48.wgsl.expected.msl | 4 +- .../gen/frexp/4bdfc7.wgsl.expected.msl | 4 +- .../gen/frexp/eabd40.wgsl.expected.msl | 2 +- .../gen/fwidth/5d1b39.wgsl.expected.msl | 2 +- .../gen/fwidth/b83ebb.wgsl.expected.msl | 2 +- .../gen/fwidth/d2ab9a.wgsl.expected.msl | 2 +- .../gen/fwidthCoarse/1e59d9.wgsl.expected.msl | 2 +- .../gen/fwidthCoarse/4e4fc4.wgsl.expected.msl | 2 +- .../gen/fwidthCoarse/e653f7.wgsl.expected.msl | 2 +- .../gen/fwidthFine/523fdc.wgsl.expected.msl | 2 +- .../gen/fwidthFine/68f4ef.wgsl.expected.msl | 2 +- .../gen/fwidthFine/ff6aa0.wgsl.expected.msl | 2 +- .../gen/insertBits/3c7ba5.wgsl.expected.msl | 4 +- .../gen/insertBits/428b0b.wgsl.expected.msl | 4 +- .../gen/insertBits/51ede1.wgsl.expected.msl | 4 +- .../gen/insertBits/65468b.wgsl.expected.msl | 2 +- .../gen/insertBits/87826b.wgsl.expected.msl | 4 +- .../gen/insertBits/d86978.wgsl.expected.msl | 4 +- .../gen/insertBits/e3e3a2.wgsl.expected.msl | 2 +- .../gen/insertBits/fe6ba6.wgsl.expected.msl | 4 +- .../gen/inverseSqrt/84407e.wgsl.expected.msl | 2 +- .../gen/inverseSqrt/8f2bd2.wgsl.expected.msl | 4 +- .../gen/inverseSqrt/b197b1.wgsl.expected.msl | 4 +- .../gen/inverseSqrt/c22347.wgsl.expected.msl | 4 +- .../gen/ldexp/a31cdc.wgsl.expected.msl | 4 +- .../gen/ldexp/abd718.wgsl.expected.msl | 4 +- .../gen/ldexp/cc9cde.wgsl.expected.msl | 4 +- .../gen/ldexp/db8b49.wgsl.expected.msl | 2 +- .../gen/length/056071.wgsl.expected.msl | 4 +- .../gen/length/602a17.wgsl.expected.msl | 2 +- .../gen/length/afde8b.wgsl.expected.msl | 4 +- .../gen/length/becebf.wgsl.expected.msl | 4 +- .../builtins/gen/log/3da25a.wgsl.expected.msl | 4 +- .../builtins/gen/log/7114a6.wgsl.expected.msl | 2 +- .../builtins/gen/log/b2ce28.wgsl.expected.msl | 4 +- .../builtins/gen/log/f4c570.wgsl.expected.msl | 4 +- .../gen/log2/4036ed.wgsl.expected.msl | 2 +- .../gen/log2/902988.wgsl.expected.msl | 4 +- .../gen/log2/adb233.wgsl.expected.msl | 4 +- .../gen/log2/aea659.wgsl.expected.msl | 4 +- .../builtins/gen/max/0c0aae.wgsl.expected.msl | 2 +- .../builtins/gen/max/25eafe.wgsl.expected.msl | 4 +- .../builtins/gen/max/320815.wgsl.expected.msl | 4 +- .../builtins/gen/max/44a39d.wgsl.expected.msl | 2 +- .../builtins/gen/max/453e04.wgsl.expected.msl | 4 +- .../builtins/gen/max/462050.wgsl.expected.msl | 4 +- .../builtins/gen/max/4883ac.wgsl.expected.msl | 4 +- .../builtins/gen/max/85e6bc.wgsl.expected.msl | 4 +- .../builtins/gen/max/a93419.wgsl.expected.msl | 4 +- .../builtins/gen/max/b1b73a.wgsl.expected.msl | 4 +- .../builtins/gen/max/ce7c30.wgsl.expected.msl | 2 +- .../builtins/gen/max/e8192f.wgsl.expected.msl | 4 +- .../builtins/gen/min/03c7e3.wgsl.expected.msl | 4 +- .../builtins/gen/min/0dc614.wgsl.expected.msl | 4 +- .../builtins/gen/min/3941e1.wgsl.expected.msl | 4 +- .../builtins/gen/min/46c5d3.wgsl.expected.msl | 2 +- .../builtins/gen/min/82b28f.wgsl.expected.msl | 4 +- .../builtins/gen/min/93cfc4.wgsl.expected.msl | 4 +- .../builtins/gen/min/a45171.wgsl.expected.msl | 4 +- .../builtins/gen/min/aa28ad.wgsl.expected.msl | 4 +- .../builtins/gen/min/af326d.wgsl.expected.msl | 2 +- .../builtins/gen/min/c70bb7.wgsl.expected.msl | 4 +- .../builtins/gen/min/c73147.wgsl.expected.msl | 2 +- .../builtins/gen/min/c76fa6.wgsl.expected.msl | 4 +- .../builtins/gen/mix/0c8c33.wgsl.expected.msl | 4 +- .../builtins/gen/mix/1faeb1.wgsl.expected.msl | 4 +- .../builtins/gen/mix/2fadab.wgsl.expected.msl | 4 +- .../builtins/gen/mix/315264.wgsl.expected.msl | 4 +- .../builtins/gen/mix/4f0b5e.wgsl.expected.msl | 2 +- .../builtins/gen/mix/6f8adc.wgsl.expected.msl | 4 +- .../builtins/gen/mix/c37ede.wgsl.expected.msl | 4 +- .../gen/modf/180fed.wgsl.expected.msl | 2 +- .../gen/modf/9b75f7.wgsl.expected.msl | 4 +- .../gen/modf/ec2dbc.wgsl.expected.msl | 4 +- .../gen/modf/f5f20d.wgsl.expected.msl | 4 +- .../gen/normalize/64d8c0.wgsl.expected.msl | 4 +- .../gen/normalize/9a0aab.wgsl.expected.msl | 4 +- .../gen/normalize/fc2ef1.wgsl.expected.msl | 4 +- .../pack2x16float/0e97b3.wgsl.expected.msl | 4 +- .../pack2x16snorm/6c169b.wgsl.expected.msl | 4 +- .../pack2x16unorm/0f08e4.wgsl.expected.msl | 4 +- .../gen/pack4x8snorm/4d22e7.wgsl.expected.msl | 4 +- .../gen/pack4x8unorm/95c456.wgsl.expected.msl | 4 +- .../builtins/gen/pow/04a908.wgsl.expected.msl | 4 +- .../builtins/gen/pow/46e029.wgsl.expected.msl | 2 +- .../builtins/gen/pow/4a46c9.wgsl.expected.msl | 4 +- .../builtins/gen/pow/e60ea5.wgsl.expected.msl | 4 +- .../gen/radians/09b7fc.wgsl.expected.msl | 4 +- .../gen/radians/61687a.wgsl.expected.msl | 4 +- .../gen/radians/6b0ff2.wgsl.expected.msl | 2 +- .../gen/radians/f96258.wgsl.expected.msl | 4 +- .../gen/reflect/05357e.wgsl.expected.msl | 4 +- .../gen/reflect/b61e10.wgsl.expected.msl | 4 +- .../gen/reflect/f47fdb.wgsl.expected.msl | 4 +- .../gen/refract/7e02e6.wgsl.expected.msl | 4 +- .../gen/refract/cbc1d2.wgsl.expected.msl | 4 +- .../gen/refract/cd905f.wgsl.expected.msl | 4 +- .../gen/reverseBits/222177.wgsl.expected.msl | 4 +- .../gen/reverseBits/35fea9.wgsl.expected.msl | 4 +- .../gen/reverseBits/4dbd6f.wgsl.expected.msl | 4 +- .../gen/reverseBits/7c4269.wgsl.expected.msl | 2 +- .../gen/reverseBits/a6ccd4.wgsl.expected.msl | 4 +- .../gen/reverseBits/c21bc1.wgsl.expected.msl | 4 +- .../gen/reverseBits/e1f4c1.wgsl.expected.msl | 4 +- .../gen/reverseBits/e31adf.wgsl.expected.msl | 2 +- .../gen/round/106c0b.wgsl.expected.msl | 4 +- .../gen/round/1c7897.wgsl.expected.msl | 4 +- .../gen/round/52c84d.wgsl.expected.msl | 4 +- .../gen/round/9edc38.wgsl.expected.msl | 2 +- .../gen/select/00b848.wgsl.expected.msl | 4 +- .../gen/select/01e2cd.wgsl.expected.msl | 4 +- .../gen/select/087ea4.wgsl.expected.msl | 4 +- .../gen/select/1e960b.wgsl.expected.msl | 4 +- .../gen/select/266aff.wgsl.expected.msl | 4 +- .../gen/select/28a27e.wgsl.expected.msl | 4 +- .../gen/select/3c25ce.wgsl.expected.msl | 4 +- .../gen/select/416e14.wgsl.expected.msl | 4 +- .../gen/select/51b047.wgsl.expected.msl | 4 +- .../gen/select/713567.wgsl.expected.msl | 4 +- .../gen/select/78be5f.wgsl.expected.msl | 4 +- .../gen/select/80a9a9.wgsl.expected.msl | 4 +- .../gen/select/8fa62c.wgsl.expected.msl | 4 +- .../gen/select/99f883.wgsl.expected.msl | 4 +- .../gen/select/a2860e.wgsl.expected.msl | 4 +- .../gen/select/ab069f.wgsl.expected.msl | 4 +- .../gen/select/b04721.wgsl.expected.msl | 4 +- .../gen/select/bb447f.wgsl.expected.msl | 4 +- .../gen/select/bb8aae.wgsl.expected.msl | 4 +- .../gen/select/bf3d29.wgsl.expected.msl | 4 +- .../gen/select/c31f9e.wgsl.expected.msl | 4 +- .../gen/select/c41bd1.wgsl.expected.msl | 4 +- .../gen/select/c4a4ef.wgsl.expected.msl | 4 +- .../gen/select/cb9301.wgsl.expected.msl | 4 +- .../gen/select/e3e028.wgsl.expected.msl | 4 +- .../gen/select/ebfea2.wgsl.expected.msl | 4 +- .../gen/select/ed8a15.wgsl.expected.msl | 4 +- .../gen/select/fb7e53.wgsl.expected.msl | 4 +- .../gen/sign/159665.wgsl.expected.msl | 4 +- .../gen/sign/b8f634.wgsl.expected.msl | 4 +- .../gen/sign/d065d8.wgsl.expected.msl | 4 +- .../gen/sign/dd790e.wgsl.expected.msl | 2 +- .../builtins/gen/sin/01f241.wgsl.expected.msl | 4 +- .../builtins/gen/sin/4e3979.wgsl.expected.msl | 4 +- .../builtins/gen/sin/b78c91.wgsl.expected.msl | 2 +- .../builtins/gen/sin/fc8bc4.wgsl.expected.msl | 4 +- .../gen/sinh/445e33.wgsl.expected.msl | 4 +- .../gen/sinh/7bb598.wgsl.expected.msl | 2 +- .../gen/sinh/b9860e.wgsl.expected.msl | 4 +- .../gen/sinh/c9a5eb.wgsl.expected.msl | 4 +- .../gen/smoothstep/392c19.wgsl.expected.msl | 4 +- .../gen/smoothstep/40864c.wgsl.expected.msl | 4 +- .../gen/smoothstep/5f615b.wgsl.expected.msl | 4 +- .../gen/smoothstep/658be3.wgsl.expected.msl | 4 +- .../gen/smoothstep/6c4975.wgsl.expected.msl | 2 +- .../gen/smoothstep/aad1db.wgsl.expected.msl | 4 +- .../gen/smoothstep/c11eef.wgsl.expected.msl | 4 +- .../gen/smoothstep/cb0bfb.wgsl.expected.msl | 2 +- .../gen/sqrt/20c74e.wgsl.expected.msl | 2 +- .../gen/sqrt/8c7024.wgsl.expected.msl | 4 +- .../gen/sqrt/aa0d7a.wgsl.expected.msl | 4 +- .../gen/sqrt/f8c59a.wgsl.expected.msl | 4 +- .../gen/step/0b073b.wgsl.expected.msl | 2 +- .../gen/step/19accd.wgsl.expected.msl | 4 +- .../gen/step/334303.wgsl.expected.msl | 4 +- .../gen/step/e2b337.wgsl.expected.msl | 4 +- .../builtins/gen/tan/244e2a.wgsl.expected.msl | 4 +- .../builtins/gen/tan/2f030e.wgsl.expected.msl | 2 +- .../builtins/gen/tan/7ea104.wgsl.expected.msl | 4 +- .../builtins/gen/tan/8ce3e9.wgsl.expected.msl | 4 +- .../gen/tanh/5663c5.wgsl.expected.msl | 4 +- .../gen/tanh/5724b3.wgsl.expected.msl | 4 +- .../gen/tanh/9f9fb9.wgsl.expected.msl | 4 +- .../gen/tanh/c15fdb.wgsl.expected.msl | 2 +- .../002b2a.wgsl.expected.msl | 2 +- .../012b82.wgsl.expected.msl | 2 +- .../08753d.wgsl.expected.msl | 2 +- .../0c4772.wgsl.expected.msl | 2 +- .../0cce40.wgsl.expected.msl | 2 +- .../0cf2ff.wgsl.expected.msl | 2 +- .../0d8b7e.wgsl.expected.msl | 2 +- .../0e32ee.wgsl.expected.msl | 2 +- .../0f3c50.wgsl.expected.msl | 2 +- .../1191a5.wgsl.expected.msl | 2 +- .../12c9bb.wgsl.expected.msl | 2 +- .../147998.wgsl.expected.msl | 2 +- .../16036c.wgsl.expected.msl | 2 +- .../1b71f0.wgsl.expected.msl | 2 +- .../1d6c26.wgsl.expected.msl | 2 +- .../1e9e39.wgsl.expected.msl | 2 +- .../1f20c5.wgsl.expected.msl | 2 +- .../214dd4.wgsl.expected.msl | 2 +- .../221f22.wgsl.expected.msl | 2 +- .../267788.wgsl.expected.msl | 2 +- .../26bdfa.wgsl.expected.msl | 2 +- .../26ef6c.wgsl.expected.msl | 2 +- .../2ad087.wgsl.expected.msl | 2 +- .../2efa05.wgsl.expected.msl | 2 +- .../2f289f.wgsl.expected.msl | 2 +- .../2fe1cc.wgsl.expected.msl | 2 +- .../318ecc.wgsl.expected.msl | 2 +- .../340d06.wgsl.expected.msl | 2 +- .../398e30.wgsl.expected.msl | 2 +- .../3a94ea.wgsl.expected.msl | 2 +- .../3aca08.wgsl.expected.msl | 2 +- .../3c5ad8.wgsl.expected.msl | 2 +- .../4152a6.wgsl.expected.msl | 2 +- .../423f99.wgsl.expected.msl | 2 +- .../4267ee.wgsl.expected.msl | 2 +- .../42d4e6.wgsl.expected.msl | 2 +- .../48cb89.wgsl.expected.msl | 2 +- .../49d274.wgsl.expected.msl | 2 +- .../4df9a8.wgsl.expected.msl | 2 +- .../50a9ee.wgsl.expected.msl | 2 +- .../52045c.wgsl.expected.msl | 2 +- .../55b23e.wgsl.expected.msl | 2 +- .../579629.wgsl.expected.msl | 2 +- .../57da0b.wgsl.expected.msl | 2 +- .../57e28f.wgsl.expected.msl | 2 +- .../58a515.wgsl.expected.msl | 2 +- .../5985f3.wgsl.expected.msl | 2 +- .../5caa5e.wgsl.expected.msl | 2 +- .../5e295d.wgsl.expected.msl | 2 +- .../60bf54.wgsl.expected.msl | 2 +- .../63f3cf.wgsl.expected.msl | 2 +- .../68105c.wgsl.expected.msl | 2 +- .../686ef2.wgsl.expected.msl | 2 +- .../6adac6.wgsl.expected.msl | 2 +- .../6ec1b4.wgsl.expected.msl | 2 +- .../6f0d79.wgsl.expected.msl | 2 +- .../702c53.wgsl.expected.msl | 2 +- .../72e5d6.wgsl.expected.msl | 2 +- .../79df87.wgsl.expected.msl | 2 +- .../7bf826.wgsl.expected.msl | 2 +- .../7f5c2e.wgsl.expected.msl | 2 +- .../8028f3.wgsl.expected.msl | 2 +- .../811679.wgsl.expected.msl | 2 +- .../820596.wgsl.expected.msl | 2 +- .../83ee5a.wgsl.expected.msl | 2 +- .../85d556.wgsl.expected.msl | 2 +- .../88ad17.wgsl.expected.msl | 2 +- .../8aa4c4.wgsl.expected.msl | 2 +- .../8deb5e.wgsl.expected.msl | 2 +- .../8f20bf.wgsl.expected.msl | 2 +- .../8fca0f.wgsl.expected.msl | 2 +- .../90340b.wgsl.expected.msl | 2 +- .../9042ab.wgsl.expected.msl | 2 +- .../9393b0.wgsl.expected.msl | 2 +- .../939fdb.wgsl.expected.msl | 2 +- .../962dcd.wgsl.expected.msl | 2 +- .../9abfe5.wgsl.expected.msl | 2 +- .../9c9c57.wgsl.expected.msl | 2 +- .../9da9e2.wgsl.expected.msl | 2 +- .../9eb8d8.wgsl.expected.msl | 2 +- .../9f8e46.wgsl.expected.msl | 2 +- .../a01845.wgsl.expected.msl | 2 +- .../a7d565.wgsl.expected.msl | 2 +- .../a863f2.wgsl.expected.msl | 2 +- .../a9c9c1.wgsl.expected.msl | 2 +- .../b0e16d.wgsl.expected.msl | 2 +- .../b3c954.wgsl.expected.msl | 2 +- .../b3e407.wgsl.expected.msl | 2 +- .../b91240.wgsl.expected.msl | 2 +- .../ba1481.wgsl.expected.msl | 2 +- .../bb3dde.wgsl.expected.msl | 2 +- .../c30e75.wgsl.expected.msl | 2 +- .../c7943d.wgsl.expected.msl | 2 +- .../cc968c.wgsl.expected.msl | 2 +- .../cccc8f.wgsl.expected.msl | 2 +- .../cd76a7.wgsl.expected.msl | 2 +- .../cdf473.wgsl.expected.msl | 2 +- .../cec841.wgsl.expected.msl | 2 +- .../cf7e43.wgsl.expected.msl | 2 +- .../d125bc.wgsl.expected.msl | 2 +- .../d83c45.wgsl.expected.msl | 2 +- .../daf7c0.wgsl.expected.msl | 2 +- .../dc2dd0.wgsl.expected.msl | 2 +- .../e927be.wgsl.expected.msl | 2 +- .../e9e96c.wgsl.expected.msl | 2 +- .../ef5b89.wgsl.expected.msl | 2 +- .../efc8a4.wgsl.expected.msl | 2 +- .../f60bdb.wgsl.expected.msl | 2 +- .../f7145b.wgsl.expected.msl | 2 +- .../f931c7.wgsl.expected.msl | 2 +- .../fa9859.wgsl.expected.msl | 2 +- .../fb5670.wgsl.expected.msl | 2 +- .../fcac78.wgsl.expected.msl | 2 +- .../textureGather/01305f.wgsl.expected.msl | 4 +- .../textureGather/06030a.wgsl.expected.msl | 4 +- .../textureGather/10c554.wgsl.expected.msl | 4 +- .../textureGather/15d79c.wgsl.expected.msl | 4 +- .../textureGather/2e0ed5.wgsl.expected.msl | 4 +- .../textureGather/3112e8.wgsl.expected.msl | 4 +- .../textureGather/3c527e.wgsl.expected.msl | 4 +- .../textureGather/43025d.wgsl.expected.msl | 4 +- .../textureGather/4f2350.wgsl.expected.msl | 4 +- .../textureGather/51cf0b.wgsl.expected.msl | 4 +- .../textureGather/53ece6.wgsl.expected.msl | 4 +- .../textureGather/57bfc6.wgsl.expected.msl | 4 +- .../textureGather/587ba3.wgsl.expected.msl | 4 +- .../textureGather/69e0fb.wgsl.expected.msl | 4 +- .../textureGather/93003d.wgsl.expected.msl | 4 +- .../textureGather/9a6358.wgsl.expected.msl | 4 +- .../textureGather/9efca2.wgsl.expected.msl | 4 +- .../textureGather/bd0b1e.wgsl.expected.msl | 4 +- .../textureGather/c409ae.wgsl.expected.msl | 4 +- .../textureGather/c55822.wgsl.expected.msl | 4 +- .../textureGather/e1b67d.wgsl.expected.msl | 4 +- .../textureGather/e9eff6.wgsl.expected.msl | 4 +- .../textureGather/f5f3ba.wgsl.expected.msl | 4 +- .../textureGather/f7995a.wgsl.expected.msl | 4 +- .../182fd4.wgsl.expected.msl | 4 +- .../60d2d1.wgsl.expected.msl | 4 +- .../6d9352.wgsl.expected.msl | 4 +- .../6f1267.wgsl.expected.msl | 4 +- .../783e65.wgsl.expected.msl | 4 +- .../a5f587.wgsl.expected.msl | 4 +- .../gen/textureLoad/19cf87.wgsl.expected.msl | 4 +- .../gen/textureLoad/1b8588.wgsl.expected.msl | 2 +- .../gen/textureLoad/1f2016.wgsl.expected.msl | 4 +- .../gen/textureLoad/484344.wgsl.expected.msl | 4 +- .../gen/textureLoad/4fd803.wgsl.expected.msl | 4 +- .../gen/textureLoad/5a2f9d.wgsl.expected.msl | 2 +- .../gen/textureLoad/6154d4.wgsl.expected.msl | 4 +- .../gen/textureLoad/6273b1.wgsl.expected.msl | 4 +- .../gen/textureLoad/79e697.wgsl.expected.msl | 4 +- .../gen/textureLoad/7c90e5.wgsl.expected.msl | 4 +- .../gen/textureLoad/81c381.wgsl.expected.msl | 2 +- .../gen/textureLoad/87be85.wgsl.expected.msl | 4 +- .../gen/textureLoad/8acf41.wgsl.expected.msl | 4 +- .../gen/textureLoad/9b2667.wgsl.expected.msl | 4 +- .../gen/textureLoad/a583c9.wgsl.expected.msl | 4 +- .../gen/textureLoad/a9a9f5.wgsl.expected.msl | 4 +- .../gen/textureLoad/c2a480.wgsl.expected.msl | 4 +- .../gen/textureLoad/c378ee.wgsl.expected.msl | 4 +- .../gen/textureLoad/e3d2cc.wgsl.expected.msl | 4 +- .../textureNumLayers/024820.wgsl.expected.msl | 2 +- .../textureNumLayers/053df7.wgsl.expected.msl | 2 +- .../textureNumLayers/058cc3.wgsl.expected.msl | 2 +- .../textureNumLayers/09d05d.wgsl.expected.msl | 2 +- .../textureNumLayers/13b4ce.wgsl.expected.msl | 2 +- .../textureNumLayers/22e53b.wgsl.expected.msl | 2 +- .../textureNumLayers/562013.wgsl.expected.msl | 2 +- .../textureNumLayers/5d59cd.wgsl.expected.msl | 2 +- .../textureNumLayers/68a65b.wgsl.expected.msl | 2 +- .../textureNumLayers/778bd1.wgsl.expected.msl | 2 +- .../textureNumLayers/7f1937.wgsl.expected.msl | 2 +- .../textureNumLayers/85f980.wgsl.expected.msl | 2 +- .../textureNumLayers/87953e.wgsl.expected.msl | 2 +- .../textureNumLayers/893e7c.wgsl.expected.msl | 2 +- .../textureNumLayers/9700fb.wgsl.expected.msl | 2 +- .../textureNumLayers/a216d2.wgsl.expected.msl | 2 +- .../textureNumLayers/cd5dc8.wgsl.expected.msl | 2 +- .../textureNumLayers/d5b228.wgsl.expected.msl | 2 +- .../textureNumLayers/e31be1.wgsl.expected.msl | 2 +- .../textureNumLayers/e653c0.wgsl.expected.msl | 2 +- .../textureNumLayers/ee942f.wgsl.expected.msl | 2 +- .../textureNumLayers/f33005.wgsl.expected.msl | 2 +- .../textureNumLayers/fcec98.wgsl.expected.msl | 2 +- .../textureNumLayers/ff5e89.wgsl.expected.msl | 2 +- .../textureNumLevels/076cb5.wgsl.expected.msl | 2 +- .../textureNumLevels/080d95.wgsl.expected.msl | 2 +- .../textureNumLevels/09ddd0.wgsl.expected.msl | 2 +- .../textureNumLevels/105988.wgsl.expected.msl | 2 +- .../textureNumLevels/1e6f3b.wgsl.expected.msl | 2 +- .../textureNumLevels/23f750.wgsl.expected.msl | 2 +- .../textureNumLevels/2c3575.wgsl.expected.msl | 2 +- .../textureNumLevels/32a0ae.wgsl.expected.msl | 2 +- .../textureNumLevels/5101cf.wgsl.expected.msl | 2 +- .../textureNumLevels/51b5bb.wgsl.expected.msl | 2 +- .../textureNumLevels/897aaf.wgsl.expected.msl | 2 +- .../textureNumLevels/9da7a5.wgsl.expected.msl | 2 +- .../textureNumLevels/a91c03.wgsl.expected.msl | 2 +- .../textureNumLevels/aee7c8.wgsl.expected.msl | 2 +- .../textureNumLevels/b1b12b.wgsl.expected.msl | 2 +- .../textureNumLevels/b4f5ea.wgsl.expected.msl | 2 +- .../textureNumLevels/d004a9.wgsl.expected.msl | 2 +- .../textureNumLevels/dca09e.wgsl.expected.msl | 2 +- .../textureNumLevels/e67231.wgsl.expected.msl | 2 +- .../textureNumLevels/ed078b.wgsl.expected.msl | 2 +- .../textureNumLevels/f46ec6.wgsl.expected.msl | 2 +- .../textureNumLevels/f5828d.wgsl.expected.msl | 2 +- .../2c6f14.wgsl.expected.msl | 2 +- .../42f8bb.wgsl.expected.msl | 2 +- .../449d23.wgsl.expected.msl | 2 +- .../a3c8a0.wgsl.expected.msl | 2 +- .../textureSample/02aa9b.wgsl.expected.msl | 2 +- .../textureSample/100dc0.wgsl.expected.msl | 2 +- .../textureSample/38bbb9.wgsl.expected.msl | 2 +- .../textureSample/3b50bd.wgsl.expected.msl | 2 +- .../textureSample/4dd1bf.wgsl.expected.msl | 2 +- .../textureSample/51b514.wgsl.expected.msl | 2 +- .../textureSample/667d76.wgsl.expected.msl | 2 +- .../textureSample/6717ca.wgsl.expected.msl | 2 +- .../textureSample/7c3baa.wgsl.expected.msl | 2 +- .../textureSample/7e9ffd.wgsl.expected.msl | 2 +- .../textureSample/8522e7.wgsl.expected.msl | 2 +- .../textureSample/c2f4e8.wgsl.expected.msl | 2 +- .../textureSample/e53267.wgsl.expected.msl | 2 +- .../textureSample/ea7030.wgsl.expected.msl | 2 +- .../53b9f7.wgsl.expected.msl | 2 +- .../65ac50.wgsl.expected.msl | 2 +- .../6a9113.wgsl.expected.msl | 2 +- .../80e579.wgsl.expected.msl | 2 +- .../81c19a.wgsl.expected.msl | 2 +- .../d3fa1b.wgsl.expected.msl | 2 +- .../df91bb.wgsl.expected.msl | 2 +- .../eed7c4.wgsl.expected.msl | 2 +- .../25fcd1.wgsl.expected.msl | 2 +- .../3a5923.wgsl.expected.msl | 2 +- .../63fb83.wgsl.expected.msl | 2 +- .../98b85c.wgsl.expected.msl | 2 +- .../a3ca7e.wgsl.expected.msl | 2 +- .../dd431d.wgsl.expected.msl | 2 +- .../011a8f.wgsl.expected.msl | 4 +- .../1116ed.wgsl.expected.msl | 4 +- .../1568e3.wgsl.expected.msl | 4 +- .../2ad2b1.wgsl.expected.msl | 4 +- .../4cf3a2.wgsl.expected.msl | 4 +- .../f8121c.wgsl.expected.msl | 4 +- .../21402b.wgsl.expected.msl | 4 +- .../2ecd8f.wgsl.expected.msl | 4 +- .../468f88.wgsl.expected.msl | 4 +- .../521263.wgsl.expected.msl | 4 +- .../5312f4.wgsl.expected.msl | 4 +- .../872f00.wgsl.expected.msl | 4 +- .../e383db.wgsl.expected.msl | 4 +- .../e9a2f7.wgsl.expected.msl | 4 +- .../02be59.wgsl.expected.msl | 4 +- .../0bdd9a.wgsl.expected.msl | 4 +- .../1b0291.wgsl.expected.msl | 4 +- .../1bf73e.wgsl.expected.msl | 4 +- .../302be4.wgsl.expected.msl | 4 +- .../47daa4.wgsl.expected.msl | 4 +- .../690d95.wgsl.expected.msl | 4 +- .../979816.wgsl.expected.msl | 4 +- .../9bd37b.wgsl.expected.msl | 4 +- .../a4af26.wgsl.expected.msl | 4 +- .../abfcc0.wgsl.expected.msl | 4 +- .../ae5e39.wgsl.expected.msl | 4 +- .../ba93b3.wgsl.expected.msl | 4 +- .../c32df7.wgsl.expected.msl | 4 +- .../c6aca6.wgsl.expected.msl | 4 +- .../gen/textureStore/05ce15.wgsl.expected.msl | 4 +- .../gen/textureStore/064c7f.wgsl.expected.msl | 4 +- .../gen/textureStore/068641.wgsl.expected.msl | 4 +- .../gen/textureStore/0af6b5.wgsl.expected.msl | 4 +- .../gen/textureStore/0c3dff.wgsl.expected.msl | 4 +- .../gen/textureStore/102722.wgsl.expected.msl | 4 +- .../gen/textureStore/1bbd08.wgsl.expected.msl | 4 +- .../gen/textureStore/1c02e7.wgsl.expected.msl | 4 +- .../gen/textureStore/22d955.wgsl.expected.msl | 4 +- .../gen/textureStore/26bf70.wgsl.expected.msl | 4 +- .../gen/textureStore/2796b4.wgsl.expected.msl | 4 +- .../gen/textureStore/2ac6c7.wgsl.expected.msl | 4 +- .../gen/textureStore/2eb2a4.wgsl.expected.msl | 4 +- .../gen/textureStore/2ed2a3.wgsl.expected.msl | 4 +- .../gen/textureStore/31745b.wgsl.expected.msl | 4 +- .../gen/textureStore/32f368.wgsl.expected.msl | 4 +- .../gen/textureStore/331aee.wgsl.expected.msl | 4 +- .../gen/textureStore/38e8d7.wgsl.expected.msl | 4 +- .../gen/textureStore/3a52ac.wgsl.expected.msl | 4 +- .../gen/textureStore/3bb7a1.wgsl.expected.msl | 4 +- .../gen/textureStore/3bec15.wgsl.expected.msl | 4 +- .../gen/textureStore/441ba8.wgsl.expected.msl | 4 +- .../gen/textureStore/4fc057.wgsl.expected.msl | 4 +- .../gen/textureStore/5a2f8f.wgsl.expected.msl | 4 +- .../gen/textureStore/60975f.wgsl.expected.msl | 4 +- .../gen/textureStore/682fd6.wgsl.expected.msl | 4 +- .../gen/textureStore/6b75c3.wgsl.expected.msl | 4 +- .../gen/textureStore/6b80d2.wgsl.expected.msl | 4 +- .../gen/textureStore/6cff2e.wgsl.expected.msl | 4 +- .../gen/textureStore/6da692.wgsl.expected.msl | 4 +- .../gen/textureStore/731349.wgsl.expected.msl | 4 +- .../gen/textureStore/752da6.wgsl.expected.msl | 4 +- .../gen/textureStore/77c0ae.wgsl.expected.msl | 4 +- .../gen/textureStore/7cec8d.wgsl.expected.msl | 4 +- .../gen/textureStore/7f7fae.wgsl.expected.msl | 4 +- .../gen/textureStore/804942.wgsl.expected.msl | 4 +- .../gen/textureStore/805dae.wgsl.expected.msl | 4 +- .../gen/textureStore/83bcc1.wgsl.expected.msl | 4 +- .../gen/textureStore/872747.wgsl.expected.msl | 4 +- .../gen/textureStore/8e0479.wgsl.expected.msl | 4 +- .../gen/textureStore/8f71a1.wgsl.expected.msl | 4 +- .../gen/textureStore/969534.wgsl.expected.msl | 4 +- .../gen/textureStore/9a3ecc.wgsl.expected.msl | 4 +- .../gen/textureStore/9d9cd5.wgsl.expected.msl | 4 +- .../gen/textureStore/9e3ec5.wgsl.expected.msl | 4 +- .../gen/textureStore/ac67aa.wgsl.expected.msl | 4 +- .../gen/textureStore/b706b1.wgsl.expected.msl | 4 +- .../gen/textureStore/bbcb7f.wgsl.expected.msl | 4 +- .../gen/textureStore/be6e30.wgsl.expected.msl | 4 +- .../gen/textureStore/bf775c.wgsl.expected.msl | 4 +- .../gen/textureStore/c5af1e.wgsl.expected.msl | 4 +- .../gen/textureStore/c863be.wgsl.expected.msl | 4 +- .../gen/textureStore/d73b5c.wgsl.expected.msl | 4 +- .../gen/textureStore/dd7d81.wgsl.expected.msl | 4 +- .../gen/textureStore/dde364.wgsl.expected.msl | 4 +- .../gen/textureStore/e885e8.wgsl.expected.msl | 4 +- .../gen/textureStore/eb702f.wgsl.expected.msl | 4 +- .../gen/textureStore/eb78b9.wgsl.expected.msl | 4 +- .../gen/textureStore/ee6acc.wgsl.expected.msl | 4 +- .../gen/textureStore/ef9f2f.wgsl.expected.msl | 4 +- .../gen/textureStore/f8dead.wgsl.expected.msl | 4 +- .../gen/textureStore/f9be83.wgsl.expected.msl | 4 +- .../gen/textureStore/fb9a8f.wgsl.expected.msl | 4 +- .../gen/textureStore/fbf53f.wgsl.expected.msl | 4 +- .../gen/transpose/2585cd.wgsl.expected.msl | 4 +- .../gen/transpose/31d679.wgsl.expected.msl | 4 +- .../gen/transpose/31e37e.wgsl.expected.msl | 4 +- .../gen/transpose/4ce359.wgsl.expected.msl | 4 +- .../gen/transpose/4dc9a1.wgsl.expected.msl | 4 +- .../gen/transpose/854336.wgsl.expected.msl | 4 +- .../gen/transpose/c1b600.wgsl.expected.msl | 4 +- .../gen/transpose/d8f8ba.wgsl.expected.msl | 4 +- .../gen/transpose/ed4bdc.wgsl.expected.msl | 4 +- .../gen/trunc/562d05.wgsl.expected.msl | 4 +- .../gen/trunc/e183aa.wgsl.expected.msl | 4 +- .../gen/trunc/eb83df.wgsl.expected.msl | 2 +- .../gen/trunc/f370d3.wgsl.expected.msl | 4 +- .../unpack2x16float/32a5cf.wgsl.expected.msl | 2 +- .../unpack2x16snorm/b4aea6.wgsl.expected.msl | 2 +- .../unpack2x16unorm/7699c0.wgsl.expected.msl | 2 +- .../unpack4x8snorm/523fb3.wgsl.expected.msl | 2 +- .../unpack4x8unorm/750c74.wgsl.expected.msl | 2 +- .../insertBits/vec3/i32.spvasm.expected.msl | 4 +- .../insertBits/vec3/u32.spvasm.expected.msl | 4 +- .../builtins/repeated_use.wgsl.expected.msl | 6 +- .../depth_ms.spvasm.expected.msl | 6 +- .../textureGather/f32/alpha.wgsl.expected.msl | 2 +- .../textureGather/f32/blue.wgsl.expected.msl | 2 +- .../textureGather/f32/green.wgsl.expected.msl | 2 +- .../textureGather/f32/red.wgsl.expected.msl | 2 +- .../textureGather/i32/alpha.wgsl.expected.msl | 2 +- .../textureGather/i32/blue.wgsl.expected.msl | 2 +- .../textureGather/i32/green.wgsl.expected.msl | 2 +- .../textureGather/i32/red.wgsl.expected.msl | 2 +- .../textureGather/u32/alpha.wgsl.expected.msl | 2 +- .../textureGather/u32/blue.wgsl.expected.msl | 2 +- .../textureGather/u32/green.wgsl.expected.msl | 2 +- .../textureGather/u32/red.wgsl.expected.msl | 2 +- .../textureLoad/depth_ms.spvasm.expected.msl | 6 +- .../texture_external_param.wgsl.expected.msl | 4 +- .../texture_param.wgsl.expected.msl | 4 +- .../depth_ms.spvasm.expected.msl | 4 +- .../add/mat3x3-mat3x3/f32.wgsl.expected.msl | 2 +- .../add/scalar-scalar/f32.wgsl.expected.msl | 2 +- .../add/scalar-scalar/i32.wgsl.expected.msl | 2 +- .../add/scalar-scalar/u32.wgsl.expected.msl | 2 +- .../add/scalar-vec3/f32.wgsl.expected.msl | 2 +- .../add/scalar-vec3/i32.wgsl.expected.msl | 2 +- .../add/scalar-vec3/u32.wgsl.expected.msl | 2 +- .../add/vec3-scalar/f32.wgsl.expected.msl | 2 +- .../add/vec3-scalar/i32.wgsl.expected.msl | 2 +- .../add/vec3-scalar/u32.wgsl.expected.msl | 2 +- .../add/vec3-vec3/f32.wgsl.expected.msl | 2 +- .../add/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../add/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/bool.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../bit-and/vec3-vec3/bool.wgsl.expected.msl | 2 +- .../bit-and/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../bit-and/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../bit-or/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../bit-or/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../bit-xor/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../bit-xor/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../div/scalar-scalar/f32.wgsl.expected.msl | 2 +- .../div/scalar-scalar/i32.wgsl.expected.msl | 2 +- .../div/scalar-scalar/u32.wgsl.expected.msl | 2 +- .../div/scalar-vec3/f32.wgsl.expected.msl | 2 +- .../div/scalar-vec3/i32.wgsl.expected.msl | 2 +- .../div/scalar-vec3/u32.wgsl.expected.msl | 2 +- .../div/vec3-scalar/f32.wgsl.expected.msl | 2 +- .../div/vec3-scalar/i32.wgsl.expected.msl | 2 +- .../div/vec3-scalar/u32.wgsl.expected.msl | 2 +- .../div/vec3-vec3/f32.wgsl.expected.msl | 2 +- .../div/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../div/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/f32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../scalar-vec3/f32.wgsl.expected.msl | 2 +- .../scalar-vec3/i32.wgsl.expected.msl | 2 +- .../scalar-vec3/u32.wgsl.expected.msl | 2 +- .../vec3-scalar/f32.wgsl.expected.msl | 2 +- .../vec3-scalar/i32.wgsl.expected.msl | 2 +- .../vec3-scalar/u32.wgsl.expected.msl | 2 +- .../vec3-vec3/f32.wgsl.expected.msl | 2 +- .../vec3-vec3/i32.wgsl.expected.msl | 2 +- .../vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../vector-vector/i32.wgsl.expected.msl | 2 +- .../vector-vector/u32.wgsl.expected.msl | 2 +- .../mod/scalar-scalar/f32.wgsl.expected.msl | 2 +- .../mod/scalar-scalar/i32.wgsl.expected.msl | 2 +- .../mod/scalar-scalar/u32.wgsl.expected.msl | 2 +- .../mod/scalar-vec3/f32.wgsl.expected.msl | 2 +- .../mod/scalar-vec3/i32.wgsl.expected.msl | 2 +- .../mod/scalar-vec3/u32.wgsl.expected.msl | 2 +- .../mod/vec3-scalar/f32.wgsl.expected.msl | 2 +- .../mod/vec3-scalar/i32.wgsl.expected.msl | 2 +- .../mod/vec3-scalar/u32.wgsl.expected.msl | 2 +- .../mod/vec3-vec3/f32.wgsl.expected.msl | 2 +- .../mod/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../mod/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/f32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../scalar-vec3/i32.wgsl.expected.msl | 2 +- .../scalar-vec3/u32.wgsl.expected.msl | 2 +- .../vec3-scalar/i32.wgsl.expected.msl | 2 +- .../vec3-scalar/u32.wgsl.expected.msl | 2 +- .../vec3-vec3/f32.wgsl.expected.msl | 2 +- .../vec3-vec3/i32.wgsl.expected.msl | 2 +- .../vec3-vec3/u32.wgsl.expected.msl | 2 +- .../mul/mat2x4-mat4x2/f32.wgsl.expected.msl | 2 +- .../mul/mat3x3-mat3x3/f32.wgsl.expected.msl | 2 +- .../mul/mat4x2-mat2x4/f32.wgsl.expected.msl | 2 +- .../mul/scalar-scalar/f32.wgsl.expected.msl | 2 +- .../mul/scalar-scalar/i32.wgsl.expected.msl | 2 +- .../mul/scalar-scalar/u32.wgsl.expected.msl | 2 +- .../mul/scalar-vec3/f32.wgsl.expected.msl | 2 +- .../mul/scalar-vec3/i32.wgsl.expected.msl | 2 +- .../mul/scalar-vec3/u32.wgsl.expected.msl | 2 +- .../mul/vec3-scalar/f32.wgsl.expected.msl | 2 +- .../mul/vec3-scalar/i32.wgsl.expected.msl | 2 +- .../mul/vec3-scalar/u32.wgsl.expected.msl | 2 +- .../mul/vec3-vec3/f32.wgsl.expected.msl | 2 +- .../mul/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../mul/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../scalar-scalar/i32.wgsl.expected.msl | 2 +- .../scalar-scalar/u32.wgsl.expected.msl | 2 +- .../vector-vector/i32.wgsl.expected.msl | 2 +- .../vector-vector/u32.wgsl.expected.msl | 2 +- .../sub/mat3x3-mat3x3/f32.wgsl.expected.msl | 2 +- .../sub/scalar-scalar/f32.wgsl.expected.msl | 2 +- .../sub/scalar-scalar/i32.wgsl.expected.msl | 2 +- .../sub/scalar-scalar/u32.wgsl.expected.msl | 2 +- .../sub/scalar-vec3/f32.wgsl.expected.msl | 2 +- .../sub/scalar-vec3/i32.wgsl.expected.msl | 2 +- .../sub/scalar-vec3/u32.wgsl.expected.msl | 2 +- .../sub/vec3-scalar/f32.wgsl.expected.msl | 2 +- .../sub/vec3-scalar/i32.wgsl.expected.msl | 2 +- .../sub/vec3-scalar/u32.wgsl.expected.msl | 2 +- .../sub/vec3-vec3/f32.wgsl.expected.msl | 2 +- .../sub/vec3-vec3/i32.wgsl.expected.msl | 2 +- .../sub/vec3-vec3/u32.wgsl.expected.msl | 2 +- .../bitcast/scalar/f32-f32.wgsl.expected.msl | 2 +- .../bitcast/scalar/f32-i32.wgsl.expected.msl | 2 +- .../bitcast/scalar/f32-u32.wgsl.expected.msl | 2 +- .../bitcast/scalar/i32-f32.wgsl.expected.msl | 2 +- .../bitcast/scalar/i32-i32.wgsl.expected.msl | 2 +- .../bitcast/scalar/i32-u32.wgsl.expected.msl | 2 +- .../bitcast/scalar/u32-f32.wgsl.expected.msl | 2 +- .../bitcast/scalar/u32-i32.wgsl.expected.msl | 2 +- .../bitcast/scalar/u32-u32.wgsl.expected.msl | 2 +- .../bitcast/vector/f32-f32.wgsl.expected.msl | 2 +- .../bitcast/vector/f32-i32.wgsl.expected.msl | 2 +- .../bitcast/vector/f32-u32.wgsl.expected.msl | 2 +- .../bitcast/vector/i32-f32.wgsl.expected.msl | 2 +- .../bitcast/vector/i32-i32.wgsl.expected.msl | 2 +- .../bitcast/vector/i32-u32.wgsl.expected.msl | 2 +- .../bitcast/vector/u32-f32.wgsl.expected.msl | 2 +- .../bitcast/vector/u32-i32.wgsl.expected.msl | 2 +- .../bitcast/vector/u32-u32.wgsl.expected.msl | 2 +- .../let/let/literal/array.wgsl.expected.msl | 2 +- .../let/let/literal/matrix.wgsl.expected.msl | 2 +- .../let/let/literal/vector.wgsl.expected.msl | 2 +- .../let/let/param/matrix.wgsl.expected.msl | 2 +- .../let/let/param/vector.wgsl.expected.msl | 2 +- .../let/literal/matrix.wgsl.expected.msl | 2 +- .../let/literal/vector.wgsl.expected.msl | 2 +- .../index/let/param/matrix.wgsl.expected.msl | 2 +- .../index/let/param/vector.wgsl.expected.msl | 2 +- .../let/var/literal/array.wgsl.expected.msl | 2 +- .../let/var/literal/matrix.wgsl.expected.msl | 2 +- .../let/var/literal/vector.wgsl.expected.msl | 2 +- .../var/let/literal/array.wgsl.expected.msl | 2 +- .../var/let/literal/matrix.wgsl.expected.msl | 2 +- .../var/let/literal/vector.wgsl.expected.msl | 2 +- .../literals/-inf.spvasm.expected.msl | 2 +- .../literals/inf.spvasm.expected.msl | 2 +- .../explicit/identity/f32.wgsl.expected.msl | 2 +- .../mat2x3/identity/f32.wgsl.expected.msl | 2 +- .../mat2x4/identity/f32.wgsl.expected.msl | 2 +- .../mat3x2/identity/f32.wgsl.expected.msl | 2 +- .../mat3x3/identity/f32.wgsl.expected.msl | 2 +- .../mat3x4/identity/f32.wgsl.expected.msl | 2 +- .../mat4x2/identity/f32.wgsl.expected.msl | 2 +- .../mat4x3/identity/f32.wgsl.expected.msl | 2 +- .../mat4x4/identity/f32.wgsl.expected.msl | 2 +- .../zero_init/mat2x2/f32.wgsl.expected.msl | 2 +- .../zero_init/mat2x3/f32.wgsl.expected.msl | 2 +- .../zero_init/mat2x4/f32.wgsl.expected.msl | 2 +- .../zero_init/mat3x2/f32.wgsl.expected.msl | 2 +- .../zero_init/mat3x3/f32.wgsl.expected.msl | 2 +- .../zero_init/mat3x4/f32.wgsl.expected.msl | 2 +- .../zero_init/mat4x2/f32.wgsl.expected.msl | 2 +- .../zero_init/mat4x3/f32.wgsl.expected.msl | 2 +- .../zero_init/mat4x4/f32.wgsl.expected.msl | 2 +- .../zero_init/scalar/bool.wgsl.expected.msl | 2 +- .../zero_init/scalar/f32.wgsl.expected.msl | 2 +- .../zero_init/scalar/i32.wgsl.expected.msl | 2 +- .../zero_init/scalar/u32.wgsl.expected.msl | 2 +- .../zero_init/vec2/bool.wgsl.expected.msl | 2 +- .../zero_init/vec2/f32.wgsl.expected.msl | 2 +- .../zero_init/vec2/i32.wgsl.expected.msl | 2 +- .../zero_init/vec2/u32.wgsl.expected.msl | 2 +- .../zero_init/vec3/bool.wgsl.expected.msl | 2 +- .../zero_init/vec3/f32.wgsl.expected.msl | 2 +- .../zero_init/vec3/i32.wgsl.expected.msl | 2 +- .../zero_init/vec3/u32.wgsl.expected.msl | 2 +- .../zero_init/vec4/bool.wgsl.expected.msl | 2 +- .../zero_init/vec4/f32.wgsl.expected.msl | 2 +- .../zero_init/vec4/i32.wgsl.expected.msl | 2 +- .../zero_init/vec4/u32.wgsl.expected.msl | 2 +- .../underscore/double/let.wgsl.expected.msl | 4 +- .../prefix/lower/let.wgsl.expected.msl | 4 +- .../prefix/upper/let.wgsl.expected.msl | 4 +- test/tint/let/global/global.wgsl.expected.msl | 10 +- .../let/inferred/function.wgsl.expected.msl | 10 +- .../func/let.wgsl.expected.msl | 2 +- .../ptr_ref/access/matrix.spvasm.expected.msl | 4 +- .../ptr_ref/access/matrix.wgsl.expected.msl | 2 +- .../local/ptr_workgroup.wgsl.expected.msl | 2 +- .../samples/compute_boids.wgsl.expected.msl | 8 +- test/tint/samples/simple.wgsl.expected.msl | 2 +- .../samples/simple_vertex.spvasm.expected.msl | 2 +- test/tint/samples/triangle.wgsl.expected.msl | 2 +- .../shader_io/invariant.wgsl.expected.msl | 2 +- ..._struct_different_stages.wgsl.expected.msl | 2 +- .../vertex_input_builtins.wgsl.expected.msl | 2 +- ...ex_input_builtins_struct.wgsl.expected.msl | 2 +- .../vertex_input_locations.wgsl.expected.msl | 2 +- ...x_input_locations_struct.wgsl.expected.msl | 2 +- .../vertex_input_mixed.wgsl.expected.msl | 2 +- ..._output_locations_struct.wgsl.expected.msl | 2 +- .../shadowing/alias/let.wgsl.expected.msl | 8 +- .../shadowing/alias/var.wgsl.expected.msl | 4 +- .../shadowing/function/let.wgsl.expected.msl | 2 +- .../function.wgsl.expected.msl | 2 +- .../matrix/minus.wgsl.expected.msl | 2 +- .../matrix/plus.wgsl.expected.msl | 2 +- .../matrix/times.wgsl.expected.msl | 2 +- .../compound_assign/private.wgsl.expected.msl | 2 +- .../vector/times-matrix.wgsl.expected.msl | 2 +- .../workgroup.wgsl.expected.msl | 2 +- .../vector_component.wgsl.expected.msl | 2 +- .../vector_component.wgsl.expected.msl | 2 +- .../struct/type_constructor.wgsl.expected.msl | 8 +- ...ction_scope_declarations.wgsl.expected.msl | 32 +-- ...on_scope_var_conversions.wgsl.expected.msl | 46 ++-- .../types/module_scope_let.wgsl.expected.msl | 16 +- .../types/module_scope_var.wgsl.expected.msl | 16 +- ...le_scope_var_conversions.wgsl.expected.msl | 80 +++---- ...e_scope_var_initializers.wgsl.expected.msl | 32 +-- .../tint/types/return_types.wgsl.expected.msl | 16 +- .../var/inferred/function.wgsl.expected.msl | 8 +- .../workgroup/array.wgsl.expected.msl | 2 +- .../workgroup/matrix.wgsl.expected.msl | 2 +- .../workgroup/scalar.wgsl.expected.msl | 2 +- .../workgroup/vector.wgsl.expected.msl | 2 +- .../many_workgroup_vars.wgsl.expected.msl | 200 +++++++++--------- .../tint/var/uses/workgroup.wgsl.expected.msl | 8 +- 1012 files changed, 1950 insertions(+), 1852 deletions(-) diff --git a/src/tint/writer/msl/generator_impl.cc b/src/tint/writer/msl/generator_impl.cc index 578e78df8d..cd984b26bb 100644 --- a/src/tint/writer/msl/generator_impl.cc +++ b/src/tint/writer/msl/generator_impl.cc @@ -36,12 +36,12 @@ #include "src/tint/sem/atomic.h" #include "src/tint/sem/bool.h" #include "src/tint/sem/call.h" +#include "src/tint/sem/constant.h" #include "src/tint/sem/depth_multisampled_texture.h" #include "src/tint/sem/depth_texture.h" #include "src/tint/sem/f32.h" #include "src/tint/sem/function.h" #include "src/tint/sem/i32.h" -#include "src/tint/sem/materialize.h" #include "src/tint/sem/matrix.h" #include "src/tint/sem/member_accessor_expression.h" #include "src/tint/sem/module.h" @@ -86,6 +86,31 @@ bool last_is_break_or_fallthrough(const ast::BlockStatement* stmts) { return IsAnyOf(stmts->Last()); } +void PrintF32(std::ostream& out, float value) { + // Note: Currently inf and nan should not be constructable, but this is implemented for the day + // we support them. + if (std::isinf(value)) { + out << (value >= 0 ? "INFINITY" : "-INFINITY"); + } else if (std::isnan(value)) { + out << "NAN"; + } else { + out << FloatToString(value) << "f"; + } +} + +void PrintI32(std::ostream& out, int32_t value) { + // MSL (and C++) parse `-2147483648` as a `long` because it parses unary minus and `2147483648` + // as separate tokens, and the latter doesn't fit into an (32-bit) `int`. + // WGSL, on the other hand, parses this as an `i32`. + // To avoid issues with `long` to `int` casts, emit `(-2147483647 - 1)` instead, which ensures + // the expression type is `int`. + if (auto int_min = std::numeric_limits::min(); value == int_min) { + out << "(" << int_min + 1 << " - 1)"; + } else { + out << value; + } +} + class ScopedBitCast { public: ScopedBitCast(GeneratorImpl* generator, @@ -551,12 +576,7 @@ bool GeneratorImpl::EmitBreak(const ast::BreakStatement*) { } bool GeneratorImpl::EmitCall(std::ostream& out, const ast::CallExpression* expr) { - auto* sem = program_->Sem().Get(expr); - if (auto* m = sem->As()) { - // TODO(crbug.com/tint/1504): Just emit the constant value. - sem = m->Expr(); - } - auto* call = sem->As(); + auto* call = program_->Sem().Get(expr); auto* target = call->Target(); return Switch( target, [&](const sem::Function* func) { return EmitFunctionCall(out, call, func); }, @@ -1522,8 +1542,7 @@ bool GeneratorImpl::EmitZeroValue(std::ostream& out, const sem::Type* type) { if (!EmitType(out, mat, "")) { return false; } - out << "("; - TINT_DEFER(out << ")"); + ScopedParen sp(out); return EmitZeroValue(out, mat->type()); }, [&](const sem::Array* arr) { @@ -1543,6 +1562,92 @@ bool GeneratorImpl::EmitZeroValue(std::ostream& out, const sem::Type* type) { }); } +bool GeneratorImpl::EmitConstant(std::ostream& out, const sem::Constant& constant) { + auto emit_bool = [&](size_t element_idx) { + out << (constant.Element(element_idx) ? "true" : "false"); + return true; + }; + auto emit_f32 = [&](size_t element_idx) { + PrintF32(out, static_cast(constant.Element(element_idx))); + return true; + }; + auto emit_i32 = [&](size_t element_idx) { + PrintI32(out, static_cast(constant.Element(element_idx).value)); + return true; + }; + auto emit_u32 = [&](size_t element_idx) { + out << constant.Element(element_idx).value << "u"; + return true; + }; + auto emit_vector = [&](const sem::Vector* vec_ty, size_t start, size_t end) { + if (!EmitType(out, vec_ty, "")) { + return false; + } + + ScopedParen sp(out); + + auto emit_els = [&](auto emit_el) { + if (constant.AllEqual(start, end)) { + return emit_el(start); + } + for (size_t i = start; i < end; i++) { + if (i > start) { + out << ", "; + } + if (!emit_el(i)) { + return false; + } + } + return true; + }; + return Switch( + vec_ty->type(), // + [&](const sem::Bool*) { return emit_els(emit_bool); }, // + [&](const sem::F32*) { return emit_els(emit_f32); }, // + [&](const sem::I32*) { return emit_els(emit_i32); }, // + [&](const sem::U32*) { return emit_els(emit_u32); }, // + [&](Default) { + diagnostics_.add_error(diag::System::Writer, + "unhandled constant vector element type: " + + builder_.FriendlyName(vec_ty->type())); + return false; + }); + }; + auto emit_matrix = [&](const sem::Matrix* m) { + if (!EmitType(out, constant.Type(), "")) { + return false; + } + + ScopedParen sp(out); + + for (size_t column_idx = 0; column_idx < m->columns(); column_idx++) { + if (column_idx > 0) { + out << ", "; + } + size_t start = m->rows() * column_idx; + size_t end = m->rows() * (column_idx + 1); + if (!emit_vector(m->ColumnType(), start, end)) { + return false; + } + } + return true; + }; + return Switch( + constant.Type(), // + [&](const sem::Bool*) { return emit_bool(0); }, // + [&](const sem::F32*) { return emit_f32(0); }, // + [&](const sem::I32*) { return emit_i32(0); }, // + [&](const sem::U32*) { return emit_u32(0); }, // + [&](const sem::Vector* v) { return emit_vector(v, 0, constant.ElementCount()); }, // + [&](const sem::Matrix* m) { return emit_matrix(m); }, // + [&](Default) { + diagnostics_.add_error( + diag::System::Writer, + "unhandled constant type: " + builder_.FriendlyName(constant.Type())); + return false; + }); +} + bool GeneratorImpl::EmitLiteral(std::ostream& out, const ast::LiteralExpression* lit) { return Switch( lit, @@ -1551,32 +1656,14 @@ bool GeneratorImpl::EmitLiteral(std::ostream& out, const ast::LiteralExpression* return true; }, [&](const ast::FloatLiteralExpression* l) { - auto f32 = static_cast(l->value); - if (std::isinf(f32)) { - out << (f32 >= 0 ? "INFINITY" : "-INFINITY"); - } else if (std::isnan(f32)) { - out << "NAN"; - } else { - out << FloatToString(f32) << "f"; - } + PrintF32(out, static_cast(l->value)); return true; }, [&](const ast::IntLiteralExpression* i) { switch (i->suffix) { case ast::IntLiteralExpression::Suffix::kNone: case ast::IntLiteralExpression::Suffix::kI: { - // MSL (and C++) parse `-2147483648` as a `long` because it parses - // unary minus and `2147483648` as separate tokens, and the latter - // doesn't fit into an (32-bit) `int`. WGSL, OTOH, parses this as an - // `i32`. To avoid issues with `long` to `int` casts, emit - // `(2147483647 - 1)` instead, which ensures the expression type is - // `int`. - const auto int_min = std::numeric_limits::min(); - if (i->value == int_min) { - out << "(" << int_min + 1 << " - 1)"; - } else { - out << i->value; - } + PrintI32(out, static_cast(i->value)); return true; } case ast::IntLiteralExpression::Suffix::kU: { @@ -1594,6 +1681,11 @@ bool GeneratorImpl::EmitLiteral(std::ostream& out, const ast::LiteralExpression* } bool GeneratorImpl::EmitExpression(std::ostream& out, const ast::Expression* expr) { + if (auto* sem = builder_.Sem().Get(expr)) { + if (auto constant = sem->ConstantValue()) { + return EmitConstant(out, constant); + } + } return Switch( expr, [&](const ast::IndexAccessorExpression* a) { // diff --git a/src/tint/writer/msl/generator_impl.h b/src/tint/writer/msl/generator_impl.h index b7a202983e..21dee2848a 100644 --- a/src/tint/writer/msl/generator_impl.h +++ b/src/tint/writer/msl/generator_impl.h @@ -45,6 +45,7 @@ // Forward declarations namespace tint::sem { class Call; +class Constant; class Builtin; class TypeConstructor; class TypeConversion; @@ -250,6 +251,11 @@ class GeneratorImpl : public TextGenerator { /// @param stmt the statement to emit /// @returns true if the statement was successfully emitted bool EmitIf(const ast::IfStatement* stmt); + /// Handles a constant value + /// @param out the output stream + /// @param constant the constant value to emit + /// @returns true if the constant value was successfully emitted + bool EmitConstant(std::ostream& out, const sem::Constant& constant); /// Handles a literal /// @param out the output of the expression stream /// @param lit the literal to emit diff --git a/src/tint/writer/msl/generator_impl_builtin_texture_test.cc b/src/tint/writer/msl/generator_impl_builtin_texture_test.cc index a78a255c5a..20813fabc6 100644 --- a/src/tint/writer/msl/generator_impl_builtin_texture_test.cc +++ b/src/tint/writer/msl/generator_impl_builtin_texture_test.cc @@ -184,7 +184,7 @@ std::string expected_texture_overload(ast::builtin::test::ValidTextureOverload o case ValidTextureOverload::kSampleGrad2dF32: return R"(texture.sample(sampler, float2(1.0f, 2.0f), gradient2d(float2(3.0f, 4.0f), float2(5.0f, 6.0f))))"; case ValidTextureOverload::kSampleGrad2dOffsetF32: - return R"(texture.sample(sampler, float2(1.0f, 2.0f), gradient2d(float2(3.0f, 4.0f), float2(5.0f, 6.0f)), int2(7, 7)))"; + return R"(texture.sample(sampler, float2(1.0f, 2.0f), gradient2d(float2(3.0f, 4.0f), float2(5.0f, 6.0f)), int2(7)))"; case ValidTextureOverload::kSampleGrad2dArrayF32: return R"(texture.sample(sampler, float2(1.0f, 2.0f), 3, gradient2d(float2(4.0f, 5.0f), float2(6.0f, 7.0f))))"; case ValidTextureOverload::kSampleGrad2dArrayOffsetF32: diff --git a/src/tint/writer/msl/generator_impl_cast_test.cc b/src/tint/writer/msl/generator_impl_cast_test.cc index 0eca1910ad..4b9e3f28d9 100644 --- a/src/tint/writer/msl/generator_impl_cast_test.cc +++ b/src/tint/writer/msl/generator_impl_cast_test.cc @@ -29,7 +29,7 @@ TEST_F(MslGeneratorImplTest, EmitExpression_Cast_Scalar) { std::stringstream out; ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error(); - EXPECT_EQ(out.str(), "float(1)"); + EXPECT_EQ(out.str(), "1.0f"); } TEST_F(MslGeneratorImplTest, EmitExpression_Cast_Vector) { @@ -40,7 +40,7 @@ TEST_F(MslGeneratorImplTest, EmitExpression_Cast_Vector) { std::stringstream out; ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error(); - EXPECT_EQ(out.str(), "float3(int3(1, 2, 3))"); + EXPECT_EQ(out.str(), "float3(1.0f, 2.0f, 3.0f)"); } TEST_F(MslGeneratorImplTest, EmitExpression_Cast_IntMin) { @@ -51,7 +51,7 @@ TEST_F(MslGeneratorImplTest, EmitExpression_Cast_IntMin) { std::stringstream out; ASSERT_TRUE(gen.EmitExpression(out, cast)) << gen.error(); - EXPECT_EQ(out.str(), "uint((-2147483647 - 1))"); + EXPECT_EQ(out.str(), "0u"); } } // namespace diff --git a/src/tint/writer/msl/generator_impl_constructor_test.cc b/src/tint/writer/msl/generator_impl_constructor_test.cc index fa2e1131a3..2fa85f01ce 100644 --- a/src/tint/writer/msl/generator_impl_constructor_test.cc +++ b/src/tint/writer/msl/generator_impl_constructor_test.cc @@ -67,7 +67,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Float) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float(-0.000012f)")); + EXPECT_THAT(gen.result(), HasSubstr("-0.000012f")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Bool) { @@ -76,7 +76,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Bool) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("bool(true)")); + EXPECT_THAT(gen.result(), HasSubstr("true")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Int) { @@ -85,7 +85,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Int) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("int(-12345)")); + EXPECT_THAT(gen.result(), HasSubstr("-12345")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Uint) { @@ -94,7 +94,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Uint) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("uint(12345u)")); + EXPECT_THAT(gen.result(), HasSubstr("12345u")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Vec) { @@ -112,7 +112,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Vec_Empty) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float3()")); + EXPECT_THAT(gen.result(), HasSubstr("float3(0.0f)")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Mat) { @@ -134,7 +134,7 @@ TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Mat_Empty) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float4x4()")); + EXPECT_THAT(gen.result(), HasSubstr("float4x4(float4(0.0f), float4(0.0f)")); } TEST_F(MslGeneratorImplTest, EmitConstructor_Type_Array) { diff --git a/src/tint/writer/msl/generator_impl_function_test.cc b/src/tint/writer/msl/generator_impl_function_test.cc index 5eb4905179..585e8fcf9d 100644 --- a/src/tint/writer/msl/generator_impl_function_test.cc +++ b/src/tint/writer/msl/generator_impl_function_test.cc @@ -207,7 +207,7 @@ struct tint_symbol { }; Interface vert_main_inner() { - Interface const tint_symbol_3 = {.col1=0.5f, .col2=0.25f, .pos=float4()}; + Interface const tint_symbol_3 = {.col1=0.5f, .col2=0.25f, .pos=float4(0.0f)}; return tint_symbol_3; } diff --git a/src/tint/writer/msl/generator_impl_test.cc b/src/tint/writer/msl/generator_impl_test.cc index dd90715bd4..7cef268419 100644 --- a/src/tint/writer/msl/generator_impl_test.cc +++ b/src/tint/writer/msl/generator_impl_test.cc @@ -157,7 +157,7 @@ struct tint_symbol_3 { void comp_main_inner(uint local_invocation_index, threadgroup float2x2* const tint_symbol) { { - *(tint_symbol) = float2x2(); + *(tint_symbol) = float2x2(float2(0.0f), float2(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); float2x2 const x = *(tint_symbol); @@ -199,7 +199,7 @@ struct tint_symbol_3 { void comp_main_inner(uint local_invocation_index, threadgroup tint_array_wrapper* const tint_symbol) { for(uint idx = local_invocation_index; (idx < 4u); idx = (idx + 1u)) { uint const i = idx; - (*(tint_symbol)).arr[i] = float2x2(); + (*(tint_symbol)).arr[i] = float2x2(float2(0.0f), float2(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); tint_array_wrapper const x = *(tint_symbol); @@ -333,9 +333,9 @@ struct tint_symbol_23 { void main1_inner(uint local_invocation_index, threadgroup float2x2* const tint_symbol, threadgroup float2x3* const tint_symbol_1, threadgroup float2x4* const tint_symbol_2) { { - *(tint_symbol) = float2x2(); - *(tint_symbol_1) = float2x3(); - *(tint_symbol_2) = float2x4(); + *(tint_symbol) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_1) = float2x3(float3(0.0f), float3(0.0f)); + *(tint_symbol_2) = float2x4(float4(0.0f), float4(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); float2x2 const a1 = *(tint_symbol); @@ -353,9 +353,9 @@ kernel void main1(threadgroup tint_symbol_7* tint_symbol_4 [[threadgroup(0)]], u void main2_inner(uint local_invocation_index_1, threadgroup float3x2* const tint_symbol_8, threadgroup float3x3* const tint_symbol_9, threadgroup float3x4* const tint_symbol_10) { { - *(tint_symbol_8) = float3x2(); - *(tint_symbol_9) = float3x3(); - *(tint_symbol_10) = float3x4(); + *(tint_symbol_8) = float3x2(float2(0.0f), float2(0.0f), float2(0.0f)); + *(tint_symbol_9) = float3x3(float3(0.0f), float3(0.0f), float3(0.0f)); + *(tint_symbol_10) = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); float3x2 const a1 = *(tint_symbol_8); @@ -373,9 +373,9 @@ kernel void main2(threadgroup tint_symbol_15* tint_symbol_12 [[threadgroup(0)]], void main3_inner(uint local_invocation_index_2, threadgroup float4x2* const tint_symbol_16, threadgroup float4x3* const tint_symbol_17, threadgroup float4x4* const tint_symbol_18) { { - *(tint_symbol_16) = float4x2(); - *(tint_symbol_17) = float4x3(); - *(tint_symbol_18) = float4x4(); + *(tint_symbol_16) = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f)); + *(tint_symbol_17) = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)); + *(tint_symbol_18) = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); float4x2 const a1 = *(tint_symbol_16); diff --git a/src/tint/writer/msl/generator_impl_variable_decl_statement_test.cc b/src/tint/writer/msl/generator_impl_variable_decl_statement_test.cc index be55cae289..e41cc3b281 100644 --- a/src/tint/writer/msl/generator_impl_variable_decl_statement_test.cc +++ b/src/tint/writer/msl/generator_impl_variable_decl_statement_test.cc @@ -48,7 +48,7 @@ TEST_F(MslGeneratorImplTest, Emit_VariableDeclStatement_Const) { gen.increment_indent(); ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error(); - EXPECT_EQ(gen.result(), " float const a = float();\n"); + EXPECT_EQ(gen.result(), " float const a = 0.0f;\n"); } TEST_F(MslGeneratorImplTest, Emit_VariableDeclStatement_Array) { @@ -132,7 +132,7 @@ TEST_F(MslGeneratorImplTest, Emit_VariableDeclStatement_Initializer_Private) { GeneratorImpl& gen = SanitizeAndBuild(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("thread float tint_symbol_1 = initializer;\n")); + EXPECT_THAT(gen.result(), HasSubstr("thread float tint_symbol_1 = 0.0f;\n float const tint_symbol = tint_symbol_1;\n return;\n")); } TEST_F(MslGeneratorImplTest, Emit_VariableDeclStatement_Workgroup) { @@ -158,7 +158,7 @@ TEST_F(MslGeneratorImplTest, Emit_VariableDeclStatement_Initializer_ZeroVec) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error(); - EXPECT_EQ(gen.result(), R"(float3 a = float3(); + EXPECT_EQ(gen.result(), R"(float3 a = float3(0.0f); )"); } diff --git a/test/tint/access/let/matrix.wgsl.expected.msl b/test/tint/access/let/matrix.wgsl.expected.msl index f8f945d657..eecf61ae45 100644 --- a/test/tint/access/let/matrix.wgsl.expected.msl +++ b/test/tint/access/let/matrix.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void tint_symbol() { float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - float3 const v = m[1]; + float3 const v = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1]; float const f = v[1]; return; } diff --git a/test/tint/access/let/vector.wgsl.expected.msl b/test/tint/access/let/vector.wgsl.expected.msl index 13a9b75adc..cffbb6801f 100644 --- a/test/tint/access/let/vector.wgsl.expected.msl +++ b/test/tint/access/let/vector.wgsl.expected.msl @@ -3,9 +3,9 @@ using namespace metal; kernel void tint_symbol() { float3 const v = float3(1.0f, 2.0f, 3.0f); - float const scalar = v[1]; - float2 const swizzle2 = float3(v).xz; - float3 const swizzle3 = float3(v).xzy; + float const scalar = float3(1.0f, 2.0f, 3.0f)[1]; + float2 const swizzle2 = float3(float3(1.0f, 2.0f, 3.0f)).xz; + float3 const swizzle3 = float3(float3(1.0f, 2.0f, 3.0f)).xzy; return; } diff --git a/test/tint/access/var/matrix.spvasm.expected.msl b/test/tint/access/var/matrix.spvasm.expected.msl index 818eb61690..753587d92e 100644 --- a/test/tint/access/var/matrix.spvasm.expected.msl +++ b/test/tint/access/var/matrix.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void main_1() { - float3x3 m = float3x3(); + float3x3 m = float3x3(float3(0.0f), float3(0.0f), float3(0.0f)); float3 const x_15 = m[1]; float const x_16 = x_15[1]; return; diff --git a/test/tint/access/var/vector.spvasm.expected.msl b/test/tint/access/var/vector.spvasm.expected.msl index 2f18abfd3f..fa7b3bcddf 100644 --- a/test/tint/access/var/vector.spvasm.expected.msl +++ b/test/tint/access/var/vector.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void main_1() { - float3 v = float3(); + float3 v = float3(0.0f); float const x_14 = v[1]; float3 const x_16 = v; float2 const x_17 = float2(x_16[0], x_16[2]); diff --git a/test/tint/array/type_constructor.wgsl.expected.msl b/test/tint/array/type_constructor.wgsl.expected.msl index bd40591acd..092ccee288 100644 --- a/test/tint/array/type_constructor.wgsl.expected.msl +++ b/test/tint/array/type_constructor.wgsl.expected.msl @@ -21,7 +21,7 @@ kernel void tint_symbol() { int const x = 42; tint_array_wrapper const empty = {.arr={}}; tint_array_wrapper const nonempty = {.arr={1, 2, 3, 4}}; - tint_array_wrapper const nonempty_with_expr = {.arr={1, x, as_type((as_type(x) + as_type(1))), nonempty.arr[3]}}; + tint_array_wrapper const nonempty_with_expr = {.arr={1, 42, as_type((as_type(42) + as_type(1))), nonempty.arr[3]}}; tint_array_wrapper_1 const nested_empty = {.arr={}}; tint_array_wrapper const tint_symbol_1 = {.arr={1, 2, 3, 4}}; tint_array_wrapper const tint_symbol_2 = {.arr={5, 6, 7, 8}}; @@ -32,7 +32,7 @@ kernel void tint_symbol() { tint_array_wrapper const tint_symbol_7 = {.arr={21, 22, 23, 24}}; tint_array_wrapper_2 const tint_symbol_8 = {.arr={tint_symbol_5, tint_symbol_6, tint_symbol_7}}; tint_array_wrapper_1 const nested_nonempty = {.arr={tint_symbol_4, tint_symbol_8}}; - tint_array_wrapper const tint_symbol_9 = {.arr={1, 2, x, as_type((as_type(x) + as_type(1)))}}; + tint_array_wrapper const tint_symbol_9 = {.arr={1, 2, 42, as_type((as_type(42) + as_type(1)))}}; tint_array_wrapper const tint_symbol_10 = {.arr={5, 6, nonempty.arr[2], as_type((as_type(nonempty.arr[3]) + as_type(1)))}}; tint_array_wrapper_2 const tint_symbol_11 = {.arr={tint_symbol_9, tint_symbol_10, nonempty}}; tint_array_wrapper_1 const nested_nonempty_with_expr = {.arr={tint_symbol_11, nested_nonempty.arr[1]}}; @@ -40,7 +40,7 @@ kernel void tint_symbol() { int const subexpr_empty = tint_symbol_12.arr[1]; tint_array_wrapper const tint_symbol_13 = {.arr={1, 2, 3, 4}}; int const subexpr_nonempty = tint_symbol_13.arr[2]; - tint_array_wrapper const tint_symbol_14 = {.arr={1, x, as_type((as_type(x) + as_type(1))), nonempty.arr[3]}}; + tint_array_wrapper const tint_symbol_14 = {.arr={1, 42, as_type((as_type(42) + as_type(1))), nonempty.arr[3]}}; int const subexpr_nonempty_with_expr = tint_symbol_14.arr[2]; tint_array_wrapper_3 const tint_symbol_15 = {.arr={}}; tint_array_wrapper const subexpr_nested_empty = tint_symbol_15.arr[1]; @@ -48,7 +48,7 @@ kernel void tint_symbol() { tint_array_wrapper const tint_symbol_17 = {.arr={5, 6, 7, 8}}; tint_array_wrapper_3 const tint_symbol_18 = {.arr={tint_symbol_16, tint_symbol_17}}; tint_array_wrapper const subexpr_nested_nonempty = tint_symbol_18.arr[1]; - tint_array_wrapper const tint_symbol_19 = {.arr={1, x, as_type((as_type(x) + as_type(1))), nonempty.arr[3]}}; + tint_array_wrapper const tint_symbol_19 = {.arr={1, 42, as_type((as_type(42) + as_type(1))), nonempty.arr[3]}}; tint_array_wrapper_3 const tint_symbol_20 = {.arr={tint_symbol_19, nested_nonempty.arr[1].arr[2]}}; tint_array_wrapper const subexpr_nested_nonempty_with_expr = tint_symbol_20.arr[1]; return; diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.msl b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.msl index d2debe94f0..291f5a976e 100644 --- a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.msl +++ b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.msl @@ -34,14 +34,14 @@ struct S { }; void tint_symbol_inner(uint idx, device S* const tint_symbol_2) { - (*(tint_symbol_2)).arr[idx].a = int3(); - (*(tint_symbol_2)).arr[idx].b = int(); - (*(tint_symbol_2)).arr[idx].c = uint3(); - (*(tint_symbol_2)).arr[idx].d = uint(); - (*(tint_symbol_2)).arr[idx].e = float3(); - (*(tint_symbol_2)).arr[idx].f = float(); - (*(tint_symbol_2)).arr[idx].g = float2x3(); - (*(tint_symbol_2)).arr[idx].h = float3x2(); + (*(tint_symbol_2)).arr[idx].a = int3(0); + (*(tint_symbol_2)).arr[idx].b = 0; + (*(tint_symbol_2)).arr[idx].c = uint3(0u); + (*(tint_symbol_2)).arr[idx].d = 0u; + (*(tint_symbol_2)).arr[idx].e = float3(0.0f); + (*(tint_symbol_2)).arr[idx].f = 0.0f; + (*(tint_symbol_2)).arr[idx].g = float2x3(float3(0.0f), float3(0.0f)); + (*(tint_symbol_2)).arr[idx].h = float3x2(float2(0.0f), float2(0.0f), float2(0.0f)); tint_array_wrapper const tint_symbol_1 = {.arr={}}; (*(tint_symbol_2)).arr[idx].i = tint_symbol_1; } diff --git a/test/tint/buffer/storage/static_index/write.wgsl.expected.msl b/test/tint/buffer/storage/static_index/write.wgsl.expected.msl index 95b3ff2a9a..ae3ab6702c 100644 --- a/test/tint/buffer/storage/static_index/write.wgsl.expected.msl +++ b/test/tint/buffer/storage/static_index/write.wgsl.expected.msl @@ -35,14 +35,14 @@ struct S { }; kernel void tint_symbol(device S* tint_symbol_3 [[buffer(0)]]) { - (*(tint_symbol_3)).a = int3(); - (*(tint_symbol_3)).b = int(); - (*(tint_symbol_3)).c = uint3(); - (*(tint_symbol_3)).d = uint(); - (*(tint_symbol_3)).e = float3(); - (*(tint_symbol_3)).f = float(); - (*(tint_symbol_3)).g = float2x3(); - (*(tint_symbol_3)).h = float3x2(); + (*(tint_symbol_3)).a = int3(0); + (*(tint_symbol_3)).b = 0; + (*(tint_symbol_3)).c = uint3(0u); + (*(tint_symbol_3)).d = 0u; + (*(tint_symbol_3)).e = float3(0.0f); + (*(tint_symbol_3)).f = 0.0f; + (*(tint_symbol_3)).g = float2x3(float3(0.0f), float3(0.0f)); + (*(tint_symbol_3)).h = float3x2(float2(0.0f), float2(0.0f), float2(0.0f)); Inner const tint_symbol_1 = {}; (*(tint_symbol_3)).i = tint_symbol_1; tint_array_wrapper const tint_symbol_2 = {.arr={}}; diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.msl b/test/tint/bug/chromium/1251009.wgsl.expected.msl index 495192a98c..b0c0e2df4c 100644 --- a/test/tint/bug/chromium/1251009.wgsl.expected.msl +++ b/test/tint/bug/chromium/1251009.wgsl.expected.msl @@ -24,7 +24,7 @@ struct tint_symbol_3 { float4 tint_symbol_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) { uint const foo = (inputs0.vertex_index + instance_index); - return float4(); + return float4(0.0f); } vertex tint_symbol_3 tint_symbol(uint vertex_index [[vertex_id]], uint instance_index [[instance_id]], tint_symbol_2 tint_symbol_1 [[stage_in]]) { diff --git a/test/tint/bug/dawn/947.wgsl.expected.msl b/test/tint/bug/dawn/947.wgsl.expected.msl index 56fe012034..f65b45138c 100644 --- a/test/tint/bug/dawn/947.wgsl.expected.msl +++ b/test/tint/bug/dawn/947.wgsl.expected.msl @@ -35,7 +35,7 @@ struct tint_array_wrapper { VertexOutputs vs_main_inner(uint VertexIndex, const constant Uniforms* const tint_symbol_5) { tint_array_wrapper texcoord = {.arr={float2(-0.5f, 0.0f), float2(1.5f, 0.0f), float2(0.5f, 2.0f)}}; VertexOutputs output = {}; - output.position = float4(((texcoord.arr[VertexIndex] * 2.0f) - float2(1.0f, 1.0f)), 0.0f, 1.0f); + output.position = float4(((texcoord.arr[VertexIndex] * 2.0f) - float2(1.0f)), 0.0f, 1.0f); bool flipY = ((*(tint_symbol_5)).u_scale[1] < 0.0f); if (flipY) { output.texcoords = ((((texcoord.arr[VertexIndex] * (*(tint_symbol_5)).u_scale) + (*(tint_symbol_5)).u_offset) * float2(1.0f, -1.0f)) + float2(0.0f, 1.0f)); @@ -62,10 +62,10 @@ struct tint_symbol_3 { }; float4 fs_main_inner(float2 texcoord, thread bool* const tint_symbol_7, texture2d tint_symbol_8, sampler tint_symbol_9) { - float2 clampedTexcoord = clamp(texcoord, float2(0.0f, 0.0f), float2(1.0f, 1.0f)); + float2 clampedTexcoord = clamp(texcoord, float2(0.0f), float2(1.0f)); if (!(all((clampedTexcoord == texcoord)))) { *(tint_symbol_7) = true; - return float4(); + return float4(0.0f); } float4 srcColor = tint_symbol_8.sample(tint_symbol_9, texcoord); return srcColor; diff --git a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.msl b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.msl index b4746d6aab..2566aba851 100644 --- a/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.msl +++ b/test/tint/bug/fxc/dyn_array_idx/read/workgroup.wgsl.expected.msl @@ -20,7 +20,7 @@ struct Result { void f_inner(uint local_invocation_index, threadgroup S* const tint_symbol, device Result* const tint_symbol_1, const constant UBO* const tint_symbol_2) { for(uint idx = local_invocation_index; (idx < 64u); idx = (idx + 1u)) { uint const i = idx; - (*(tint_symbol)).data.arr[i] = int(); + (*(tint_symbol)).data.arr[i] = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); (*(tint_symbol_1)).out = (*(tint_symbol)).data.arr[(*(tint_symbol_2)).dynamic_idx]; diff --git a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.msl b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.msl index 1f436cd970..2a339670f6 100644 --- a/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.msl +++ b/test/tint/bug/fxc/dyn_array_idx/write/workgroup.wgsl.expected.msl @@ -20,7 +20,7 @@ struct Result { void f_inner(uint local_invocation_index, threadgroup S* const tint_symbol, const constant UBO* const tint_symbol_1, device Result* const tint_symbol_2) { for(uint idx = local_invocation_index; (idx < 64u); idx = (idx + 1u)) { uint const i = idx; - (*(tint_symbol)).data.arr[i] = int(); + (*(tint_symbol)).data.arr[i] = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); (*(tint_symbol)).data.arr[(*(tint_symbol_1)).dynamic_idx] = 1; diff --git a/test/tint/bug/tint/1081.wgsl.expected.msl b/test/tint/bug/tint/1081.wgsl.expected.msl index 8304df1281..ab68f60916 100644 --- a/test/tint/bug/tint/1081.wgsl.expected.msl +++ b/test/tint/bug/tint/1081.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; int f(int x, thread bool* const tint_symbol_5) { if ((x == 10)) { *(tint_symbol_5) = true; - return int(); + return 0; } return x; } @@ -22,7 +22,7 @@ int tint_symbol_inner(int3 x, thread bool* const tint_symbol_6) { while (true) { int const r = f(y, tint_symbol_6); if (*(tint_symbol_6)) { - return int(); + return 0; } if ((r == 0)) { break; diff --git a/test/tint/bug/tint/1083.wgsl.expected.msl b/test/tint/bug/tint/1083.wgsl.expected.msl index 08beb2b6ee..9a9ac978fa 100644 --- a/test/tint/bug/tint/1083.wgsl.expected.msl +++ b/test/tint/bug/tint/1083.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 0; - int const c = (a / b); + int const c = (1 / 0); return; } diff --git a/test/tint/bug/tint/1118.wgsl.expected.msl b/test/tint/bug/tint/1118.wgsl.expected.msl index 6e7d1f60f1..aae4313b81 100644 --- a/test/tint/bug/tint/1118.wgsl.expected.msl +++ b/test/tint/bug/tint/1118.wgsl.expected.msl @@ -68,25 +68,25 @@ void main_1(thread float* const tint_symbol_7, thread bool* const tint_symbol_8, return; } float4 const x_34 = (*(tint_symbol_10)).vEyePosition; - float3 const x_38 = float3(0.0f, 0.0f, 0.0f); - viewDirectionW = normalize((float3(x_34[0], x_34[1], x_34[2]) - x_38)); - baseColor = float4(1.0f, 1.0f, 1.0f, 1.0f); + float3 const x_38 = float3(0.0f); + viewDirectionW = normalize((float3(x_34[0], x_34[1], x_34[2]) - float3(0.0f))); + baseColor = float4(1.0f); float4 const x_52 = (*(tint_symbol_11)).vDiffuseColor; diffuseColor = float3(x_52[0], x_52[1], x_52[2]); float const x_60 = (*(tint_symbol_11)).vDiffuseColor[3]; alpha = x_60; - float3 const x_62 = float3(0.0f, 0.0f, 0.0f); - float3 const x_64 = float3(0.0f, 0.0f, 0.0f); - normalW = normalize(-(cross(dfdx(x_62), dfdy(x_64)))); - uvOffset = float2(0.0f, 0.0f); - float4 const x_74 = float4(0.0f, 0.0f, 0.0f, 0.0f); + float3 const x_62 = float3(0.0f); + float3 const x_64 = float3(0.0f); + normalW = normalize(-(cross(dfdx(float3(0.0f)), dfdy(float3(0.0f))))); + uvOffset = float2(0.0f); + float4 const x_74 = float4(0.0f); float4 const x_76 = baseColor; - float3 const x_78 = (float3(x_76[0], x_76[1], x_76[2]) * float3(x_74[0], x_74[1], x_74[2])); + float3 const x_78 = (float3(x_76[0], x_76[1], x_76[2]) * float3(float4(0.0f)[0], float4(0.0f)[1], float4(0.0f)[2])); float4 const x_79 = baseColor; baseColor = float4(x_78[0], x_78[1], x_78[2], x_79[3]); - baseAmbientColor = float3(1.0f, 1.0f, 1.0f); + baseAmbientColor = float3(1.0f); glossiness = 0.0f; - diffuseBase = float3(0.0f, 0.0f, 0.0f); + diffuseBase = float3(0.0f); shadow = 1.0f; refractionColor = float4(0.0f, 0.0f, 0.0f, 1.0f); reflectionColor = float4(0.0f, 0.0f, 0.0f, 1.0f); @@ -97,8 +97,8 @@ void main_1(thread float* const tint_symbol_7, thread bool* const tint_symbol_8, float3 const x_99 = emissiveColor; float3 const x_103 = (*(tint_symbol_11)).vAmbientColor; float4 const x_108 = baseColor; - finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), float3(0.0f, 0.0f, 0.0f), float3(1.0f, 1.0f, 1.0f)) * float3(x_108[0], x_108[1], x_108[2])); - finalSpecular = float3(0.0f, 0.0f, 0.0f); + finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), float3(0.0f), float3(1.0f)) * float3(x_108[0], x_108[1], x_108[2])); + finalSpecular = float3(0.0f); float3 const x_113 = finalDiffuse; float3 const x_114 = baseAmbientColor; float3 const x_116 = finalSpecular; @@ -108,7 +108,7 @@ void main_1(thread float* const tint_symbol_7, thread bool* const tint_symbol_8, float const x_124 = alpha; color = float4(x_123[0], x_123[1], x_123[2], x_124); float4 const x_129 = color; - float3 const x_132 = fmax(float3(x_129[0], x_129[1], x_129[2]), float3(0.0f, 0.0f, 0.0f)); + float3 const x_132 = fmax(float3(x_129[0], x_129[1], x_129[2]), float3(0.0f)); float4 const x_133 = color; color = float4(x_132[0], x_132[1], x_132[2], x_133[3]); float const x_140 = (*(tint_symbol_12)).visibility; diff --git a/test/tint/bug/tint/1121.wgsl.expected.msl b/test/tint/bug/tint/1121.wgsl.expected.msl index 8ac140b799..4800aec103 100644 --- a/test/tint/bug/tint/1121.wgsl.expected.msl +++ b/test/tint/bug/tint/1121.wgsl.expected.msl @@ -84,11 +84,11 @@ void tint_symbol_inner(uint3 GlobalInvocationID, const constant Config* const ti int const TILE_SIZE = 16; int const TILE_COUNT_X = 2; int const TILE_COUNT_Y = 2; - for(int y_1 = 0; (y_1 < TILE_COUNT_Y); y_1 = as_type((as_type(y_1) + as_type(1)))) { - for(int x_1 = 0; (x_1 < TILE_COUNT_X); x_1 = as_type((as_type(x_1) + as_type(1)))) { - int2 tilePixel0Idx = int2(as_type((as_type(x_1) * as_type(TILE_SIZE))), as_type((as_type(y_1) * as_type(TILE_SIZE)))); + for(int y_1 = 0; (y_1 < 2); y_1 = as_type((as_type(y_1) + as_type(1)))) { + for(int x_1 = 0; (x_1 < 2); x_1 = as_type((as_type(x_1) + as_type(1)))) { + int2 tilePixel0Idx = int2(as_type((as_type(x_1) * as_type(16))), as_type((as_type(y_1) * as_type(16)))); float2 floorCoord = (((2.0f * float2(tilePixel0Idx)) / float4((*(tint_symbol_3)).fullScreenSize).xy) - float2(1.0f)); - float2 ceilCoord = (((2.0f * float2(as_type((as_type(tilePixel0Idx) + as_type(int2(TILE_SIZE)))))) / float4((*(tint_symbol_3)).fullScreenSize).xy) - float2(1.0f)); + float2 ceilCoord = (((2.0f * float2(as_type((as_type(tilePixel0Idx) + as_type(int2(16)))))) / float4((*(tint_symbol_3)).fullScreenSize).xy) - float2(1.0f)); float2 viewFloorCoord = float2((((-(viewNear) * floorCoord[0]) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * floorCoord[1]) - (M[2][1] * viewNear)) / M[1][1])); float2 viewCeilCoord = float2((((-(viewNear) * ceilCoord[0]) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * ceilCoord[1]) - (M[2][1] * viewNear)) / M[1][1])); frustumPlanes.arr[0] = float4(1.0f, 0.0f, (-(viewFloorCoord[0]) / viewNear), 0.0f); @@ -117,7 +117,7 @@ void tint_symbol_inner(uint3 GlobalInvocationID, const constant Config* const ti dp = (dp + fmin(0.0f, dot(p, frustumPlanes.arr[i]))); } if ((dp >= 0.0f)) { - uint tileId = uint(as_type((as_type(x_1) + as_type(as_type((as_type(y_1) * as_type(TILE_COUNT_X))))))); + uint tileId = uint(as_type((as_type(x_1) + as_type(as_type((as_type(y_1) * as_type(2))))))); if (((tileId < 0u) || (tileId >= (*(tint_symbol_1)).numTiles))) { continue; } diff --git a/test/tint/bug/tint/1369.wgsl.expected.msl b/test/tint/bug/tint/1369.wgsl.expected.msl index e5ce3962e6..4fc75b1fea 100644 --- a/test/tint/bug/tint/1369.wgsl.expected.msl +++ b/test/tint/bug/tint/1369.wgsl.expected.msl @@ -11,7 +11,7 @@ bug/tint/1369.wgsl:9:9 warning: code is unreachable using namespace metal; bool call_discard(thread bool* const tint_symbol) { *(tint_symbol) = true; - return bool(); + return false; return true; } diff --git a/test/tint/bug/tint/1520.spvasm.expected.msl b/test/tint/bug/tint/1520.spvasm.expected.msl index 3e2b30a23b..909a0521fc 100644 --- a/test/tint/bug/tint/1520.spvasm.expected.msl +++ b/test/tint/bug/tint/1520.spvasm.expected.msl @@ -26,20 +26,20 @@ bool test_int_S1_c0_b(const constant UniformBuffer* const tint_symbol_5) { ok = true; x_41_phi = false; if (true) { - x_40 = all(((int4(0, 0, 0, 0) / int4(x_27, x_27, x_27, x_27)) == int4(0, 0, 0, 0))); + x_40 = all(((int4(0) / int4(x_27, x_27, x_27, x_27)) == int4(0))); x_41_phi = x_40; } bool const x_41 = x_41_phi; ok = x_41; int4 const x_44 = int4(x_27, x_27, x_27, x_27); val = x_44; - int4 const x_47 = as_type((as_type(x_44) + as_type(int4(1, 1, 1, 1)))); + int4 const x_47 = as_type((as_type(x_44) + as_type(int4(1)))); val = x_47; - int4 const x_48 = as_type((as_type(x_47) - as_type(int4(1, 1, 1, 1)))); + int4 const x_48 = as_type((as_type(x_47) - as_type(int4(1)))); val = x_48; - int4 const x_49 = as_type((as_type(x_48) + as_type(int4(1, 1, 1, 1)))); + int4 const x_49 = as_type((as_type(x_48) + as_type(int4(1)))); val = x_49; - int4 const x_50 = as_type((as_type(x_49) - as_type(int4(1, 1, 1, 1)))); + int4 const x_50 = as_type((as_type(x_49) - as_type(int4(1)))); val = x_50; x_55_phi = false; if (x_41) { @@ -48,13 +48,13 @@ bool test_int_S1_c0_b(const constant UniformBuffer* const tint_symbol_5) { } bool const x_55 = x_55_phi; ok = x_55; - int4 const x_58 = as_type((as_type(x_50) * as_type(int4(2, 2, 2, 2)))); + int4 const x_58 = as_type((as_type(x_50) * as_type(int4(2)))); val = x_58; - int4 const x_59 = (x_58 / int4(2, 2, 2, 2)); + int4 const x_59 = (x_58 / int4(2)); val = x_59; - int4 const x_60 = as_type((as_type(x_59) * as_type(int4(2, 2, 2, 2)))); + int4 const x_60 = as_type((as_type(x_59) * as_type(int4(2)))); val = x_60; - int4 const x_61 = (x_60 / int4(2, 2, 2, 2)); + int4 const x_61 = (x_60 / int4(2)); val = x_61; x_66_phi = false; if (x_55) { @@ -88,20 +88,20 @@ void main_1(thread float4* const tint_symbol_6, const constant UniformBuffer* co x_9_ok = true; x_87_phi = false; if (true) { - x_86 = all(((float4(0.0f, 0.0f, 0.0f, 0.0f) / float4(x_77, x_77, x_77, x_77)) == float4(0.0f, 0.0f, 0.0f, 0.0f))); + x_86 = all(((float4(0.0f) / float4(x_77, x_77, x_77, x_77)) == float4(0.0f))); x_87_phi = x_86; } bool const x_87 = x_87_phi; x_9_ok = x_87; float4 const x_89 = float4(x_77, x_77, x_77, x_77); x_10_val = x_89; - float4 const x_92 = (x_89 + float4(1.0f, 1.0f, 1.0f, 1.0f)); + float4 const x_92 = (x_89 + float4(1.0f)); x_10_val = x_92; - float4 const x_93 = (x_92 - float4(1.0f, 1.0f, 1.0f, 1.0f)); + float4 const x_93 = (x_92 - float4(1.0f)); x_10_val = x_93; - float4 const x_94 = (x_93 + float4(1.0f, 1.0f, 1.0f, 1.0f)); + float4 const x_94 = (x_93 + float4(1.0f)); x_10_val = x_94; - float4 const x_95 = (x_94 - float4(1.0f, 1.0f, 1.0f, 1.0f)); + float4 const x_95 = (x_94 - float4(1.0f)); x_10_val = x_95; x_100_phi = false; if (x_87) { @@ -110,13 +110,13 @@ void main_1(thread float4* const tint_symbol_6, const constant UniformBuffer* co } bool const x_100 = x_100_phi; x_9_ok = x_100; - float4 const x_103 = (x_95 * float4(2.0f, 2.0f, 2.0f, 2.0f)); + float4 const x_103 = (x_95 * float4(2.0f)); x_10_val = x_103; - float4 const x_104 = (x_103 / float4(2.0f, 2.0f, 2.0f, 2.0f)); + float4 const x_104 = (x_103 / float4(2.0f)); x_10_val = x_104; - float4 const x_105 = (x_104 * float4(2.0f, 2.0f, 2.0f, 2.0f)); + float4 const x_105 = (x_104 * float4(2.0f)); x_10_val = x_105; - float4 const x_106 = (x_105 / float4(2.0f, 2.0f, 2.0f, 2.0f)); + float4 const x_106 = (x_105 / float4(2.0f)); x_10_val = x_106; x_111_phi = false; if (x_100) { diff --git a/test/tint/bug/tint/292.wgsl.expected.msl b/test/tint/bug/tint/292.wgsl.expected.msl index 4874e057df..c1f9d496be 100644 --- a/test/tint/bug/tint/292.wgsl.expected.msl +++ b/test/tint/bug/tint/292.wgsl.expected.msl @@ -8,7 +8,7 @@ struct tint_symbol_1 { float4 tint_symbol_inner() { float3 light = float3(1.200000048f, 1.0f, 2.0f); float3 negative_light = -(light); - return float4(); + return float4(0.0f); } vertex tint_symbol_1 tint_symbol() { diff --git a/test/tint/bug/tint/403.wgsl.expected.msl b/test/tint/bug/tint/403.wgsl.expected.msl index caff5f35ff..94e0fbe59d 100644 --- a/test/tint/bug/tint/403.wgsl.expected.msl +++ b/test/tint/bug/tint/403.wgsl.expected.msl @@ -22,7 +22,7 @@ float4 tint_symbol_inner(uint gl_VertexIndex, const constant vertexUniformBuffer float2x2 const x_23 = (*(tint_symbol_3)).transform1; float2x2 const x_28 = (*(tint_symbol_4)).transform2; uint const x_46 = gl_VertexIndex; - tint_array_wrapper const tint_symbol_2 = {.arr={float2(-1.0f, 1.0f), float2(1.0f, 1.0f), float2(-1.0f, -1.0f)}}; + tint_array_wrapper const tint_symbol_2 = {.arr={float2(-1.0f, 1.0f), float2(1.0f), float2(-1.0f)}}; indexable = tint_symbol_2; float2 const x_51 = indexable.arr[x_46]; float2 const x_52 = (float2x2((x_23[0u] + x_28[0u]), (x_23[1u] + x_28[1u])) * x_51); diff --git a/test/tint/bug/tint/413.spvasm.expected.msl b/test/tint/bug/tint/413.spvasm.expected.msl index d62ec29d9f..244b34abf3 100644 --- a/test/tint/bug/tint/413.spvasm.expected.msl +++ b/test/tint/bug/tint/413.spvasm.expected.msl @@ -3,12 +3,12 @@ using namespace metal; void main_1(texture2d tint_symbol_1, texture2d tint_symbol_2) { uint4 srcValue = 0u; - uint4 const x_18 = tint_symbol_1.read(uint2(int2(0, 0)), 0); + uint4 const x_18 = tint_symbol_1.read(uint2(int2(0)), 0); srcValue = x_18; uint const x_22 = srcValue[0]; srcValue[0] = (x_22 + as_type(1)); uint4 const x_27 = srcValue; - tint_symbol_2.write(x_27, uint2(int2(0, 0))); + tint_symbol_2.write(x_27, uint2(int2(0))); return; } diff --git a/test/tint/bug/tint/453.wgsl.expected.msl b/test/tint/bug/tint/453.wgsl.expected.msl index d51ef16337..bde6be8511 100644 --- a/test/tint/bug/tint/453.wgsl.expected.msl +++ b/test/tint/bug/tint/453.wgsl.expected.msl @@ -3,12 +3,12 @@ using namespace metal; kernel void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], texture2d tint_symbol_2 [[texture(1)]]) { uint4 srcValue = 0u; - uint4 const x_22 = tint_symbol_1.read(uint2(int2(0, 0)), 0); + uint4 const x_22 = tint_symbol_1.read(uint2(int2(0)), 0); srcValue = x_22; uint const x_24 = srcValue[0]; uint const x_25 = (x_24 + 1u); uint4 const x_27 = srcValue; - tint_symbol_2.write(uint4(x_27).xxxx, uint2(int2(0, 0))); + tint_symbol_2.write(uint4(x_27).xxxx, uint2(int2(0))); return; } diff --git a/test/tint/bug/tint/534.wgsl.expected.msl b/test/tint/bug/tint/534.wgsl.expected.msl index 041713a79d..a766b37cb2 100644 --- a/test/tint/bug/tint/534.wgsl.expected.msl +++ b/test/tint/bug/tint/534.wgsl.expected.msl @@ -35,9 +35,9 @@ void tint_symbol_inner(uint3 GlobalInvocationID, texture2d 0.25f)) { float2 const x_481 = float2(x_447[0], x_480[2]); float3 const x_840 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = float3(0.0f); color = x_840; int const x_267 = (*(tint_symbol_84)).numbers.arr[5u]; float const x_841 = color[0]; @@ -1257,7 +1257,7 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t float2 const x_488 = float2(x_473[2], x_473[1]); float const x_283 = color[1]; float2 const x_860 = uv; - uv = float2(0.0f, 0.0f); + uv = float2(0.0f); uv = x_860; float const x_861 = color[0]; color[0] = 0.0f; @@ -1307,14 +1307,14 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t (*(tint_symbol_84)).numbers.arr[4] = x_871; if ((x_287 > 0.75f)) { float3 const x_872 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = float3(0.0f); color = x_872; float const x_873 = color[0]; color[0] = 0.0f; color[0] = x_873; float3 const x_495 = float3(x_192[1], x_192[0], x_192[1]); float3 const x_874 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = float3(0.0f); color = x_874; int const x_293 = (*(tint_symbol_84)).numbers.arr[7]; float const x_875 = uv[0]; @@ -1367,7 +1367,7 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t i_2 = x_887; float2 const x_502 = float2(x_451[1], x_192[1]); float2 const x_888 = uv; - uv = float2(0.0f, 0.0f); + uv = float2(0.0f); uv = x_888; int const x_301 = (*(tint_symbol_84)).numbers.arr[8]; int const x_889 = i_2; @@ -1380,7 +1380,7 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t float const x_891 = color[1]; color[1] = 0.0f; color[1] = x_891; - float2 const x_504 = float2(x_453[1], float2()[0]); + float2 const x_504 = float2(x_453[1], float2(0.0f)[0]); float const x_892 = color[0]; color[0] = 0.0f; color[0] = x_892; @@ -1405,7 +1405,7 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t color[1] = x_897; color[2] = (x_304 + float(x_301)); float2 const x_898 = uv; - uv = float2(0.0f, 0.0f); + uv = float2(0.0f); uv = x_898; float const x_899 = uv[0]; uv[0] = 0.0f; @@ -1438,7 +1438,7 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t i_2 = x_906; float2 const x_511 = float2(x_485[2], x_485[1]); float3 const x_907 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = float3(0.0f); color = x_907; float const x_908 = uv[1]; uv[1] = 0.0f; @@ -1474,16 +1474,16 @@ void main_1(thread QuicksortObject* const tint_symbol_84, thread float4* const t color[0] = 0.0f; color[0] = x_915; float3 const x_916 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = float3(0.0f); color = x_916; float2 const x_516 = float2(x_452[0], x_452[0]); float2 const x_917 = uv; - uv = float2(0.0f, 0.0f); + uv = float2(0.0f); uv = x_917; float const x_918 = uv[0]; uv[0] = 0.0f; uv[0] = x_918; - float3 const x_517 = float3(float2()[0], float2()[0], float2()[1]); + float3 const x_517 = float3(float2(0.0f)[0], float2(0.0f)[0], float2(0.0f)[1]); color[0] = (float(x_317) + x_320); float const x_919 = color[0]; color[0] = 0.0f; diff --git a/test/tint/bug/tint/764.wgsl.expected.msl b/test/tint/bug/tint/764.wgsl.expected.msl index 18310523ea..f70d7447c4 100644 --- a/test/tint/bug/tint/764.wgsl.expected.msl +++ b/test/tint/bug/tint/764.wgsl.expected.msl @@ -2,8 +2,8 @@ using namespace metal; void f() { - float4x4 const m = float4x4(float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f)); - float4 const v1 = m[0]; + float4x4 const m = float4x4(float4(1.0f), float4(1.0f), float4(1.0f), float4(1.0f)); + float4 const v1 = float4x4(float4(1.0f), float4(1.0f), float4(1.0f), float4(1.0f))[0]; float const a = v1[0]; } diff --git a/test/tint/bug/tint/824.wgsl.expected.msl b/test/tint/bug/tint/824.wgsl.expected.msl index d5f6cb326a..c9a884c12f 100644 --- a/test/tint/bug/tint/824.wgsl.expected.msl +++ b/test/tint/bug/tint/824.wgsl.expected.msl @@ -20,11 +20,11 @@ struct tint_array_wrapper_1 { }; Output tint_symbol_inner(uint VertexIndex, uint InstanceIndex) { - tint_array_wrapper const zv = {.arr={float2(0.200000003f, 0.200000003f), float2(0.300000012f, 0.300000012f), float2(-0.100000001f, -0.100000001f), float2(1.100000024f, 1.100000024f)}}; + tint_array_wrapper const zv = {.arr={float2(0.200000003f), float2(0.300000012f), float2(-0.100000001f), float2(1.100000024f)}}; float const z = zv.arr[InstanceIndex][0]; Output output = {}; output.Position = float4(0.5f, 0.5f, z, 1.0f); - tint_array_wrapper_1 const colors = {.arr={float4(1.0f, 0.0f, 0.0f, 1.0f), float4(0.0f, 1.0f, 0.0f, 1.0f), float4(0.0f, 0.0f, 1.0f, 1.0f), float4(1.0f, 1.0f, 1.0f, 1.0f)}}; + tint_array_wrapper_1 const colors = {.arr={float4(1.0f, 0.0f, 0.0f, 1.0f), float4(0.0f, 1.0f, 0.0f, 1.0f), float4(0.0f, 0.0f, 1.0f, 1.0f), float4(1.0f)}}; output.color = colors.arr[InstanceIndex]; return output; } diff --git a/test/tint/bug/tint/825.wgsl.expected.msl b/test/tint/bug/tint/825.wgsl.expected.msl index b3f1c1a150..0edd1b4f70 100644 --- a/test/tint/bug/tint/825.wgsl.expected.msl +++ b/test/tint/bug/tint/825.wgsl.expected.msl @@ -5,6 +5,6 @@ void f() { int i = 0; int j = 0; float2x2 const m = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f)); - float const f_1 = m[i][j]; + float const f_1 = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f))[i][j]; } diff --git a/test/tint/bug/tint/827.wgsl.expected.msl b/test/tint/bug/tint/827.wgsl.expected.msl index 191dd2bb5d..532283a068 100644 --- a/test/tint/bug/tint/827.wgsl.expected.msl +++ b/test/tint/bug/tint/827.wgsl.expected.msl @@ -8,7 +8,7 @@ struct Result { constant uint width = 128u; void tint_symbol_inner(uint3 GlobalInvocationId, device Result* const tint_symbol_1, depth2d tint_symbol_2) { - (*(tint_symbol_1)).values[((GlobalInvocationId[1] * width) + GlobalInvocationId[0])] = tint_symbol_2.read(uint2(int2(int(GlobalInvocationId[0]), int(GlobalInvocationId[1]))), 0); + (*(tint_symbol_1)).values[((GlobalInvocationId[1] * 128u) + GlobalInvocationId[0])] = tint_symbol_2.read(uint2(int2(int(GlobalInvocationId[0]), int(GlobalInvocationId[1]))), 0); } kernel void tint_symbol(device Result* tint_symbol_3 [[buffer(0)]], depth2d tint_symbol_4 [[texture(0)]], uint3 GlobalInvocationId [[thread_position_in_grid]]) { diff --git a/test/tint/bug/tint/913.wgsl.expected.msl b/test/tint/bug/tint/913.wgsl.expected.msl index 5de26db32d..e326a9b101 100644 --- a/test/tint/bug/tint/913.wgsl.expected.msl +++ b/test/tint/bug/tint/913.wgsl.expected.msl @@ -24,7 +24,7 @@ void tint_symbol_inner(uint3 GlobalInvocationID, texture2d= ((*(tint_symbol_9)).dstCopyOrigin[0] + (*(tint_symbol_9)).copySize[0]))) || (dstTexCoord[1] >= ((*(tint_symbol_9)).dstCopyOrigin[1] + (*(tint_symbol_9)).copySize[1])))) { - success = (success && all((tint_symbol_8.read(uint2(int2(dstTexCoord)), 0) == nonCoveredColor))); + success = (success && all((tint_symbol_8.read(uint2(int2(dstTexCoord)), 0) == float4(0.0f, 1.0f, 0.0f, 1.0f)))); } else { uint2 srcTexCoord = ((dstTexCoord - (*(tint_symbol_9)).dstCopyOrigin) + (*(tint_symbol_9)).srcCopyOrigin); if (((*(tint_symbol_9)).dstTextureFlipY == 1u)) { diff --git a/test/tint/bug/tint/914.wgsl.expected.msl b/test/tint/bug/tint/914.wgsl.expected.msl index 2321c84bc2..c6aad932d7 100644 --- a/test/tint/bug/tint/914.wgsl.expected.msl +++ b/test/tint/bug/tint/914.wgsl.expected.msl @@ -64,60 +64,60 @@ void tint_symbol_inner(uint3 local_id, uint3 global_id, uint local_invocation_in for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 256u)) { uint const i = (idx / 64u); uint const i_1 = (idx % 64u); - (*(tint_symbol_9)).arr[i].arr[i_1] = float(); - (*(tint_symbol_10)).arr[i].arr[i_1] = float(); + (*(tint_symbol_9)).arr[i].arr[i_1] = 0.0f; + (*(tint_symbol_10)).arr[i].arr[i_1] = 0.0f; } threadgroup_barrier(mem_flags::mem_threadgroup); - uint const tileRow = (local_id[1] * RowPerThread); - uint const tileCol = (local_id[0] * ColPerThread); - uint const globalRow = (global_id[1] * RowPerThread); - uint const globalCol = (global_id[0] * ColPerThread); - uint const numTiles = ((((*(tint_symbol_11)).dimInner - 1u) / TileInner) + 1u); + uint const tileRow = (local_id[1] * 4u); + uint const tileCol = (local_id[0] * 4u); + uint const globalRow = (global_id[1] * 4u); + uint const globalCol = (global_id[0] * 4u); + uint const numTiles = ((((*(tint_symbol_11)).dimInner - 1u) / 64u) + 1u); tint_array_wrapper_2 acc = {}; float ACached = 0.0f; tint_array_wrapper_3 BCached = {}; - for(uint index = 0u; (index < (RowPerThread * ColPerThread)); index = (index + 1u)) { + for(uint index = 0u; (index < (4u * 4u)); index = (index + 1u)) { acc.arr[index] = 0.0f; } - uint const ColPerThreadA = (TileInner / 16u); + uint const ColPerThreadA = (64u / 16u); uint const tileColA = (local_id[0] * ColPerThreadA); - uint const RowPerThreadB = (TileInner / 16u); + uint const RowPerThreadB = (64u / 16u); uint const tileRowB = (local_id[1] * RowPerThreadB); for(uint t = 0u; (t < numTiles); t = (t + 1u)) { - for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { + for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { for(uint innerCol = 0u; (innerCol < ColPerThreadA); innerCol = (innerCol + 1u)) { uint const inputRow = (tileRow + innerRow); uint const inputCol = (tileColA + innerCol); - float const tint_symbol_1 = mm_readA((globalRow + innerRow), ((t * TileInner) + inputCol), tint_symbol_11, tint_symbol_12); + float const tint_symbol_1 = mm_readA((globalRow + innerRow), ((t * 64u) + inputCol), tint_symbol_11, tint_symbol_12); (*(tint_symbol_9)).arr[inputRow].arr[inputCol] = tint_symbol_1; } } for(uint innerRow = 0u; (innerRow < RowPerThreadB); innerRow = (innerRow + 1u)) { - for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { + for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { uint const inputRow = (tileRowB + innerRow); uint const inputCol = (tileCol + innerCol); - float const tint_symbol_2 = mm_readB(((t * TileInner) + inputRow), (globalCol + innerCol), tint_symbol_11, tint_symbol_13); + float const tint_symbol_2 = mm_readB(((t * 64u) + inputRow), (globalCol + innerCol), tint_symbol_11, tint_symbol_13); (*(tint_symbol_10)).arr[innerCol].arr[inputCol] = tint_symbol_2; } } threadgroup_barrier(mem_flags::mem_threadgroup); - for(uint k = 0u; (k < TileInner); k = (k + 1u)) { - for(uint inner = 0u; (inner < ColPerThread); inner = (inner + 1u)) { + for(uint k = 0u; (k < 64u); k = (k + 1u)) { + for(uint inner = 0u; (inner < 4u); inner = (inner + 1u)) { BCached.arr[inner] = (*(tint_symbol_10)).arr[k].arr[(tileCol + inner)]; } - for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { + for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { ACached = (*(tint_symbol_9)).arr[(tileRow + innerRow)].arr[k]; - for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { - uint const index = ((innerRow * ColPerThread) + innerCol); + for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + uint const index = ((innerRow * 4u) + innerCol); acc.arr[index] = (acc.arr[index] + (ACached * BCached.arr[innerCol])); } } } threadgroup_barrier(mem_flags::mem_threadgroup); } - for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { - for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { - uint const index = ((innerRow * ColPerThread) + innerCol); + for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { + for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + uint const index = ((innerRow * 4u) + innerCol); mm_write((globalRow + innerRow), (globalCol + innerCol), acc.arr[index], tint_symbol_11, tint_symbol_14); } } diff --git a/test/tint/bug/tint/942.wgsl.expected.msl b/test/tint/bug/tint/942.wgsl.expected.msl index 3127a423b6..6693f72d95 100644 --- a/test/tint/bug/tint/942.wgsl.expected.msl +++ b/test/tint/bug/tint/942.wgsl.expected.msl @@ -22,7 +22,7 @@ void tint_symbol_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_in for(uint idx = local_invocation_index; (idx < 1024u); idx = (idx + 64u)) { uint const i_1 = (idx / 256u); uint const i_2 = (idx % 256u); - (*(tint_symbol_1)).arr[i_1].arr[i_2] = float3(); + (*(tint_symbol_1)).arr[i_1].arr[i_2] = float3(0.0f); } threadgroup_barrier(mem_flags::mem_threadgroup); uint const filterOffset = (((*(tint_symbol_2)).filterDim - 1u) / 2u); @@ -34,7 +34,7 @@ void tint_symbol_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_in if (((*(tint_symbol_4)).value != 0u)) { loadIndex = int2(loadIndex).yx; } - (*(tint_symbol_1)).arr[r].arr[((4u * LocalInvocationID[0]) + c)] = float4(tint_symbol_3.sample(tint_symbol_5, ((float2(loadIndex) + float2(0.25f, 0.25f)) / float2(dims)), level(0.0f))).rgb; + (*(tint_symbol_1)).arr[r].arr[((4u * LocalInvocationID[0]) + c)] = float4(tint_symbol_3.sample(tint_symbol_5, ((float2(loadIndex) + float2(0.25f)) / float2(dims)), level(0.0f))).rgb; } } threadgroup_barrier(mem_flags::mem_threadgroup); @@ -46,7 +46,7 @@ void tint_symbol_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_in } uint const center = ((4u * LocalInvocationID[0]) + c); if ((((center >= filterOffset) && (center < (256u - filterOffset))) && all((writeIndex < dims)))) { - float3 acc = float3(0.0f, 0.0f, 0.0f); + float3 acc = float3(0.0f); for(uint f = 0u; (f < (*(tint_symbol_2)).filterDim); f = (f + 1u)) { uint i = ((center + f) - filterOffset); acc = (acc + ((1.0f / float((*(tint_symbol_2)).filterDim)) * (*(tint_symbol_1)).arr[r].arr[i])); diff --git a/test/tint/bug/tint/943.spvasm.expected.msl b/test/tint/bug/tint/943.spvasm.expected.msl index 63f5ad3107..6093a20788 100644 --- a/test/tint/bug/tint/943.spvasm.expected.msl +++ b/test/tint/bug/tint/943.spvasm.expected.msl @@ -48,7 +48,7 @@ bool coordsInBounds_vi2_vi2_(thread int2* const coord, thread int2* const shape) bool x_87 = false; bool x_88_phi = false; int2 const x_76 = *(coord); - bool const x_81 = all((x_76 >= int2(0, 0))); + bool const x_81 = all((x_76 >= int2(0))); x_88_phi = x_81; if (x_81) { int2 const x_84 = *(coord); @@ -497,12 +497,12 @@ void tint_symbol_1_inner(uint3 gl_LocalInvocationID_param, uint3 gl_GlobalInvoca { uint const i_1 = local_invocation_index; uint const i_2 = (local_invocation_index % 1u); - (*(tint_symbol_43)).arr[i_1].arr[i_2] = float(); + (*(tint_symbol_43)).arr[i_1].arr[i_2] = 0.0f; } for(uint idx = local_invocation_index; (idx < 4096u); idx = (idx + 64u)) { uint const i = (idx / 64u); uint const i_1 = (idx % 64u); - (*(tint_symbol_44)).arr[i].arr[i_1] = float(); + (*(tint_symbol_44)).arr[i].arr[i_1] = 0.0f; } threadgroup_barrier(mem_flags::mem_threadgroup); *(tint_symbol_45) = gl_LocalInvocationID_param; diff --git a/test/tint/bug/tint/948.wgsl.expected.msl b/test/tint/bug/tint/948.wgsl.expected.msl index 2057b433fc..c03a21b77e 100644 --- a/test/tint/bug/tint/948.wgsl.expected.msl +++ b/test/tint/bug/tint/948.wgsl.expected.msl @@ -49,7 +49,7 @@ float4x4 getFrameData_f1_(thread float* const frameID, const constant LeftOver* float4 const x_47 = tint_symbol_6.sample(tint_symbol_7, float2(x_44, 0.25f), bias(0.0f)); float const x_51 = fX; float4 const x_54 = tint_symbol_6.sample(tint_symbol_7, float2(x_51, 0.5f), bias(0.0f)); - return float4x4(float4(x_40[0], x_40[1], x_40[2], x_40[3]), float4(x_47[0], x_47[1], x_47[2], x_47[3]), float4(x_54[0], x_54[1], x_54[2], x_54[3]), float4(float4(0.0f, 0.0f, 0.0f, 0.0f)[0], float4(0.0f, 0.0f, 0.0f, 0.0f)[1], float4(0.0f, 0.0f, 0.0f, 0.0f)[2], float4(0.0f, 0.0f, 0.0f, 0.0f)[3])); + return float4x4(float4(x_40[0], x_40[1], x_40[2], x_40[3]), float4(x_47[0], x_47[1], x_47[2], x_47[3]), float4(x_54[0], x_54[1], x_54[2], x_54[3]), float4(float4(0.0f)[0], float4(0.0f)[1], float4(0.0f)[2], float4(0.0f)[3])); } void main_1(thread float2* const tint_symbol_8, const constant LeftOver* const tint_symbol_9, texture2d tint_symbol_10, sampler tint_symbol_11, texture2d tint_symbol_12, texture2d tint_symbol_13, sampler tint_symbol_14, thread float* const tint_symbol_15, texture2d tint_symbol_16, sampler tint_symbol_17, texture2d tint_symbol_18, sampler tint_symbol_19, thread float4* const tint_symbol_20) { @@ -71,7 +71,7 @@ void main_1(thread float2* const tint_symbol_8, const constant LeftOver* const t float4 nc = 0.0f; float alpha = 0.0f; float3 mixed = 0.0f; - color = float4(0.0f, 0.0f, 0.0f, 0.0f); + color = float4(0.0f); float2 const x_86 = *(tint_symbol_8); tileUV = fract(x_86); float const x_91 = tileUV[1]; @@ -79,11 +79,11 @@ void main_1(thread float2* const tint_symbol_8, const constant LeftOver* const t float2 const x_95 = *(tint_symbol_8); tileID = floor(x_95); float2 const x_101 = (*(tint_symbol_9)).spriteMapSize; - sheetUnits = (float2(1.0f, 1.0f) / x_101); + sheetUnits = (float2(1.0f) / x_101); float const x_106 = (*(tint_symbol_9)).spriteCount; spriteUnits = (1.0f / x_106); float2 const x_111 = (*(tint_symbol_9)).stageSize; - stageUnits = (float2(1.0f, 1.0f) / x_111); + stageUnits = (float2(1.0f) / x_111); i = 0; while (true) { int const x_122 = i; @@ -96,14 +96,14 @@ void main_1(thread float2* const tint_symbol_8, const constant LeftOver* const t case 1: { float2 const x_150 = tileID; float2 const x_154 = (*(tint_symbol_9)).stageSize; - float4 const x_156 = tint_symbol_10.sample(tint_symbol_11, ((x_150 + float2(0.5f, 0.5f)) / x_154), bias(0.0f)); + float4 const x_156 = tint_symbol_10.sample(tint_symbol_11, ((x_150 + float2(0.5f)) / x_154), bias(0.0f)); frameID_1 = x_156[0]; break; } case 0: { float2 const x_136 = tileID; float2 const x_140 = (*(tint_symbol_9)).stageSize; - float4 const x_142 = tint_symbol_12.sample(tint_symbol_11, ((x_136 + float2(0.5f, 0.5f)) / x_140), bias(0.0f)); + float4 const x_142 = tint_symbol_12.sample(tint_symbol_11, ((x_136 + float2(0.5f)) / x_140), bias(0.0f)); frameID_1 = x_142[0]; break; } diff --git a/test/tint/bug/tint/949.wgsl.expected.msl b/test/tint/bug/tint/949.wgsl.expected.msl index 35883388a0..5aab1bd778 100644 --- a/test/tint/bug/tint/949.wgsl.expected.msl +++ b/test/tint/bug/tint/949.wgsl.expected.msl @@ -149,7 +149,7 @@ float3 perturbNormal_mf33_vf3_f1_(thread float3x3* const cotangentFrame_1, threa float3 const x_119 = *(textureSample); float3x3 const x_125 = *(cotangentFrame_1); param = x_125; - param_1 = ((x_119 * 2.0f) - float3(1.0f, 1.0f, 1.0f)); + param_1 = ((x_119 * 2.0f) - float3(1.0f)); float const x_128 = *(scale_1); param_2 = x_128; float3 const x_129 = perturbNormalBase_mf33_vf3_f1_(&(param), &(param_1), &(param_2)); @@ -239,7 +239,7 @@ void main_1(thread float* const tint_symbol_5, thread float3* const tint_symbol_ float3 specularOutput = 0.0f; float3 output3 = 0.0f; *(tint_symbol_5) = 100.0f; - *(tint_symbol_6) = float3(0.5f, 0.5f, 0.5f); + *(tint_symbol_6) = float3(0.5f); float2 const x_261 = *(tint_symbol_7); float4 const x_262 = tint_symbol_8.sample(tint_symbol_9, x_261); tempTextureRead = x_262; @@ -249,8 +249,8 @@ void main_1(thread float* const tint_symbol_5, thread float3* const tint_symbol_ float3 const x_279 = (*(tint_symbol_10)).u_cameraPosition; float4 const x_282 = *(tint_symbol_11); output5 = normalize((x_279 - float3(x_282[0], x_282[1], x_282[2]))); - output4 = float4(0.0f, 0.0f, 0.0f, 0.0f); - uvOffset = float2(0.0f, 0.0f); + output4 = float4(0.0f); + uvOffset = float2(0.0f); float const x_292 = (*(tint_symbol_10)).u_bumpStrength; normalScale = (1.0f / x_292); bool const x_298 = *(tint_symbol_12); @@ -302,8 +302,8 @@ void main_1(thread float* const tint_symbol_5, thread float3* const tint_symbol_ float const x_374 = numSamples; stepSize = (1.0f / x_374); currRayHeight = 1.0f; - vCurrOffset = float2(0.0f, 0.0f); - vLastOffset = float2(0.0f, 0.0f); + vCurrOffset = float2(0.0f); + vLastOffset = float2(0.0f); lastSampledHeight = 1.0f; currSampledHeight = 1.0f; i = 0; @@ -384,8 +384,8 @@ void main_1(thread float* const tint_symbol_5, thread float3* const tint_symbol_ shadow = 1.0f; float const x_488 = *(tint_symbol_5); glossiness_1 = (1.0f * x_488); - diffuseBase = float3(0.0f, 0.0f, 0.0f); - specularBase = float3(0.0f, 0.0f, 0.0f); + diffuseBase = float3(0.0f); + specularBase = float3(0.0f); float4 const x_494 = output4; normalW = float3(x_494[0], x_494[1], x_494[2]); float3 const x_501 = viewDirectionW_1; diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.msl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.msl index 38e5225470..9af5beba71 100644 --- a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.msl +++ b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.msl @@ -8,7 +8,7 @@ int3 tint_extract_bits(int3 v, uint offset, uint count) { } void f_1() { - int3 v = int3(); + int3 v = int3(0); uint offset_1 = 0u; uint count = 0u; int3 const x_17 = v; diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.msl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.msl index 77b64509a1..a9227ee8ec 100644 --- a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.msl +++ b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.msl @@ -8,7 +8,7 @@ uint3 tint_extract_bits(uint3 v, uint offset, uint count) { } void f_1() { - uint3 v = uint3(); + uint3 v = uint3(0u); uint offset_1 = 0u; uint count = 0u; uint3 const x_16 = v; diff --git a/test/tint/builtins/gen/abs/002533.wgsl.expected.msl b/test/tint/builtins/gen/abs/002533.wgsl.expected.msl index e7c6e0cd7f..d1c346b0bb 100644 --- a/test/tint/builtins/gen/abs/002533.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/002533.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_002533() { - float4 res = fabs(float4()); + float4 res = fabs(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_002533(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/005174.wgsl.expected.msl b/test/tint/builtins/gen/abs/005174.wgsl.expected.msl index 7606da6715..7148a5c9da 100644 --- a/test/tint/builtins/gen/abs/005174.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/005174.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_005174() { - float3 res = fabs(float3()); + float3 res = fabs(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_005174(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/1ce782.wgsl.expected.msl b/test/tint/builtins/gen/abs/1ce782.wgsl.expected.msl index 73296533db..2029d3c2a4 100644 --- a/test/tint/builtins/gen/abs/1ce782.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/1ce782.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_1ce782() { - uint4 res = abs(uint4()); + uint4 res = abs(uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_1ce782(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.msl b/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.msl index 7951049b1c..697d3a8c60 100644 --- a/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_1e9d53() { - float2 res = fabs(float2()); + float2 res = fabs(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_1e9d53(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/467cd1.wgsl.expected.msl b/test/tint/builtins/gen/abs/467cd1.wgsl.expected.msl index 421b221d2f..22849cd1ea 100644 --- a/test/tint/builtins/gen/abs/467cd1.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/467cd1.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_467cd1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/4ad288.wgsl.expected.msl b/test/tint/builtins/gen/abs/4ad288.wgsl.expected.msl index dcea6480d9..60fb737263 100644 --- a/test/tint/builtins/gen/abs/4ad288.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/4ad288.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_4ad288(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.msl b/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.msl index b3da1a3dcb..b71c07eb99 100644 --- a/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_5ad50a() { - int3 res = abs(int3()); + int3 res = abs(int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_5ad50a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7326de.wgsl.expected.msl b/test/tint/builtins/gen/abs/7326de.wgsl.expected.msl index 146626d5ac..1a98a0d668 100644 --- a/test/tint/builtins/gen/abs/7326de.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/7326de.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_7326de() { - uint3 res = abs(uint3()); + uint3 res = abs(uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7326de(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.msl b/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.msl index 97422d7325..dc367907f0 100644 --- a/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_7f28e6() { - uint2 res = abs(uint2()); + uint2 res = abs(uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7f28e6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.msl b/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.msl index 278f9dbbc6..af851389df 100644 --- a/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_7faa9e() { - int2 res = abs(int2()); + int2 res = abs(int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7faa9e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.msl b/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.msl index 11b838e837..d1d822cd7d 100644 --- a/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void abs_9c80a6() { - int4 res = abs(int4()); + int4 res = abs(int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_9c80a6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/b96037.wgsl.expected.msl b/test/tint/builtins/gen/abs/b96037.wgsl.expected.msl index 92263420a3..38e2f9b030 100644 --- a/test/tint/builtins/gen/abs/b96037.wgsl.expected.msl +++ b/test/tint/builtins/gen/abs/b96037.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_b96037(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/489247.wgsl.expected.msl b/test/tint/builtins/gen/acos/489247.wgsl.expected.msl index b80a9c8515..a7bb168303 100644 --- a/test/tint/builtins/gen/acos/489247.wgsl.expected.msl +++ b/test/tint/builtins/gen/acos/489247.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_489247(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.msl b/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.msl index 8595fceae2..d46c4d972b 100644 --- a/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.msl +++ b/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void acos_8e2acf() { - float4 res = acos(float4()); + float4 res = acos(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_8e2acf(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/a610c4.wgsl.expected.msl b/test/tint/builtins/gen/acos/a610c4.wgsl.expected.msl index 435d150f23..3d85c17786 100644 --- a/test/tint/builtins/gen/acos/a610c4.wgsl.expected.msl +++ b/test/tint/builtins/gen/acos/a610c4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void acos_a610c4() { - float3 res = acos(float3()); + float3 res = acos(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_a610c4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/dfc915.wgsl.expected.msl b/test/tint/builtins/gen/acos/dfc915.wgsl.expected.msl index 7668f36c1e..75dd630f30 100644 --- a/test/tint/builtins/gen/acos/dfc915.wgsl.expected.msl +++ b/test/tint/builtins/gen/acos/dfc915.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void acos_dfc915() { - float2 res = acos(float2()); + float2 res = acos(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_dfc915(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/353d6a.wgsl.expected.msl b/test/tint/builtins/gen/all/353d6a.wgsl.expected.msl index 74aff96a63..1bad262511 100644 --- a/test/tint/builtins/gen/all/353d6a.wgsl.expected.msl +++ b/test/tint/builtins/gen/all/353d6a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void all_353d6a() { - bool res = all(bool()); + bool res = all(false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_353d6a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/986c7b.wgsl.expected.msl b/test/tint/builtins/gen/all/986c7b.wgsl.expected.msl index 041e28037c..a5648b95d1 100644 --- a/test/tint/builtins/gen/all/986c7b.wgsl.expected.msl +++ b/test/tint/builtins/gen/all/986c7b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void all_986c7b() { - bool res = all(bool4()); + bool res = all(bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_986c7b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/bd2dba.wgsl.expected.msl b/test/tint/builtins/gen/all/bd2dba.wgsl.expected.msl index d6d45cff04..ad5232453b 100644 --- a/test/tint/builtins/gen/all/bd2dba.wgsl.expected.msl +++ b/test/tint/builtins/gen/all/bd2dba.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void all_bd2dba() { - bool res = all(bool3()); + bool res = all(bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_bd2dba(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/f46790.wgsl.expected.msl b/test/tint/builtins/gen/all/f46790.wgsl.expected.msl index 60c3c44d7b..1d4420c339 100644 --- a/test/tint/builtins/gen/all/f46790.wgsl.expected.msl +++ b/test/tint/builtins/gen/all/f46790.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void all_f46790() { - bool res = all(bool2()); + bool res = all(bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_f46790(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/083428.wgsl.expected.msl b/test/tint/builtins/gen/any/083428.wgsl.expected.msl index a11e292676..28a71e3a27 100644 --- a/test/tint/builtins/gen/any/083428.wgsl.expected.msl +++ b/test/tint/builtins/gen/any/083428.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void any_083428() { - bool res = any(bool4()); + bool res = any(bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_083428(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/0e3e58.wgsl.expected.msl b/test/tint/builtins/gen/any/0e3e58.wgsl.expected.msl index 1bf7505bd3..b70ef8f653 100644 --- a/test/tint/builtins/gen/any/0e3e58.wgsl.expected.msl +++ b/test/tint/builtins/gen/any/0e3e58.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void any_0e3e58() { - bool res = any(bool2()); + bool res = any(bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_0e3e58(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/2ab91a.wgsl.expected.msl b/test/tint/builtins/gen/any/2ab91a.wgsl.expected.msl index 15e82831fd..903fba8c01 100644 --- a/test/tint/builtins/gen/any/2ab91a.wgsl.expected.msl +++ b/test/tint/builtins/gen/any/2ab91a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void any_2ab91a() { - bool res = any(bool()); + bool res = any(false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_2ab91a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/e755c1.wgsl.expected.msl b/test/tint/builtins/gen/any/e755c1.wgsl.expected.msl index fc6214bccb..d8148350a0 100644 --- a/test/tint/builtins/gen/any/e755c1.wgsl.expected.msl +++ b/test/tint/builtins/gen/any/e755c1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void any_e755c1() { - bool res = any(bool3()); + bool res = any(bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_e755c1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.msl index 1793477027..1f8ac29561 100644 --- a/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_1588cd(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl index cebf66b06a..9fa02f3a11 100644 --- a/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_61b1c7(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl index a04fc9c82c..f1b77851c2 100644 --- a/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_a0f5ca(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.msl index 3ba8276df0..22cfa6cbaa 100644 --- a/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_cdd123(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl index 5dd7ad6153..d64c1e002d 100644 --- a/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_cfca0a(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.msl b/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.msl index c66c4264e4..44128538b9 100644 --- a/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.msl +++ b/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.msl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner(const constant tint_symbol_1* const tint_symbol_4) { arrayLength_eb510f(tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(const constant tint_symbol_1* tint_symbol_5 [[buffer(30)]]) { diff --git a/test/tint/builtins/gen/asin/064953.wgsl.expected.msl b/test/tint/builtins/gen/asin/064953.wgsl.expected.msl index efee548e4c..8000af5e18 100644 --- a/test/tint/builtins/gen/asin/064953.wgsl.expected.msl +++ b/test/tint/builtins/gen/asin/064953.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void asin_064953() { - float4 res = asin(float4()); + float4 res = asin(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_064953(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.msl b/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.msl index 35238bb088..28eb3ee62a 100644 --- a/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.msl +++ b/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void asin_7b6a44() { - float2 res = asin(float2()); + float2 res = asin(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_7b6a44(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.msl b/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.msl index bd995202c8..627ab34558 100644 --- a/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.msl +++ b/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void asin_8cd9c9() { - float3 res = asin(float3()); + float3 res = asin(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_8cd9c9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/c0c272.wgsl.expected.msl b/test/tint/builtins/gen/asin/c0c272.wgsl.expected.msl index 4ada72f62a..df7148b2af 100644 --- a/test/tint/builtins/gen/asin/c0c272.wgsl.expected.msl +++ b/test/tint/builtins/gen/asin/c0c272.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_c0c272(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/02979a.wgsl.expected.msl b/test/tint/builtins/gen/atan/02979a.wgsl.expected.msl index bfe58be704..a4b9181605 100644 --- a/test/tint/builtins/gen/atan/02979a.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan/02979a.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_02979a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/331e6d.wgsl.expected.msl b/test/tint/builtins/gen/atan/331e6d.wgsl.expected.msl index 3c7f449c9f..2abc788c07 100644 --- a/test/tint/builtins/gen/atan/331e6d.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan/331e6d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan_331e6d() { - float3 res = atan(float3()); + float3 res = atan(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_331e6d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/a8b696.wgsl.expected.msl b/test/tint/builtins/gen/atan/a8b696.wgsl.expected.msl index a82a8f92e9..903ffce336 100644 --- a/test/tint/builtins/gen/atan/a8b696.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan/a8b696.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan_a8b696() { - float4 res = atan(float4()); + float4 res = atan(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_a8b696(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.msl b/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.msl index f5a21518b5..ccb46e3ddc 100644 --- a/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan_ad96e4() { - float2 res = atan(float2()); + float2 res = atan(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_ad96e4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.msl b/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.msl index f05e3c56b6..7d3ac1fd07 100644 --- a/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan2_57fb13() { - float2 res = atan2(float2(), float2()); + float2 res = atan2(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_57fb13(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/96057c.wgsl.expected.msl b/test/tint/builtins/gen/atan2/96057c.wgsl.expected.msl index 659a6225e1..f8d20e0120 100644 --- a/test/tint/builtins/gen/atan2/96057c.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan2/96057c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_96057c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.msl b/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.msl index 3281d2997f..0e88ba2d05 100644 --- a/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan2_a70d0d() { - float3 res = atan2(float3(), float3()); + float3 res = atan2(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_a70d0d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.msl b/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.msl index 58e28ab259..5d7fa01f1a 100644 --- a/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.msl +++ b/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void atan2_ae713e() { - float4 res = atan2(float4(), float4()); + float4 res = atan2(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_ae713e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atomicAdd/794055.wgsl.expected.msl b/test/tint/builtins/gen/atomicAdd/794055.wgsl.expected.msl index 5f8f64d87c..dca123cd13 100644 --- a/test/tint/builtins/gen/atomicAdd/794055.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicAdd/794055.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicAdd_794055(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicAdd_794055(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl b/test/tint/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl index 5a9aaeee1a..3d80f24eae 100644 --- a/test/tint/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicAdd/d5db1d.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicAdd_d5db1d(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicAdd_d5db1d(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl b/test/tint/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl index c866b0ef0f..adc4916cd5 100644 --- a/test/tint/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicAnd/34edd3.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicAnd_34edd3(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicAnd_34edd3(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicAnd/45a819.wgsl.expected.msl b/test/tint/builtins/gen/atomicAnd/45a819.wgsl.expected.msl index b9f92024de..4fff67198e 100644 --- a/test/tint/builtins/gen/atomicAnd/45a819.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicAnd/45a819.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicAnd_45a819(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicAnd_45a819(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicCompareExchangeWeak/83580d.wgsl.expected.msl b/test/tint/builtins/gen/atomicCompareExchangeWeak/83580d.wgsl.expected.msl index 7a3443b90d..57f5ce34d3 100644 --- a/test/tint/builtins/gen/atomicCompareExchangeWeak/83580d.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicCompareExchangeWeak/83580d.wgsl.expected.msl @@ -19,7 +19,7 @@ void atomicCompareExchangeWeak_83580d(threadgroup atomic_uint* const tint_symbol void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicCompareExchangeWeak_83580d(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicCompareExchangeWeak/e88938.wgsl.expected.msl b/test/tint/builtins/gen/atomicCompareExchangeWeak/e88938.wgsl.expected.msl index 9815b6d0d6..0d754bca1b 100644 --- a/test/tint/builtins/gen/atomicCompareExchangeWeak/e88938.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicCompareExchangeWeak/e88938.wgsl.expected.msl @@ -19,7 +19,7 @@ void atomicCompareExchangeWeak_e88938(threadgroup atomic_int* const tint_symbol) void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicCompareExchangeWeak_e88938(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl b/test/tint/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl index 23e312119c..392a929458 100644 --- a/test/tint/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicExchange/0a5dca.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicExchange_0a5dca(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicExchange_0a5dca(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl b/test/tint/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl index abcec161c3..d213dff104 100644 --- a/test/tint/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicExchange/e114ba.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicExchange_e114ba(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicExchange_e114ba(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl b/test/tint/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl index 327dc2ad92..eedf946e10 100644 --- a/test/tint/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicLoad/361bf1.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicLoad_361bf1(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicLoad_361bf1(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl b/test/tint/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl index b3948d3f40..90d483da2f 100644 --- a/test/tint/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicLoad/afcc03.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicLoad_afcc03(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicLoad_afcc03(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl b/test/tint/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl index fbe1f22096..bf92158a05 100644 --- a/test/tint/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicMax/a89cc3.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicMax_a89cc3(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicMax_a89cc3(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicMax/beccfc.wgsl.expected.msl b/test/tint/builtins/gen/atomicMax/beccfc.wgsl.expected.msl index 5edad1c6bf..a0d53b910f 100644 --- a/test/tint/builtins/gen/atomicMax/beccfc.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicMax/beccfc.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicMax_beccfc(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicMax_beccfc(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicMin/278235.wgsl.expected.msl b/test/tint/builtins/gen/atomicMin/278235.wgsl.expected.msl index 3b359fca64..afc4fe065a 100644 --- a/test/tint/builtins/gen/atomicMin/278235.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicMin/278235.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicMin_278235(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicMin_278235(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicMin/69d383.wgsl.expected.msl b/test/tint/builtins/gen/atomicMin/69d383.wgsl.expected.msl index 9c1e70e877..166a4c200c 100644 --- a/test/tint/builtins/gen/atomicMin/69d383.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicMin/69d383.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicMin_69d383(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicMin_69d383(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl b/test/tint/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl index 9aea6427bc..9527616f33 100644 --- a/test/tint/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicOr/5e3d61.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicOr_5e3d61(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicOr_5e3d61(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicOr/d09248.wgsl.expected.msl b/test/tint/builtins/gen/atomicOr/d09248.wgsl.expected.msl index 6a0d77dd80..0d50df3409 100644 --- a/test/tint/builtins/gen/atomicOr/d09248.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicOr/d09248.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicOr_d09248(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicOr_d09248(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicStore/726882.wgsl.expected.msl b/test/tint/builtins/gen/atomicStore/726882.wgsl.expected.msl index 665c40cdde..67f1592889 100644 --- a/test/tint/builtins/gen/atomicStore/726882.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicStore/726882.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicStore_726882(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicStore_726882(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicStore/8bea94.wgsl.expected.msl b/test/tint/builtins/gen/atomicStore/8bea94.wgsl.expected.msl index c17b49ca48..b549a08e96 100644 --- a/test/tint/builtins/gen/atomicStore/8bea94.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicStore/8bea94.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicStore_8bea94(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicStore_8bea94(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl b/test/tint/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl index aea7fed773..9ea6c9775c 100644 --- a/test/tint/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicSub/0d26c2.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicSub_0d26c2(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicSub_0d26c2(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicSub/77883a.wgsl.expected.msl b/test/tint/builtins/gen/atomicSub/77883a.wgsl.expected.msl index 603ac409c4..af2c77b2d2 100644 --- a/test/tint/builtins/gen/atomicSub/77883a.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicSub/77883a.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicSub_77883a(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicSub_77883a(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicXor/75dc95.wgsl.expected.msl b/test/tint/builtins/gen/atomicXor/75dc95.wgsl.expected.msl index a89935b70a..83e290b8d1 100644 --- a/test/tint/builtins/gen/atomicXor/75dc95.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicXor/75dc95.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicXor_75dc95(threadgroup atomic_int* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_int* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, int(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicXor_75dc95(tint_symbol_1); diff --git a/test/tint/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl b/test/tint/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl index 097ce40f58..41b94a05eb 100644 --- a/test/tint/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl +++ b/test/tint/builtins/gen/atomicXor/c8e6be.wgsl.expected.msl @@ -7,7 +7,7 @@ void atomicXor_c8e6be(threadgroup atomic_uint* const tint_symbol) { void compute_main_inner(uint local_invocation_index, threadgroup atomic_uint* const tint_symbol_1) { { - atomic_store_explicit(tint_symbol_1, uint(), memory_order_relaxed); + atomic_store_explicit(tint_symbol_1, 0u, memory_order_relaxed); } threadgroup_barrier(mem_flags::mem_threadgroup); atomicXor_c8e6be(tint_symbol_1); diff --git a/test/tint/builtins/gen/ceil/34064b.wgsl.expected.msl b/test/tint/builtins/gen/ceil/34064b.wgsl.expected.msl index a8886eb293..67750519f4 100644 --- a/test/tint/builtins/gen/ceil/34064b.wgsl.expected.msl +++ b/test/tint/builtins/gen/ceil/34064b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ceil_34064b() { - float3 res = ceil(float3()); + float3 res = ceil(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_34064b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/678655.wgsl.expected.msl b/test/tint/builtins/gen/ceil/678655.wgsl.expected.msl index 6a52e99a31..37d1aeca45 100644 --- a/test/tint/builtins/gen/ceil/678655.wgsl.expected.msl +++ b/test/tint/builtins/gen/ceil/678655.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_678655(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/96f597.wgsl.expected.msl b/test/tint/builtins/gen/ceil/96f597.wgsl.expected.msl index ec019842f8..b5de93ad94 100644 --- a/test/tint/builtins/gen/ceil/96f597.wgsl.expected.msl +++ b/test/tint/builtins/gen/ceil/96f597.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ceil_96f597() { - float2 res = ceil(float2()); + float2 res = ceil(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_96f597(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.msl b/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.msl index 8aefc080f3..ad695406bb 100644 --- a/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.msl +++ b/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ceil_b74c16() { - float4 res = ceil(float4()); + float4 res = ceil(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_b74c16(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.msl b/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.msl index 916d8fdce9..19f2f4871f 100644 --- a/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_0acf8f() { - float2 res = clamp(float2(), float2(), float2()); + float2 res = clamp(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_0acf8f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.msl b/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.msl index 44f759a007..9ffc14a110 100644 --- a/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_1a32e3() { - int4 res = clamp(int4(), int4(), int4()); + int4 res = clamp(int4(0), int4(0), int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_1a32e3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.msl b/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.msl index dfcc293e4b..338e4386c3 100644 --- a/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_2bd567(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.msl b/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.msl index dac7c95dc9..801e95a9f9 100644 --- a/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_2bde41() { - float4 res = clamp(float4(), float4(), float4()); + float4 res = clamp(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_2bde41(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.msl b/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.msl index 0ca98d3866..7118ba6ce4 100644 --- a/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_548fc7() { - uint3 res = clamp(uint3(), uint3(), uint3()); + uint3 res = clamp(uint3(0u), uint3(0u), uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_548fc7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.msl b/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.msl index b2da28a4fb..544d17764d 100644 --- a/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_5f0819() { - int3 res = clamp(int3(), int3(), int3()); + int3 res = clamp(int3(0), int3(0), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_5f0819(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.msl b/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.msl index 39c36afb36..fd20f66722 100644 --- a/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_6c1749() { - int2 res = clamp(int2(), int2(), int2()); + int2 res = clamp(int2(0), int2(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_6c1749(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.msl b/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.msl index 840b4ad5c0..97b583be7f 100644 --- a/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_7706d7() { - uint2 res = clamp(uint2(), uint2(), uint2()); + uint2 res = clamp(uint2(0u), uint2(0u), uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_7706d7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/867397.wgsl.expected.msl b/test/tint/builtins/gen/clamp/867397.wgsl.expected.msl index 66e86469da..7bf7bae55d 100644 --- a/test/tint/builtins/gen/clamp/867397.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/867397.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_867397() { - float3 res = clamp(float3(), float3(), float3()); + float3 res = clamp(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_867397(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.msl b/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.msl index 8e4fdfb3d9..0669039624 100644 --- a/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_a2de25(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.msl b/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.msl index cfe6f26816..ab1978cc40 100644 --- a/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_b07c65(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.msl b/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.msl index 45be006ead..8f41464710 100644 --- a/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.msl +++ b/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void clamp_bd43ce() { - uint4 res = clamp(uint4(), uint4(), uint4()); + uint4 res = clamp(uint4(0u), uint4(0u), uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_bd43ce(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/16dc15.wgsl.expected.msl b/test/tint/builtins/gen/cos/16dc15.wgsl.expected.msl index 757514ed81..e593fc725e 100644 --- a/test/tint/builtins/gen/cos/16dc15.wgsl.expected.msl +++ b/test/tint/builtins/gen/cos/16dc15.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cos_16dc15() { - float3 res = cos(float3()); + float3 res = cos(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_16dc15(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/29d66d.wgsl.expected.msl b/test/tint/builtins/gen/cos/29d66d.wgsl.expected.msl index c77bb9ee8b..1e288cbf43 100644 --- a/test/tint/builtins/gen/cos/29d66d.wgsl.expected.msl +++ b/test/tint/builtins/gen/cos/29d66d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cos_29d66d() { - float4 res = cos(float4()); + float4 res = cos(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_29d66d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/c3b486.wgsl.expected.msl b/test/tint/builtins/gen/cos/c3b486.wgsl.expected.msl index 9118d2961c..a1e0e6bb93 100644 --- a/test/tint/builtins/gen/cos/c3b486.wgsl.expected.msl +++ b/test/tint/builtins/gen/cos/c3b486.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cos_c3b486() { - float2 res = cos(float2()); + float2 res = cos(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_c3b486(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.msl b/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.msl index fb0fdd7a26..2fc7d06480 100644 --- a/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.msl +++ b/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_c5c28e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/377652.wgsl.expected.msl b/test/tint/builtins/gen/cosh/377652.wgsl.expected.msl index 0edfd485f3..218f15392c 100644 --- a/test/tint/builtins/gen/cosh/377652.wgsl.expected.msl +++ b/test/tint/builtins/gen/cosh/377652.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cosh_377652() { - float3 res = cosh(float3()); + float3 res = cosh(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_377652(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/c13756.wgsl.expected.msl b/test/tint/builtins/gen/cosh/c13756.wgsl.expected.msl index 84f27d0074..69e464b8bf 100644 --- a/test/tint/builtins/gen/cosh/c13756.wgsl.expected.msl +++ b/test/tint/builtins/gen/cosh/c13756.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cosh_c13756() { - float2 res = cosh(float2()); + float2 res = cosh(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_c13756(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.msl b/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.msl index 21bc8291d5..9cc36ccc46 100644 --- a/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.msl +++ b/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_da92dd(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.msl b/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.msl index 1bf2ee4ced..b04468d47f 100644 --- a/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.msl +++ b/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cosh_e0c1de() { - float4 res = cosh(float4()); + float4 res = cosh(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_e0c1de(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.msl index f1368f91e9..da0f3aec1b 100644 --- a/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_208d46(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.msl index 5a745169e1..3a085a5dbf 100644 --- a/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_6d4656(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.msl index 0f272c2b43..cca2e38e82 100644 --- a/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_70783f() { - uint2 res = clz(uint2()); + uint2 res = clz(uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_70783f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.msl index e7a07c8c61..9cd1b87258 100644 --- a/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_7c38a6() { - int3 res = clz(int3()); + int3 res = clz(int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_7c38a6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.msl index e8773e3ba6..51249fd66a 100644 --- a/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_858d40() { - int2 res = clz(int2()); + int2 res = clz(int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_858d40(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.msl index 3dc764c9ec..805defdb40 100644 --- a/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_ab6345() { - uint3 res = clz(uint3()); + uint3 res = clz(uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_ab6345(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.msl index 53fc2bd00e..a85b6e0789 100644 --- a/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_eab32b() { - int4 res = clz(int4()); + int4 res = clz(int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_eab32b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.msl b/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.msl index b29d8fbdad..aedee4c9d0 100644 --- a/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.msl +++ b/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countLeadingZeros_f70103() { - uint4 res = clz(uint4()); + uint4 res = clz(uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_f70103(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl index 448eec5cdb..b61ed001a2 100644 --- a/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_0d0e46() { - uint4 res = popcount(uint4()); + uint4 res = popcount(uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_0d0e46(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.msl index 196fe6abe1..7f864ac50c 100644 --- a/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_0f7980() { - int4 res = popcount(int4()); + int4 res = popcount(int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_0f7980(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl index a8ac3e8686..dcedaa50a1 100644 --- a/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_65d2ae() { - int3 res = popcount(int3()); + int3 res = popcount(int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_65d2ae(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.msl index 00274407f3..4038a5010e 100644 --- a/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_690cfc() { - uint3 res = popcount(uint3()); + uint3 res = popcount(uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_690cfc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.msl index e1f624821c..d9263d2c41 100644 --- a/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_94fd81() { - uint2 res = popcount(uint2()); + uint2 res = popcount(uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_94fd81(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl index 5a33d66585..70e2b9f6f2 100644 --- a/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_ae44f9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.msl index f68cf94c5a..2bc7fb2e55 100644 --- a/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countOneBits_af90e2() { - int2 res = popcount(int2()); + int2 res = popcount(int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_af90e2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl b/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl index 998da7ae27..91cd762778 100644 --- a/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl +++ b/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_fd88b2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.msl index 1db16bf7eb..878eb349af 100644 --- a/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_1ad138() { - uint2 res = ctz(uint2()); + uint2 res = ctz(uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_1ad138(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.msl index 33863bf6f7..29504f3340 100644 --- a/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_1dc84a() { - int4 res = ctz(int4()); + int4 res = ctz(int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_1dc84a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.msl index 224d4ce684..e403208976 100644 --- a/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_21e394(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.msl index 3017464b97..dbce4a98f8 100644 --- a/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_327c37() { - int2 res = ctz(int2()); + int2 res = ctz(int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_327c37(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.msl index 2d69179817..7d73b007a7 100644 --- a/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_42fed6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.msl index 076a02d580..14b7ddcd34 100644 --- a/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_8ed26f() { - uint3 res = ctz(uint3()); + uint3 res = ctz(uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_8ed26f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.msl index 8fa6a02821..619895df4f 100644 --- a/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_acfacb() { - int3 res = ctz(int3()); + int3 res = ctz(int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_acfacb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.msl b/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.msl index 7954b94fa6..b042a36657 100644 --- a/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.msl +++ b/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void countTrailingZeros_d2b4a0() { - uint4 res = ctz(uint4()); + uint4 res = ctz(uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_d2b4a0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cross/041cb0.wgsl.expected.msl b/test/tint/builtins/gen/cross/041cb0.wgsl.expected.msl index 86e2546252..01500bb8d9 100644 --- a/test/tint/builtins/gen/cross/041cb0.wgsl.expected.msl +++ b/test/tint/builtins/gen/cross/041cb0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void cross_041cb0() { - float3 res = cross(float3(), float3()); + float3 res = cross(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { cross_041cb0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.msl b/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.msl index 2773179bd4..213adf069b 100644 --- a/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.msl +++ b/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.msl @@ -7,7 +7,7 @@ float4 tint_degrees(float4 param_0) { } void degrees_0d170c() { - float4 res = tint_degrees(float4()); + float4 res = tint_degrees(float4(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_0d170c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.msl b/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.msl index 5305c0fb6f..ca1cc3754a 100644 --- a/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.msl +++ b/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.msl @@ -7,7 +7,7 @@ float2 tint_degrees(float2 param_0) { } void degrees_1ad5df() { - float2 res = tint_degrees(float2()); + float2 res = tint_degrees(float2(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_1ad5df(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/2af623.wgsl.expected.msl b/test/tint/builtins/gen/degrees/2af623.wgsl.expected.msl index 46d0565e39..5bfc5ff6b3 100644 --- a/test/tint/builtins/gen/degrees/2af623.wgsl.expected.msl +++ b/test/tint/builtins/gen/degrees/2af623.wgsl.expected.msl @@ -7,7 +7,7 @@ float3 tint_degrees(float3 param_0) { } void degrees_2af623() { - float3 res = tint_degrees(float3()); + float3 res = tint_degrees(float3(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_2af623(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/51f705.wgsl.expected.msl b/test/tint/builtins/gen/degrees/51f705.wgsl.expected.msl index 2b6395dd67..6c29fa0a17 100644 --- a/test/tint/builtins/gen/degrees/51f705.wgsl.expected.msl +++ b/test/tint/builtins/gen/degrees/51f705.wgsl.expected.msl @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_51f705(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.msl b/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.msl index 6953c6b38d..50972bfca8 100644 --- a/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.msl +++ b/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void determinant_2b62ba() { - float res = determinant(float3x3()); + float res = determinant(float3x3(float3(0.0f), float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_2b62ba(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.msl b/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.msl index 44820746f6..65ce75a8e6 100644 --- a/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.msl +++ b/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void determinant_a0a87c() { - float res = determinant(float4x4()); + float res = determinant(float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_a0a87c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/e19305.wgsl.expected.msl b/test/tint/builtins/gen/determinant/e19305.wgsl.expected.msl index ce236ae97e..58b03f5904 100644 --- a/test/tint/builtins/gen/determinant/e19305.wgsl.expected.msl +++ b/test/tint/builtins/gen/determinant/e19305.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void determinant_e19305() { - float res = determinant(float2x2()); + float res = determinant(float2x2(float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_e19305(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/0657d4.wgsl.expected.msl b/test/tint/builtins/gen/distance/0657d4.wgsl.expected.msl index 834ac1342f..22adbc9545 100644 --- a/test/tint/builtins/gen/distance/0657d4.wgsl.expected.msl +++ b/test/tint/builtins/gen/distance/0657d4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void distance_0657d4() { - float res = distance(float3(), float3()); + float res = distance(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_0657d4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/9646ea.wgsl.expected.msl b/test/tint/builtins/gen/distance/9646ea.wgsl.expected.msl index 687568459b..1c9effcda4 100644 --- a/test/tint/builtins/gen/distance/9646ea.wgsl.expected.msl +++ b/test/tint/builtins/gen/distance/9646ea.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void distance_9646ea() { - float res = distance(float4(), float4()); + float res = distance(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_9646ea(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/aa4055.wgsl.expected.msl b/test/tint/builtins/gen/distance/aa4055.wgsl.expected.msl index b2d798b7b4..9303f3a7a9 100644 --- a/test/tint/builtins/gen/distance/aa4055.wgsl.expected.msl +++ b/test/tint/builtins/gen/distance/aa4055.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void distance_aa4055() { - float res = distance(float2(), float2()); + float res = distance(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_aa4055(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/cfed73.wgsl.expected.msl b/test/tint/builtins/gen/distance/cfed73.wgsl.expected.msl index 698ebb1b70..a149206f88 100644 --- a/test/tint/builtins/gen/distance/cfed73.wgsl.expected.msl +++ b/test/tint/builtins/gen/distance/cfed73.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_cfed73(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/0c577b.wgsl.expected.msl b/test/tint/builtins/gen/dot/0c577b.wgsl.expected.msl index 19de798eca..179265a2bb 100644 --- a/test/tint/builtins/gen/dot/0c577b.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/0c577b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dot_0c577b() { - float res = dot(float4(), float4()); + float res = dot(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_0c577b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/7548a0.wgsl.expected.msl b/test/tint/builtins/gen/dot/7548a0.wgsl.expected.msl index d0d876dcf8..5972b3ff52 100644 --- a/test/tint/builtins/gen/dot/7548a0.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/7548a0.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot3(vec a, vec b) { return a[0]*b[0] + a[1]*b[1] + a[2]*b[2]; } void dot_7548a0() { - uint res = tint_dot3(uint3(), uint3()); + uint res = tint_dot3(uint3(0u), uint3(0u)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_7548a0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/883f0e.wgsl.expected.msl b/test/tint/builtins/gen/dot/883f0e.wgsl.expected.msl index 00dbb28578..554b7deea4 100644 --- a/test/tint/builtins/gen/dot/883f0e.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/883f0e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dot_883f0e() { - float res = dot(float2(), float2()); + float res = dot(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_883f0e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.msl b/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.msl index ed799a17bf..bf89820776 100644 --- a/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot2(vec a, vec b) { return a[0]*b[0] + a[1]*b[1]; } void dot_97c7ee() { - uint res = tint_dot2(uint2(), uint2()); + uint res = tint_dot2(uint2(0u), uint2(0u)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_97c7ee(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/ba4246.wgsl.expected.msl b/test/tint/builtins/gen/dot/ba4246.wgsl.expected.msl index 9124e9475a..972cd2ed5a 100644 --- a/test/tint/builtins/gen/dot/ba4246.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/ba4246.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dot_ba4246() { - float res = dot(float3(), float3()); + float res = dot(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_ba4246(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/e994c7.wgsl.expected.msl b/test/tint/builtins/gen/dot/e994c7.wgsl.expected.msl index e2d1a32ffb..306ca8c9e3 100644 --- a/test/tint/builtins/gen/dot/e994c7.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/e994c7.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot4(vec a, vec b) { return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3]; } void dot_e994c7() { - uint res = tint_dot4(uint4(), uint4()); + uint res = tint_dot4(uint4(0u), uint4(0u)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_e994c7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.msl b/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.msl index 47600314d4..d89e2ffdc1 100644 --- a/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot4(vec a, vec b) { return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3]; } void dot_ef6b1d() { - int res = tint_dot4(int4(), int4()); + int res = tint_dot4(int4(0), int4(0)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_ef6b1d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/f1312c.wgsl.expected.msl b/test/tint/builtins/gen/dot/f1312c.wgsl.expected.msl index ecf8b2d83e..a4a95aeda5 100644 --- a/test/tint/builtins/gen/dot/f1312c.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/f1312c.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot3(vec a, vec b) { return a[0]*b[0] + a[1]*b[1] + a[2]*b[2]; } void dot_f1312c() { - int res = tint_dot3(int3(), int3()); + int res = tint_dot3(int3(0), int3(0)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_f1312c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.msl b/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.msl index 199ff06af1..7659b6221d 100644 --- a/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.msl +++ b/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.msl @@ -7,7 +7,7 @@ T tint_dot2(vec a, vec b) { return a[0]*b[0] + a[1]*b[1]; } void dot_fc5f7c() { - int res = tint_dot2(int2(), int2()); + int res = tint_dot2(int2(0), int2(0)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_fc5f7c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.msl b/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.msl index a7719d71bf..017a499564 100644 --- a/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdx_0763f7() { - float3 res = dfdx(float3()); + float3 res = dfdx(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.msl b/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.msl index c1583821c1..258ec624b6 100644 --- a/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdx_99edb1() { - float2 res = dfdx(float2()); + float2 res = dfdx(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.msl b/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.msl index bb43c52cdf..8071b345bf 100644 --- a/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdx_c487fa() { - float4 res = dfdx(float4()); + float4 res = dfdx(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl b/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl index 8bbf1acde1..364dd6b20d 100644 --- a/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxCoarse_9581cf() { - float2 res = dfdx(float2()); + float2 res = dfdx(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl b/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl index 62b43ef782..bd2038c451 100644 --- a/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxCoarse_c28641() { - float4 res = dfdx(float4()); + float4 res = dfdx(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl b/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl index 8c4d03840c..8e524c5789 100644 --- a/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxCoarse_f64d7b() { - float3 res = dfdx(float3()); + float3 res = dfdx(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl b/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl index 6b2bc94ac8..4b24b81d03 100644 --- a/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxFine_8c5069() { - float4 res = dfdx(float4()); + float4 res = dfdx(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.msl b/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.msl index 60055fb30b..c5c465cb58 100644 --- a/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxFine_9631de() { - float2 res = dfdx(float2()); + float2 res = dfdx(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl b/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl index 8149873f7c..451171c478 100644 --- a/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdxFine_f92fb6() { - float3 res = dfdx(float3()); + float3 res = dfdx(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.msl b/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.msl index f99636537f..9f9a6bb80f 100644 --- a/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdy_699a05() { - float4 res = dfdy(float4()); + float4 res = dfdy(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.msl b/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.msl index 98a29ea033..bf9792eb7b 100644 --- a/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdy_a8b56e() { - float2 res = dfdy(float2()); + float2 res = dfdy(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.msl b/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.msl index d0236bac27..837b41ace5 100644 --- a/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdy_feb40f() { - float3 res = dfdy(float3()); + float3 res = dfdy(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl b/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl index 83cceec856..1e3b2586c9 100644 --- a/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyCoarse_3e1ab4() { - float2 res = dfdy(float2()); + float2 res = dfdy(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl b/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl index cbc5f5021e..5d36d60bb2 100644 --- a/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyCoarse_445d24() { - float4 res = dfdy(float4()); + float4 res = dfdy(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl b/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl index 048ceeebf4..c964819980 100644 --- a/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyCoarse_ae1873() { - float3 res = dfdy(float3()); + float3 res = dfdy(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl b/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl index cfbdf5daf1..ee93c95a04 100644 --- a/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyFine_1fb7ab() { - float3 res = dfdy(float3()); + float3 res = dfdy(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl b/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl index b728bff555..00a66fbfc2 100644 --- a/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyFine_d0a648() { - float4 res = dfdy(float4()); + float4 res = dfdy(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl b/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl index a2e88c9d9c..d82c6bd818 100644 --- a/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl +++ b/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void dpdyFine_df33aa() { - float2 res = dfdy(float2()); + float2 res = dfdy(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.msl b/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.msl index e9b3fdfd40..77dce91bcc 100644 --- a/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp_0f70eb() { - float4 res = exp(float4()); + float4 res = exp(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_0f70eb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/1951e7.wgsl.expected.msl b/test/tint/builtins/gen/exp/1951e7.wgsl.expected.msl index b350d6861b..f500ae38fe 100644 --- a/test/tint/builtins/gen/exp/1951e7.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp/1951e7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp_1951e7() { - float2 res = exp(float2()); + float2 res = exp(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_1951e7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/771fd2.wgsl.expected.msl b/test/tint/builtins/gen/exp/771fd2.wgsl.expected.msl index 86d93082ce..a2910064e4 100644 --- a/test/tint/builtins/gen/exp/771fd2.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp/771fd2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_771fd2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/d98450.wgsl.expected.msl b/test/tint/builtins/gen/exp/d98450.wgsl.expected.msl index 7af25631f0..0696f7ad7d 100644 --- a/test/tint/builtins/gen/exp/d98450.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp/d98450.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp_d98450() { - float3 res = exp(float3()); + float3 res = exp(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_d98450(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.msl b/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.msl index 4d07e6ba53..5ffded1aab 100644 --- a/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp2_1f8680() { - float3 res = exp2(float3()); + float3 res = exp2(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_1f8680(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.msl b/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.msl index 98447ae6d7..2658648add 100644 --- a/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp2_a9d0a7() { - float4 res = exp2(float4()); + float4 res = exp2(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_a9d0a7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.msl b/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.msl index a94325e47d..22a8a37f3c 100644 --- a/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void exp2_d6777c() { - float2 res = exp2(float2()); + float2 res = exp2(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_d6777c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/dea523.wgsl.expected.msl b/test/tint/builtins/gen/exp2/dea523.wgsl.expected.msl index d331243ec2..7c86c2ab5c 100644 --- a/test/tint/builtins/gen/exp2/dea523.wgsl.expected.msl +++ b/test/tint/builtins/gen/exp2/dea523.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_dea523(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.msl index ad92fcff9b..2e07e23e2a 100644 --- a/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.msl @@ -8,7 +8,7 @@ uint3 tint_extract_bits(uint3 v, uint offset, uint count) { } void extractBits_12b197() { - uint3 res = tint_extract_bits(uint3(), 1u, 1u); + uint3 res = tint_extract_bits(uint3(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_12b197(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/249874.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/249874.wgsl.expected.msl index b9fff8e5f7..7b3e4889ce 100644 --- a/test/tint/builtins/gen/extractBits/249874.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/249874.wgsl.expected.msl @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_249874(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/631377.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/631377.wgsl.expected.msl index 9bb51b666b..7f49492505 100644 --- a/test/tint/builtins/gen/extractBits/631377.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/631377.wgsl.expected.msl @@ -8,7 +8,7 @@ uint4 tint_extract_bits(uint4 v, uint offset, uint count) { } void extractBits_631377() { - uint4 res = tint_extract_bits(uint4(), 1u, 1u); + uint4 res = tint_extract_bits(uint4(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_631377(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.msl index a1a1b09770..4ce94850a0 100644 --- a/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.msl @@ -8,7 +8,7 @@ int2 tint_extract_bits(int2 v, uint offset, uint count) { } void extractBits_a99a8d() { - int2 res = tint_extract_bits(int2(), 1u, 1u); + int2 res = tint_extract_bits(int2(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_a99a8d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.msl index bfb975924e..dfa4102c13 100644 --- a/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.msl @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_ce81f8(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.msl index b94ad3e3a6..c21c5087a6 100644 --- a/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.msl @@ -8,7 +8,7 @@ int3 tint_extract_bits(int3 v, uint offset, uint count) { } void extractBits_e04f5d() { - int3 res = tint_extract_bits(int3(), 1u, 1u); + int3 res = tint_extract_bits(int3(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_e04f5d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.msl index 4f3d529f87..73755c8d44 100644 --- a/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.msl @@ -8,7 +8,7 @@ uint2 tint_extract_bits(uint2 v, uint offset, uint count) { } void extractBits_f28f69() { - uint2 res = tint_extract_bits(uint2(), 1u, 1u); + uint2 res = tint_extract_bits(uint2(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_f28f69(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.msl b/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.msl index 34a9f0ce84..364028f256 100644 --- a/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.msl +++ b/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.msl @@ -8,7 +8,7 @@ int4 tint_extract_bits(int4 v, uint offset, uint count) { } void extractBits_fb850f() { - int4 res = tint_extract_bits(int4(), 1u, 1u); + int4 res = tint_extract_bits(int4(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_fb850f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.msl b/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.msl index c539bc7a6b..1abd19f382 100644 --- a/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.msl +++ b/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void faceForward_5afbd5() { - float3 res = faceforward(float3(), float3(), float3()); + float3 res = faceforward(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_5afbd5(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.msl b/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.msl index 2e32470d7a..a9d5b3f410 100644 --- a/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.msl +++ b/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void faceForward_b316e5() { - float4 res = faceforward(float4(), float4(), float4()); + float4 res = faceforward(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_b316e5(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.msl b/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.msl index a335ef7df9..50bb2d7cd4 100644 --- a/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.msl +++ b/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void faceForward_e6908b() { - float2 res = faceforward(float2(), float2(), float2()); + float2 res = faceforward(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_e6908b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.msl index 93ad61bc7d..ae9ad43995 100644 --- a/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.msl @@ -17,7 +17,7 @@ uint4 tint_first_leading_bit(uint4 v) { } void firstLeadingBit_000ff3() { - uint4 res = tint_first_leading_bit(uint4()); + uint4 res = tint_first_leading_bit(uint4(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_000ff3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.msl index 820fea3d58..e453fa9bfc 100644 --- a/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.msl @@ -17,7 +17,7 @@ int3 tint_first_leading_bit(int3 v) { } void firstLeadingBit_35053e() { - int3 res = tint_first_leading_bit(int3()); + int3 res = tint_first_leading_bit(int3(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_35053e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.msl index 2e4d23cd71..8ade8dadff 100644 --- a/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.msl @@ -17,7 +17,7 @@ uint3 tint_first_leading_bit(uint3 v) { } void firstLeadingBit_3fd7d0() { - uint3 res = tint_first_leading_bit(uint3()); + uint3 res = tint_first_leading_bit(uint3(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_3fd7d0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.msl index 0fe7af8d4a..ec9b53998e 100644 --- a/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.msl @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_57a1a3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.msl index 6a5203bf4c..8e714896ba 100644 --- a/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.msl @@ -17,7 +17,7 @@ uint2 tint_first_leading_bit(uint2 v) { } void firstLeadingBit_6fe804() { - uint2 res = tint_first_leading_bit(uint2()); + uint2 res = tint_first_leading_bit(uint2(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_6fe804(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.msl index c4bebbb450..8ebf62d74e 100644 --- a/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.msl @@ -17,7 +17,7 @@ int2 tint_first_leading_bit(int2 v) { } void firstLeadingBit_a622c2() { - int2 res = tint_first_leading_bit(int2()); + int2 res = tint_first_leading_bit(int2(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_a622c2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.msl index 24eeb0d4e3..440ad6e35a 100644 --- a/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.msl @@ -17,7 +17,7 @@ int4 tint_first_leading_bit(int4 v) { } void firstLeadingBit_c1f940() { - int4 res = tint_first_leading_bit(int4()); + int4 res = tint_first_leading_bit(int4(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_c1f940(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.msl b/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.msl index 226d827efd..09b520d803 100644 --- a/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.msl @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_f0779d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.msl index 076113fd33..f3a1a29f48 100644 --- a/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.msl @@ -17,7 +17,7 @@ uint4 tint_first_trailing_bit(uint4 v) { } void firstTrailingBit_110f2c() { - uint4 res = tint_first_trailing_bit(uint4()); + uint4 res = tint_first_trailing_bit(uint4(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_110f2c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.msl index 99f5439cc4..fcef721243 100644 --- a/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.msl @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_3a2acc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.msl index 309b5f713e..eae55ff004 100644 --- a/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.msl @@ -17,7 +17,7 @@ uint2 tint_first_trailing_bit(uint2 v) { } void firstTrailingBit_45eb10() { - uint2 res = tint_first_trailing_bit(uint2()); + uint2 res = tint_first_trailing_bit(uint2(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_45eb10(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.msl index 9000618bd8..fba301cc40 100644 --- a/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.msl @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_47d475(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.msl index f681cbf2f4..2f96b72c45 100644 --- a/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.msl @@ -17,7 +17,7 @@ int2 tint_first_trailing_bit(int2 v) { } void firstTrailingBit_50c072() { - int2 res = tint_first_trailing_bit(int2()); + int2 res = tint_first_trailing_bit(int2(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_50c072(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.msl index 846a9e91a7..b03047a190 100644 --- a/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.msl @@ -17,7 +17,7 @@ int3 tint_first_trailing_bit(int3 v) { } void firstTrailingBit_7496d6() { - int3 res = tint_first_trailing_bit(int3()); + int3 res = tint_first_trailing_bit(int3(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_7496d6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.msl index 1f3c4e8fd4..d3c9254280 100644 --- a/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.msl @@ -17,7 +17,7 @@ int4 tint_first_trailing_bit(int4 v) { } void firstTrailingBit_86551b() { - int4 res = tint_first_trailing_bit(int4()); + int4 res = tint_first_trailing_bit(int4(0)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_86551b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.msl b/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.msl index 43d50057d2..0b4fc3e15e 100644 --- a/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.msl +++ b/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.msl @@ -17,7 +17,7 @@ uint3 tint_first_trailing_bit(uint3 v) { } void firstTrailingBit_cb51ce() { - uint3 res = tint_first_trailing_bit(uint3()); + uint3 res = tint_first_trailing_bit(uint3(0u)); } struct tint_symbol { @@ -26,7 +26,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_cb51ce(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.msl b/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.msl index 74bffe2f0a..17290a10db 100644 --- a/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.msl +++ b/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void floor_3bccc4() { - float4 res = floor(float4()); + float4 res = floor(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_3bccc4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.msl b/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.msl index 6f7234b28a..572c9f6efd 100644 --- a/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.msl +++ b/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void floor_5fc9ac() { - float2 res = floor(float2()); + float2 res = floor(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_5fc9ac(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.msl b/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.msl index fbca5d9f19..963c9a6fd8 100644 --- a/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.msl +++ b/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void floor_60d7ea() { - float3 res = floor(float3()); + float3 res = floor(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_60d7ea(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/66f154.wgsl.expected.msl b/test/tint/builtins/gen/floor/66f154.wgsl.expected.msl index 1988089e2c..ca6f3e8d96 100644 --- a/test/tint/builtins/gen/floor/66f154.wgsl.expected.msl +++ b/test/tint/builtins/gen/floor/66f154.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_66f154(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.msl b/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.msl index b87b6fe09b..568d3026d3 100644 --- a/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.msl +++ b/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fma_26a7a9() { - float2 res = fma(float2(), float2(), float2()); + float2 res = fma(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_26a7a9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/6a3283.wgsl.expected.msl b/test/tint/builtins/gen/fma/6a3283.wgsl.expected.msl index a75b54f709..370d6f8799 100644 --- a/test/tint/builtins/gen/fma/6a3283.wgsl.expected.msl +++ b/test/tint/builtins/gen/fma/6a3283.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fma_6a3283() { - float4 res = fma(float4(), float4(), float4()); + float4 res = fma(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_6a3283(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.msl b/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.msl index 886ff735da..9f6001806b 100644 --- a/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.msl +++ b/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_c10ba3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.msl b/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.msl index 8c680e11c1..5598d6f9db 100644 --- a/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.msl +++ b/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fma_e17c5c() { - float3 res = fma(float3(), float3(), float3()); + float3 res = fma(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_e17c5c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.msl b/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.msl index 0d01c219fa..1e1b110ed8 100644 --- a/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.msl +++ b/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fract_8bc1e9() { - float4 res = fract(float4()); + float4 res = fract(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_8bc1e9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/943cb1.wgsl.expected.msl b/test/tint/builtins/gen/fract/943cb1.wgsl.expected.msl index f288f7905f..6830fdfd1c 100644 --- a/test/tint/builtins/gen/fract/943cb1.wgsl.expected.msl +++ b/test/tint/builtins/gen/fract/943cb1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fract_943cb1() { - float2 res = fract(float2()); + float2 res = fract(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_943cb1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/a49758.wgsl.expected.msl b/test/tint/builtins/gen/fract/a49758.wgsl.expected.msl index 0d14e6ad63..c3631f2453 100644 --- a/test/tint/builtins/gen/fract/a49758.wgsl.expected.msl +++ b/test/tint/builtins/gen/fract/a49758.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fract_a49758() { - float3 res = fract(float3()); + float3 res = fract(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_a49758(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.msl b/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.msl index 0660148b39..50baf320af 100644 --- a/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.msl +++ b/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_fa5c71(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/368997.wgsl.expected.msl b/test/tint/builtins/gen/frexp/368997.wgsl.expected.msl index 852c7f398a..a50831a87b 100644 --- a/test/tint/builtins/gen/frexp/368997.wgsl.expected.msl +++ b/test/tint/builtins/gen/frexp/368997.wgsl.expected.msl @@ -13,7 +13,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) { } void frexp_368997() { - frexp_result_vec3 res = tint_frexp(float3()); + frexp_result_vec3 res = tint_frexp(float3(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_368997(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.msl b/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.msl index 11314ca39f..9f471b6bc9 100644 --- a/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.msl +++ b/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.msl @@ -13,7 +13,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) { } void frexp_3c4f48() { - frexp_result_vec4 res = tint_frexp(float4()); + frexp_result_vec4 res = tint_frexp(float4(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_3c4f48(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.msl b/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.msl index f207cc6b6c..a4048c07c1 100644 --- a/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.msl +++ b/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.msl @@ -13,7 +13,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) { } void frexp_4bdfc7() { - frexp_result_vec2 res = tint_frexp(float2()); + frexp_result_vec2 res = tint_frexp(float2(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_4bdfc7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.msl b/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.msl index 2b5431ac21..2dee3e7758 100644 --- a/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.msl +++ b/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.msl @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_eabd40(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.msl b/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.msl index 671ca4878d..76ca23d020 100644 --- a/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidth_5d1b39() { - float3 res = fwidth(float3()); + float3 res = fwidth(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.msl b/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.msl index 2dce76c754..e598cf8f5d 100644 --- a/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidth_b83ebb() { - float2 res = fwidth(float2()); + float2 res = fwidth(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl b/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl index 076783c53b..a27c2e3407 100644 --- a/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidth_d2ab9a() { - float4 res = fwidth(float4()); + float4 res = fwidth(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl b/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl index b2f9f1e3e2..5ea337182d 100644 --- a/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthCoarse_1e59d9() { - float3 res = fwidth(float3()); + float3 res = fwidth(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl b/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl index 88298ddaa4..106eea64e7 100644 --- a/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthCoarse_4e4fc4() { - float4 res = fwidth(float4()); + float4 res = fwidth(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl b/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl index 63409de801..0bb41831a5 100644 --- a/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthCoarse_e653f7() { - float2 res = fwidth(float2()); + float2 res = fwidth(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl b/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl index ba43d3cd2a..4f36972070 100644 --- a/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthFine_523fdc() { - float3 res = fwidth(float3()); + float3 res = fwidth(float3(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl b/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl index 7d756f8139..3c4768e233 100644 --- a/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthFine_68f4ef() { - float4 res = fwidth(float4()); + float4 res = fwidth(float4(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl b/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl index b7225af28a..b121c887a3 100644 --- a/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl +++ b/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void fwidthFine_ff6aa0() { - float2 res = fwidth(float2()); + float2 res = fwidth(float2(0.0f)); } fragment void fragment_main() { diff --git a/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.msl index 7f7805a314..e79a66fa9b 100644 --- a/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.msl @@ -8,7 +8,7 @@ uint2 tint_insert_bits(uint2 v, uint2 n, uint offset, uint count) { } void insertBits_3c7ba5() { - uint2 res = tint_insert_bits(uint2(), uint2(), 1u, 1u); + uint2 res = tint_insert_bits(uint2(0u), uint2(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_3c7ba5(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.msl index 41ff9984ee..1af1c07651 100644 --- a/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.msl @@ -8,7 +8,7 @@ int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { } void insertBits_428b0b() { - int3 res = tint_insert_bits(int3(), int3(), 1u, 1u); + int3 res = tint_insert_bits(int3(0), int3(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_428b0b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.msl index 6aebbe577c..df82bfd39f 100644 --- a/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.msl @@ -8,7 +8,7 @@ uint4 tint_insert_bits(uint4 v, uint4 n, uint offset, uint count) { } void insertBits_51ede1() { - uint4 res = tint_insert_bits(uint4(), uint4(), 1u, 1u); + uint4 res = tint_insert_bits(uint4(0u), uint4(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_51ede1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.msl index d27a671f57..dcee0635dc 100644 --- a/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.msl @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_65468b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.msl index f2533b0c17..fd6a145e78 100644 --- a/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.msl @@ -8,7 +8,7 @@ uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { } void insertBits_87826b() { - uint3 res = tint_insert_bits(uint3(), uint3(), 1u, 1u); + uint3 res = tint_insert_bits(uint3(0u), uint3(0u), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_87826b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.msl index fd4942789f..8457cb684b 100644 --- a/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.msl @@ -8,7 +8,7 @@ int4 tint_insert_bits(int4 v, int4 n, uint offset, uint count) { } void insertBits_d86978() { - int4 res = tint_insert_bits(int4(), int4(), 1u, 1u); + int4 res = tint_insert_bits(int4(0), int4(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_d86978(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.msl index ebe78e840a..7edeb0ccb3 100644 --- a/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.msl @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_e3e3a2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.msl b/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.msl index ced3cb3c8a..e39abe9b63 100644 --- a/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.msl +++ b/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.msl @@ -8,7 +8,7 @@ int2 tint_insert_bits(int2 v, int2 n, uint offset, uint count) { } void insertBits_fe6ba6() { - int2 res = tint_insert_bits(int2(), int2(), 1u, 1u); + int2 res = tint_insert_bits(int2(0), int2(0), 1u, 1u); } struct tint_symbol { @@ -17,7 +17,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_fe6ba6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl b/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl index a24f6b2ce9..35b0239331 100644 --- a/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl +++ b/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_84407e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl b/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl index 1bbeb3a2c4..1076102b13 100644 --- a/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl +++ b/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void inverseSqrt_8f2bd2() { - float2 res = rsqrt(float2()); + float2 res = rsqrt(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_8f2bd2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl b/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl index 5d49c09bcb..eececb7c6e 100644 --- a/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl +++ b/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void inverseSqrt_b197b1() { - float3 res = rsqrt(float3()); + float3 res = rsqrt(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_b197b1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl b/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl index 340215277e..eb5f34e1f2 100644 --- a/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl +++ b/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void inverseSqrt_c22347() { - float4 res = rsqrt(float4()); + float4 res = rsqrt(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_c22347(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.msl b/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.msl index da7d8a9c38..7530329e41 100644 --- a/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.msl +++ b/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ldexp_a31cdc() { - float3 res = ldexp(float3(), int3()); + float3 res = ldexp(float3(0.0f), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_a31cdc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.msl b/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.msl index b46988bf8a..cdd6395c82 100644 --- a/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.msl +++ b/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ldexp_abd718() { - float2 res = ldexp(float2(), int2()); + float2 res = ldexp(float2(0.0f), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_abd718(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.msl b/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.msl index 4d7d64abcf..7b62158bb7 100644 --- a/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.msl +++ b/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void ldexp_cc9cde() { - float4 res = ldexp(float4(), int4()); + float4 res = ldexp(float4(0.0f), int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_cc9cde(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.msl b/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.msl index e0e7607665..e9ca7818af 100644 --- a/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.msl +++ b/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_db8b49(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/056071.wgsl.expected.msl b/test/tint/builtins/gen/length/056071.wgsl.expected.msl index 689f9dfa06..fe155d7135 100644 --- a/test/tint/builtins/gen/length/056071.wgsl.expected.msl +++ b/test/tint/builtins/gen/length/056071.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void length_056071() { - float res = length(float3()); + float res = length(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_056071(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/602a17.wgsl.expected.msl b/test/tint/builtins/gen/length/602a17.wgsl.expected.msl index ad3b7df824..86bfa31fc7 100644 --- a/test/tint/builtins/gen/length/602a17.wgsl.expected.msl +++ b/test/tint/builtins/gen/length/602a17.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_602a17(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/afde8b.wgsl.expected.msl b/test/tint/builtins/gen/length/afde8b.wgsl.expected.msl index 4e2db8db78..1f44a890ca 100644 --- a/test/tint/builtins/gen/length/afde8b.wgsl.expected.msl +++ b/test/tint/builtins/gen/length/afde8b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void length_afde8b() { - float res = length(float2()); + float res = length(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_afde8b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/becebf.wgsl.expected.msl b/test/tint/builtins/gen/length/becebf.wgsl.expected.msl index 080f45e256..921935f416 100644 --- a/test/tint/builtins/gen/length/becebf.wgsl.expected.msl +++ b/test/tint/builtins/gen/length/becebf.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void length_becebf() { - float res = length(float4()); + float res = length(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_becebf(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/3da25a.wgsl.expected.msl b/test/tint/builtins/gen/log/3da25a.wgsl.expected.msl index d87aca8e36..d74a929cf3 100644 --- a/test/tint/builtins/gen/log/3da25a.wgsl.expected.msl +++ b/test/tint/builtins/gen/log/3da25a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log_3da25a() { - float4 res = log(float4()); + float4 res = log(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_3da25a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/7114a6.wgsl.expected.msl b/test/tint/builtins/gen/log/7114a6.wgsl.expected.msl index 5ec0b4da3c..72da25e697 100644 --- a/test/tint/builtins/gen/log/7114a6.wgsl.expected.msl +++ b/test/tint/builtins/gen/log/7114a6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_7114a6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/b2ce28.wgsl.expected.msl b/test/tint/builtins/gen/log/b2ce28.wgsl.expected.msl index a99ad96cce..7081fdc2e7 100644 --- a/test/tint/builtins/gen/log/b2ce28.wgsl.expected.msl +++ b/test/tint/builtins/gen/log/b2ce28.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log_b2ce28() { - float2 res = log(float2()); + float2 res = log(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_b2ce28(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/f4c570.wgsl.expected.msl b/test/tint/builtins/gen/log/f4c570.wgsl.expected.msl index 2b95150d04..aa3c95f271 100644 --- a/test/tint/builtins/gen/log/f4c570.wgsl.expected.msl +++ b/test/tint/builtins/gen/log/f4c570.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log_f4c570() { - float3 res = log(float3()); + float3 res = log(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_f4c570(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/4036ed.wgsl.expected.msl b/test/tint/builtins/gen/log2/4036ed.wgsl.expected.msl index a0e25293c2..e88769f8e0 100644 --- a/test/tint/builtins/gen/log2/4036ed.wgsl.expected.msl +++ b/test/tint/builtins/gen/log2/4036ed.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_4036ed(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/902988.wgsl.expected.msl b/test/tint/builtins/gen/log2/902988.wgsl.expected.msl index e3aa073569..59f605ba69 100644 --- a/test/tint/builtins/gen/log2/902988.wgsl.expected.msl +++ b/test/tint/builtins/gen/log2/902988.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log2_902988() { - float4 res = log2(float4()); + float4 res = log2(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_902988(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/adb233.wgsl.expected.msl b/test/tint/builtins/gen/log2/adb233.wgsl.expected.msl index 44c818c43e..5914d8a171 100644 --- a/test/tint/builtins/gen/log2/adb233.wgsl.expected.msl +++ b/test/tint/builtins/gen/log2/adb233.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log2_adb233() { - float3 res = log2(float3()); + float3 res = log2(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_adb233(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/aea659.wgsl.expected.msl b/test/tint/builtins/gen/log2/aea659.wgsl.expected.msl index 52b6a1a03a..aad7c2ad49 100644 --- a/test/tint/builtins/gen/log2/aea659.wgsl.expected.msl +++ b/test/tint/builtins/gen/log2/aea659.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void log2_aea659() { - float2 res = log2(float2()); + float2 res = log2(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_aea659(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/0c0aae.wgsl.expected.msl b/test/tint/builtins/gen/max/0c0aae.wgsl.expected.msl index 5f95e211f1..55bf47d1e1 100644 --- a/test/tint/builtins/gen/max/0c0aae.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/0c0aae.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_0c0aae(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/25eafe.wgsl.expected.msl b/test/tint/builtins/gen/max/25eafe.wgsl.expected.msl index 31bd611868..a05f1f6be2 100644 --- a/test/tint/builtins/gen/max/25eafe.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/25eafe.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_25eafe() { - int3 res = max(int3(), int3()); + int3 res = max(int3(0), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_25eafe(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/320815.wgsl.expected.msl b/test/tint/builtins/gen/max/320815.wgsl.expected.msl index a135a3c845..8c62cf0e77 100644 --- a/test/tint/builtins/gen/max/320815.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/320815.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_320815() { - uint2 res = max(uint2(), uint2()); + uint2 res = max(uint2(0u), uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_320815(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/44a39d.wgsl.expected.msl b/test/tint/builtins/gen/max/44a39d.wgsl.expected.msl index 11575ec42d..80ff77c0fa 100644 --- a/test/tint/builtins/gen/max/44a39d.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/44a39d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_44a39d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/453e04.wgsl.expected.msl b/test/tint/builtins/gen/max/453e04.wgsl.expected.msl index 86de3a08fe..d81a71c0c6 100644 --- a/test/tint/builtins/gen/max/453e04.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/453e04.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_453e04() { - uint4 res = max(uint4(), uint4()); + uint4 res = max(uint4(0u), uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_453e04(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/462050.wgsl.expected.msl b/test/tint/builtins/gen/max/462050.wgsl.expected.msl index 825b974e5b..638c8b3cfa 100644 --- a/test/tint/builtins/gen/max/462050.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/462050.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_462050() { - float2 res = fmax(float2(), float2()); + float2 res = fmax(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_462050(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/4883ac.wgsl.expected.msl b/test/tint/builtins/gen/max/4883ac.wgsl.expected.msl index 199fa39682..1bcdcddfa7 100644 --- a/test/tint/builtins/gen/max/4883ac.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/4883ac.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_4883ac() { - float3 res = fmax(float3(), float3()); + float3 res = fmax(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_4883ac(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/85e6bc.wgsl.expected.msl b/test/tint/builtins/gen/max/85e6bc.wgsl.expected.msl index 48d92f69a3..b48e0db295 100644 --- a/test/tint/builtins/gen/max/85e6bc.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/85e6bc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_85e6bc() { - int4 res = max(int4(), int4()); + int4 res = max(int4(0), int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_85e6bc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/a93419.wgsl.expected.msl b/test/tint/builtins/gen/max/a93419.wgsl.expected.msl index c5d8364e92..06ecc31cee 100644 --- a/test/tint/builtins/gen/max/a93419.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/a93419.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_a93419() { - float4 res = fmax(float4(), float4()); + float4 res = fmax(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_a93419(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/b1b73a.wgsl.expected.msl b/test/tint/builtins/gen/max/b1b73a.wgsl.expected.msl index 410e0f5b1d..b2635e75e8 100644 --- a/test/tint/builtins/gen/max/b1b73a.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/b1b73a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_b1b73a() { - uint3 res = max(uint3(), uint3()); + uint3 res = max(uint3(0u), uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_b1b73a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/ce7c30.wgsl.expected.msl b/test/tint/builtins/gen/max/ce7c30.wgsl.expected.msl index 50b1952118..3781d03203 100644 --- a/test/tint/builtins/gen/max/ce7c30.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/ce7c30.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_ce7c30(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/e8192f.wgsl.expected.msl b/test/tint/builtins/gen/max/e8192f.wgsl.expected.msl index 7c7f9ac091..528a782145 100644 --- a/test/tint/builtins/gen/max/e8192f.wgsl.expected.msl +++ b/test/tint/builtins/gen/max/e8192f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void max_e8192f() { - int2 res = max(int2(), int2()); + int2 res = max(int2(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_e8192f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/03c7e3.wgsl.expected.msl b/test/tint/builtins/gen/min/03c7e3.wgsl.expected.msl index f01b97e7fb..246cc613eb 100644 --- a/test/tint/builtins/gen/min/03c7e3.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/03c7e3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_03c7e3() { - int2 res = min(int2(), int2()); + int2 res = min(int2(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_03c7e3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/0dc614.wgsl.expected.msl b/test/tint/builtins/gen/min/0dc614.wgsl.expected.msl index f5f7920d3c..8064a9ebaf 100644 --- a/test/tint/builtins/gen/min/0dc614.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/0dc614.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_0dc614() { - uint4 res = min(uint4(), uint4()); + uint4 res = min(uint4(0u), uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_0dc614(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/3941e1.wgsl.expected.msl b/test/tint/builtins/gen/min/3941e1.wgsl.expected.msl index ec36ed869a..bdb1516d71 100644 --- a/test/tint/builtins/gen/min/3941e1.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/3941e1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_3941e1() { - int4 res = min(int4(), int4()); + int4 res = min(int4(0), int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_3941e1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/46c5d3.wgsl.expected.msl b/test/tint/builtins/gen/min/46c5d3.wgsl.expected.msl index 3c8a19e0a8..25b2e3b270 100644 --- a/test/tint/builtins/gen/min/46c5d3.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/46c5d3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_46c5d3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/82b28f.wgsl.expected.msl b/test/tint/builtins/gen/min/82b28f.wgsl.expected.msl index 65bbe6b140..4c9e53d1f9 100644 --- a/test/tint/builtins/gen/min/82b28f.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/82b28f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_82b28f() { - uint2 res = min(uint2(), uint2()); + uint2 res = min(uint2(0u), uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_82b28f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/93cfc4.wgsl.expected.msl b/test/tint/builtins/gen/min/93cfc4.wgsl.expected.msl index bf29c67104..80b5e7c842 100644 --- a/test/tint/builtins/gen/min/93cfc4.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/93cfc4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_93cfc4() { - float3 res = fmin(float3(), float3()); + float3 res = fmin(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_93cfc4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/a45171.wgsl.expected.msl b/test/tint/builtins/gen/min/a45171.wgsl.expected.msl index 1a4e902370..4faba50487 100644 --- a/test/tint/builtins/gen/min/a45171.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/a45171.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_a45171() { - int3 res = min(int3(), int3()); + int3 res = min(int3(0), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_a45171(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/aa28ad.wgsl.expected.msl b/test/tint/builtins/gen/min/aa28ad.wgsl.expected.msl index 8a5d68dea2..4a07ff33be 100644 --- a/test/tint/builtins/gen/min/aa28ad.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/aa28ad.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_aa28ad() { - float2 res = fmin(float2(), float2()); + float2 res = fmin(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_aa28ad(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/af326d.wgsl.expected.msl b/test/tint/builtins/gen/min/af326d.wgsl.expected.msl index a374198a94..6412c653ce 100644 --- a/test/tint/builtins/gen/min/af326d.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/af326d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_af326d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c70bb7.wgsl.expected.msl b/test/tint/builtins/gen/min/c70bb7.wgsl.expected.msl index 75707f7a44..74513122ac 100644 --- a/test/tint/builtins/gen/min/c70bb7.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/c70bb7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_c70bb7() { - uint3 res = min(uint3(), uint3()); + uint3 res = min(uint3(0u), uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c70bb7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c73147.wgsl.expected.msl b/test/tint/builtins/gen/min/c73147.wgsl.expected.msl index 94a8da2f08..fdc7a83c31 100644 --- a/test/tint/builtins/gen/min/c73147.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/c73147.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c73147(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c76fa6.wgsl.expected.msl b/test/tint/builtins/gen/min/c76fa6.wgsl.expected.msl index 7af41b68e6..b8e3b36422 100644 --- a/test/tint/builtins/gen/min/c76fa6.wgsl.expected.msl +++ b/test/tint/builtins/gen/min/c76fa6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void min_c76fa6() { - float4 res = fmin(float4(), float4()); + float4 res = fmin(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c76fa6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.msl b/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.msl index 8f33abfbb1..74bb3170ee 100644 --- a/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_0c8c33() { - float3 res = mix(float3(), float3(), float3()); + float3 res = mix(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_0c8c33(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.msl b/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.msl index 89175cf9ff..4588bf2b38 100644 --- a/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_1faeb1() { - float4 res = mix(float4(), float4(), 1.0f); + float4 res = mix(float4(0.0f), float4(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_1faeb1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/2fadab.wgsl.expected.msl b/test/tint/builtins/gen/mix/2fadab.wgsl.expected.msl index e6ce43a894..027e303850 100644 --- a/test/tint/builtins/gen/mix/2fadab.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/2fadab.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_2fadab() { - float2 res = mix(float2(), float2(), 1.0f); + float2 res = mix(float2(0.0f), float2(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_2fadab(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/315264.wgsl.expected.msl b/test/tint/builtins/gen/mix/315264.wgsl.expected.msl index a9110a3e42..877991d603 100644 --- a/test/tint/builtins/gen/mix/315264.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/315264.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_315264() { - float3 res = mix(float3(), float3(), 1.0f); + float3 res = mix(float3(0.0f), float3(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_315264(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.msl b/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.msl index 1f7906dd44..3859b69a57 100644 --- a/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_4f0b5e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.msl b/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.msl index 699f297ed7..8792e186a3 100644 --- a/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_6f8adc() { - float2 res = mix(float2(), float2(), float2()); + float2 res = mix(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_6f8adc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/c37ede.wgsl.expected.msl b/test/tint/builtins/gen/mix/c37ede.wgsl.expected.msl index abe0dc7d29..1100892681 100644 --- a/test/tint/builtins/gen/mix/c37ede.wgsl.expected.msl +++ b/test/tint/builtins/gen/mix/c37ede.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void mix_c37ede() { - float4 res = mix(float4(), float4(), float4()); + float4 res = mix(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_c37ede(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/180fed.wgsl.expected.msl b/test/tint/builtins/gen/modf/180fed.wgsl.expected.msl index d1f6d8bf6a..b7ba9eb670 100644 --- a/test/tint/builtins/gen/modf/180fed.wgsl.expected.msl +++ b/test/tint/builtins/gen/modf/180fed.wgsl.expected.msl @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_180fed(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.msl b/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.msl index fcf035d315..7fca0841c3 100644 --- a/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.msl +++ b/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.msl @@ -13,7 +13,7 @@ modf_result_vec3 tint_modf(float3 param_0) { } void modf_9b75f7() { - modf_result_vec3 res = tint_modf(float3()); + modf_result_vec3 res = tint_modf(float3(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_9b75f7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.msl b/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.msl index a62a85c5fc..7fb92c2e65 100644 --- a/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.msl +++ b/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.msl @@ -13,7 +13,7 @@ modf_result_vec4 tint_modf(float4 param_0) { } void modf_ec2dbc() { - modf_result_vec4 res = tint_modf(float4()); + modf_result_vec4 res = tint_modf(float4(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_ec2dbc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.msl b/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.msl index f02e88b4d4..a537f67ec0 100644 --- a/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.msl +++ b/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.msl @@ -13,7 +13,7 @@ modf_result_vec2 tint_modf(float2 param_0) { } void modf_f5f20d() { - modf_result_vec2 res = tint_modf(float2()); + modf_result_vec2 res = tint_modf(float2(0.0f)); } struct tint_symbol { @@ -22,7 +22,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_f5f20d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.msl b/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.msl index 844c52a795..e65cbfa18b 100644 --- a/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.msl +++ b/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void normalize_64d8c0() { - float3 res = normalize(float3()); + float3 res = normalize(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_64d8c0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.msl b/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.msl index 7dd5c0a8da..7883710f2f 100644 --- a/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.msl +++ b/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void normalize_9a0aab() { - float4 res = normalize(float4()); + float4 res = normalize(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_9a0aab(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.msl b/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.msl index 1464466ca2..18c8099526 100644 --- a/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.msl +++ b/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void normalize_fc2ef1() { - float2 res = normalize(float2()); + float2 res = normalize(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_fc2ef1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl b/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl index 026b652428..d3c14f8965 100644 --- a/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl +++ b/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pack2x16float_0e97b3() { - uint res = as_type(half2(float2())); + uint res = as_type(half2(float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16float_0e97b3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl b/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl index 21fed1a521..7c11475f4b 100644 --- a/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl +++ b/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pack2x16snorm_6c169b() { - uint res = pack_float_to_snorm2x16(float2()); + uint res = pack_float_to_snorm2x16(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16snorm_6c169b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl b/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl index f095a39852..5661b9829f 100644 --- a/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl +++ b/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pack2x16unorm_0f08e4() { - uint res = pack_float_to_unorm2x16(float2()); + uint res = pack_float_to_unorm2x16(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16unorm_0f08e4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl b/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl index a38de4d286..5af9d4b544 100644 --- a/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl +++ b/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pack4x8snorm_4d22e7() { - uint res = pack_float_to_snorm4x8(float4()); + uint res = pack_float_to_snorm4x8(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack4x8snorm_4d22e7(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl b/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl index 55732e1f8d..be93a802ed 100644 --- a/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl +++ b/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pack4x8unorm_95c456() { - uint res = pack_float_to_unorm4x8(float4()); + uint res = pack_float_to_unorm4x8(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack4x8unorm_95c456(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/04a908.wgsl.expected.msl b/test/tint/builtins/gen/pow/04a908.wgsl.expected.msl index e1f2e81684..3e8d0c4944 100644 --- a/test/tint/builtins/gen/pow/04a908.wgsl.expected.msl +++ b/test/tint/builtins/gen/pow/04a908.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pow_04a908() { - float4 res = pow(float4(), float4()); + float4 res = pow(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_04a908(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/46e029.wgsl.expected.msl b/test/tint/builtins/gen/pow/46e029.wgsl.expected.msl index c2d8df388b..bd126032d2 100644 --- a/test/tint/builtins/gen/pow/46e029.wgsl.expected.msl +++ b/test/tint/builtins/gen/pow/46e029.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_46e029(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.msl b/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.msl index 69a27253c5..b7eabb8677 100644 --- a/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.msl +++ b/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pow_4a46c9() { - float3 res = pow(float3(), float3()); + float3 res = pow(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_4a46c9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.msl b/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.msl index 4326466f97..c24658d49d 100644 --- a/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.msl +++ b/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void pow_e60ea5() { - float2 res = pow(float2(), float2()); + float2 res = pow(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_e60ea5(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.msl b/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.msl index 00e73d18f5..895e01bba4 100644 --- a/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.msl +++ b/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.msl @@ -7,7 +7,7 @@ float4 tint_radians(float4 param_0) { } void radians_09b7fc() { - float4 res = tint_radians(float4()); + float4 res = tint_radians(float4(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_09b7fc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/61687a.wgsl.expected.msl b/test/tint/builtins/gen/radians/61687a.wgsl.expected.msl index 7a7e7e4f7a..00c5efa334 100644 --- a/test/tint/builtins/gen/radians/61687a.wgsl.expected.msl +++ b/test/tint/builtins/gen/radians/61687a.wgsl.expected.msl @@ -7,7 +7,7 @@ float2 tint_radians(float2 param_0) { } void radians_61687a() { - float2 res = tint_radians(float2()); + float2 res = tint_radians(float2(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_61687a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.msl b/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.msl index e99ae97e94..074b46d1ae 100644 --- a/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.msl +++ b/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.msl @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_6b0ff2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/f96258.wgsl.expected.msl b/test/tint/builtins/gen/radians/f96258.wgsl.expected.msl index 1667cdb901..2864b49ca0 100644 --- a/test/tint/builtins/gen/radians/f96258.wgsl.expected.msl +++ b/test/tint/builtins/gen/radians/f96258.wgsl.expected.msl @@ -7,7 +7,7 @@ float3 tint_radians(float3 param_0) { } void radians_f96258() { - float3 res = tint_radians(float3()); + float3 res = tint_radians(float3(0.0f)); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_f96258(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/05357e.wgsl.expected.msl b/test/tint/builtins/gen/reflect/05357e.wgsl.expected.msl index 83ddfd9a4a..2ba2389e5e 100644 --- a/test/tint/builtins/gen/reflect/05357e.wgsl.expected.msl +++ b/test/tint/builtins/gen/reflect/05357e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reflect_05357e() { - float4 res = reflect(float4(), float4()); + float4 res = reflect(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_05357e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.msl b/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.msl index 8f70c6d5f0..8e773b6294 100644 --- a/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.msl +++ b/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reflect_b61e10() { - float2 res = reflect(float2(), float2()); + float2 res = reflect(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_b61e10(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.msl b/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.msl index c3d161418b..74e2a3a722 100644 --- a/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.msl +++ b/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reflect_f47fdb() { - float3 res = reflect(float3(), float3()); + float3 res = reflect(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_f47fdb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.msl b/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.msl index 9fedc200aa..d7bf57c7d3 100644 --- a/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.msl +++ b/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void refract_7e02e6() { - float4 res = refract(float4(), float4(), 1.0f); + float4 res = refract(float4(0.0f), float4(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_7e02e6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.msl b/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.msl index ceb3738cba..410a9a6b60 100644 --- a/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.msl +++ b/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void refract_cbc1d2() { - float3 res = refract(float3(), float3(), 1.0f); + float3 res = refract(float3(0.0f), float3(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_cbc1d2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/cd905f.wgsl.expected.msl b/test/tint/builtins/gen/refract/cd905f.wgsl.expected.msl index 878c80c078..e0fee6d018 100644 --- a/test/tint/builtins/gen/refract/cd905f.wgsl.expected.msl +++ b/test/tint/builtins/gen/refract/cd905f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void refract_cd905f() { - float2 res = refract(float2(), float2(), 1.0f); + float2 res = refract(float2(0.0f), float2(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_cd905f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.msl index 410b12017f..f3b8e8a87e 100644 --- a/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_222177() { - int2 res = reverse_bits(int2()); + int2 res = reverse_bits(int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_222177(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.msl index 7cca1fe44d..9efd87c725 100644 --- a/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_35fea9() { - uint4 res = reverse_bits(uint4()); + uint4 res = reverse_bits(uint4(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_35fea9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl index 918b5e0390..97741fbf8e 100644 --- a/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_4dbd6f() { - int4 res = reverse_bits(int4()); + int4 res = reverse_bits(int4(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_4dbd6f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.msl index 0d2865498a..90d843c897 100644 --- a/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_7c4269(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl index 5c7819ea91..772087ded7 100644 --- a/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_a6ccd4() { - uint3 res = reverse_bits(uint3()); + uint3 res = reverse_bits(uint3(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_a6ccd4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl index b960eec3a0..783f8e25ca 100644 --- a/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_c21bc1() { - int3 res = reverse_bits(int3()); + int3 res = reverse_bits(int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_c21bc1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl index fc9ebd295f..b4f660bd7a 100644 --- a/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void reverseBits_e1f4c1() { - uint2 res = reverse_bits(uint2()); + uint2 res = reverse_bits(uint2(0u)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_e1f4c1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.msl b/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.msl index fb3d3f2a1f..c850796c2e 100644 --- a/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.msl +++ b/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_e31adf(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/106c0b.wgsl.expected.msl b/test/tint/builtins/gen/round/106c0b.wgsl.expected.msl index be166bff69..def3309518 100644 --- a/test/tint/builtins/gen/round/106c0b.wgsl.expected.msl +++ b/test/tint/builtins/gen/round/106c0b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void round_106c0b() { - float4 res = rint(float4()); + float4 res = rint(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_106c0b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/1c7897.wgsl.expected.msl b/test/tint/builtins/gen/round/1c7897.wgsl.expected.msl index 85dda287ed..c808255268 100644 --- a/test/tint/builtins/gen/round/1c7897.wgsl.expected.msl +++ b/test/tint/builtins/gen/round/1c7897.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void round_1c7897() { - float3 res = rint(float3()); + float3 res = rint(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_1c7897(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/52c84d.wgsl.expected.msl b/test/tint/builtins/gen/round/52c84d.wgsl.expected.msl index 87e2b215f8..c1145e2498 100644 --- a/test/tint/builtins/gen/round/52c84d.wgsl.expected.msl +++ b/test/tint/builtins/gen/round/52c84d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void round_52c84d() { - float2 res = rint(float2()); + float2 res = rint(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_52c84d(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/9edc38.wgsl.expected.msl b/test/tint/builtins/gen/round/9edc38.wgsl.expected.msl index a3f14ae5ba..b6406d5ed7 100644 --- a/test/tint/builtins/gen/round/9edc38.wgsl.expected.msl +++ b/test/tint/builtins/gen/round/9edc38.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_9edc38(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/00b848.wgsl.expected.msl b/test/tint/builtins/gen/select/00b848.wgsl.expected.msl index 79cd7058dd..3391fae0e2 100644 --- a/test/tint/builtins/gen/select/00b848.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/00b848.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_00b848() { - int2 res = select(int2(), int2(), bool2()); + int2 res = select(int2(0), int2(0), bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_00b848(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/01e2cd.wgsl.expected.msl b/test/tint/builtins/gen/select/01e2cd.wgsl.expected.msl index f7618aec63..49db474258 100644 --- a/test/tint/builtins/gen/select/01e2cd.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/01e2cd.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_01e2cd() { - int3 res = select(int3(), int3(), bool3()); + int3 res = select(int3(0), int3(0), bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_01e2cd(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/087ea4.wgsl.expected.msl b/test/tint/builtins/gen/select/087ea4.wgsl.expected.msl index 4838d99ab8..49588896d0 100644 --- a/test/tint/builtins/gen/select/087ea4.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/087ea4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_087ea4() { - uint4 res = select(uint4(), uint4(), bool()); + uint4 res = select(uint4(0u), uint4(0u), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_087ea4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/1e960b.wgsl.expected.msl b/test/tint/builtins/gen/select/1e960b.wgsl.expected.msl index 87b11508d2..b59ac22331 100644 --- a/test/tint/builtins/gen/select/1e960b.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/1e960b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_1e960b() { - uint2 res = select(uint2(), uint2(), bool2()); + uint2 res = select(uint2(0u), uint2(0u), bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_1e960b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/266aff.wgsl.expected.msl b/test/tint/builtins/gen/select/266aff.wgsl.expected.msl index 56688e6b0e..138dfe6ef4 100644 --- a/test/tint/builtins/gen/select/266aff.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/266aff.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_266aff() { - float2 res = select(float2(), float2(), bool2()); + float2 res = select(float2(0.0f), float2(0.0f), bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_266aff(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/28a27e.wgsl.expected.msl b/test/tint/builtins/gen/select/28a27e.wgsl.expected.msl index 2e21e18b98..ce36281ad4 100644 --- a/test/tint/builtins/gen/select/28a27e.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/28a27e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_28a27e() { - uint3 res = select(uint3(), uint3(), bool3()); + uint3 res = select(uint3(0u), uint3(0u), bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_28a27e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/3c25ce.wgsl.expected.msl b/test/tint/builtins/gen/select/3c25ce.wgsl.expected.msl index 8a73c3639b..c5ce477b26 100644 --- a/test/tint/builtins/gen/select/3c25ce.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/3c25ce.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_3c25ce() { - bool3 res = select(bool3(), bool3(), bool()); + bool3 res = select(bool3(false), bool3(false), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_3c25ce(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/416e14.wgsl.expected.msl b/test/tint/builtins/gen/select/416e14.wgsl.expected.msl index 1e57158875..57f9b67bda 100644 --- a/test/tint/builtins/gen/select/416e14.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/416e14.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_416e14() { - float res = select(1.0f, 1.0f, bool()); + float res = select(1.0f, 1.0f, false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_416e14(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/51b047.wgsl.expected.msl b/test/tint/builtins/gen/select/51b047.wgsl.expected.msl index 42e6e3af88..bcfb862895 100644 --- a/test/tint/builtins/gen/select/51b047.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/51b047.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_51b047() { - uint2 res = select(uint2(), uint2(), bool()); + uint2 res = select(uint2(0u), uint2(0u), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_51b047(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/713567.wgsl.expected.msl b/test/tint/builtins/gen/select/713567.wgsl.expected.msl index 6767e85a83..38edfd08ac 100644 --- a/test/tint/builtins/gen/select/713567.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/713567.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_713567() { - float4 res = select(float4(), float4(), bool()); + float4 res = select(float4(0.0f), float4(0.0f), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_713567(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/78be5f.wgsl.expected.msl b/test/tint/builtins/gen/select/78be5f.wgsl.expected.msl index 8c39ad3b71..8338204784 100644 --- a/test/tint/builtins/gen/select/78be5f.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/78be5f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_78be5f() { - float3 res = select(float3(), float3(), bool()); + float3 res = select(float3(0.0f), float3(0.0f), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_78be5f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/80a9a9.wgsl.expected.msl b/test/tint/builtins/gen/select/80a9a9.wgsl.expected.msl index 37b2e99851..21229b0652 100644 --- a/test/tint/builtins/gen/select/80a9a9.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/80a9a9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_80a9a9() { - bool3 res = select(bool3(), bool3(), bool3()); + bool3 res = select(bool3(false), bool3(false), bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_80a9a9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/8fa62c.wgsl.expected.msl b/test/tint/builtins/gen/select/8fa62c.wgsl.expected.msl index 4c9e887dc1..be4667a15e 100644 --- a/test/tint/builtins/gen/select/8fa62c.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/8fa62c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_8fa62c() { - int3 res = select(int3(), int3(), bool()); + int3 res = select(int3(0), int3(0), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_8fa62c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/99f883.wgsl.expected.msl b/test/tint/builtins/gen/select/99f883.wgsl.expected.msl index 4234994b3d..a7efb93075 100644 --- a/test/tint/builtins/gen/select/99f883.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/99f883.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_99f883() { - uint res = select(1u, 1u, bool()); + uint res = select(1u, 1u, false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_99f883(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/a2860e.wgsl.expected.msl b/test/tint/builtins/gen/select/a2860e.wgsl.expected.msl index c3b3db641a..c0de41ced8 100644 --- a/test/tint/builtins/gen/select/a2860e.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/a2860e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_a2860e() { - int4 res = select(int4(), int4(), bool4()); + int4 res = select(int4(0), int4(0), bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_a2860e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ab069f.wgsl.expected.msl b/test/tint/builtins/gen/select/ab069f.wgsl.expected.msl index dd19206f24..602f22f7b0 100644 --- a/test/tint/builtins/gen/select/ab069f.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/ab069f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_ab069f() { - int4 res = select(int4(), int4(), bool()); + int4 res = select(int4(0), int4(0), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ab069f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/b04721.wgsl.expected.msl b/test/tint/builtins/gen/select/b04721.wgsl.expected.msl index 2b88455ccc..be23b83a90 100644 --- a/test/tint/builtins/gen/select/b04721.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/b04721.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_b04721() { - uint3 res = select(uint3(), uint3(), bool()); + uint3 res = select(uint3(0u), uint3(0u), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_b04721(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bb447f.wgsl.expected.msl b/test/tint/builtins/gen/select/bb447f.wgsl.expected.msl index d1517c9e9a..bfbe2ed13c 100644 --- a/test/tint/builtins/gen/select/bb447f.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/bb447f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_bb447f() { - int2 res = select(int2(), int2(), bool()); + int2 res = select(int2(0), int2(0), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bb447f(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bb8aae.wgsl.expected.msl b/test/tint/builtins/gen/select/bb8aae.wgsl.expected.msl index 67c11796dd..bd80ddf95c 100644 --- a/test/tint/builtins/gen/select/bb8aae.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/bb8aae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_bb8aae() { - float4 res = select(float4(), float4(), bool4()); + float4 res = select(float4(0.0f), float4(0.0f), bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bb8aae(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bf3d29.wgsl.expected.msl b/test/tint/builtins/gen/select/bf3d29.wgsl.expected.msl index af8a59e521..ba3d3553f4 100644 --- a/test/tint/builtins/gen/select/bf3d29.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/bf3d29.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_bf3d29() { - float2 res = select(float2(), float2(), bool()); + float2 res = select(float2(0.0f), float2(0.0f), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bf3d29(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c31f9e.wgsl.expected.msl b/test/tint/builtins/gen/select/c31f9e.wgsl.expected.msl index 8e2a3b42e2..de68201e51 100644 --- a/test/tint/builtins/gen/select/c31f9e.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/c31f9e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_c31f9e() { - bool res = select(bool(), bool(), bool()); + bool res = select(false, false, false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c31f9e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c41bd1.wgsl.expected.msl b/test/tint/builtins/gen/select/c41bd1.wgsl.expected.msl index a344539080..fa1cf9a96e 100644 --- a/test/tint/builtins/gen/select/c41bd1.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/c41bd1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_c41bd1() { - bool4 res = select(bool4(), bool4(), bool()); + bool4 res = select(bool4(false), bool4(false), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c41bd1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.msl b/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.msl index 69830334c2..ca4f7ce7e9 100644 --- a/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_c4a4ef() { - uint4 res = select(uint4(), uint4(), bool4()); + uint4 res = select(uint4(0u), uint4(0u), bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c4a4ef(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/cb9301.wgsl.expected.msl b/test/tint/builtins/gen/select/cb9301.wgsl.expected.msl index 3854184a2f..f075cbdc50 100644 --- a/test/tint/builtins/gen/select/cb9301.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/cb9301.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_cb9301() { - bool2 res = select(bool2(), bool2(), bool2()); + bool2 res = select(bool2(false), bool2(false), bool2(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_cb9301(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/e3e028.wgsl.expected.msl b/test/tint/builtins/gen/select/e3e028.wgsl.expected.msl index 6ea09b4777..49bdf1d767 100644 --- a/test/tint/builtins/gen/select/e3e028.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/e3e028.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_e3e028() { - bool4 res = select(bool4(), bool4(), bool4()); + bool4 res = select(bool4(false), bool4(false), bool4(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_e3e028(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ebfea2.wgsl.expected.msl b/test/tint/builtins/gen/select/ebfea2.wgsl.expected.msl index ad19ed3f8d..f1adced65e 100644 --- a/test/tint/builtins/gen/select/ebfea2.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/ebfea2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_ebfea2() { - float3 res = select(float3(), float3(), bool3()); + float3 res = select(float3(0.0f), float3(0.0f), bool3(false)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ebfea2(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ed8a15.wgsl.expected.msl b/test/tint/builtins/gen/select/ed8a15.wgsl.expected.msl index 86b86d5262..a584fb047f 100644 --- a/test/tint/builtins/gen/select/ed8a15.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/ed8a15.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_ed8a15() { - int res = select(1, 1, bool()); + int res = select(1, 1, false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ed8a15(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/fb7e53.wgsl.expected.msl b/test/tint/builtins/gen/select/fb7e53.wgsl.expected.msl index 7bd77e5ef3..7dc1f08c99 100644 --- a/test/tint/builtins/gen/select/fb7e53.wgsl.expected.msl +++ b/test/tint/builtins/gen/select/fb7e53.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void select_fb7e53() { - bool2 res = select(bool2(), bool2(), bool()); + bool2 res = select(bool2(false), bool2(false), false); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_fb7e53(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/159665.wgsl.expected.msl b/test/tint/builtins/gen/sign/159665.wgsl.expected.msl index 2ab6b4f438..bab4bf4c5c 100644 --- a/test/tint/builtins/gen/sign/159665.wgsl.expected.msl +++ b/test/tint/builtins/gen/sign/159665.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sign_159665() { - float3 res = sign(float3()); + float3 res = sign(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_159665(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/b8f634.wgsl.expected.msl b/test/tint/builtins/gen/sign/b8f634.wgsl.expected.msl index 70a13b58eb..c911824eba 100644 --- a/test/tint/builtins/gen/sign/b8f634.wgsl.expected.msl +++ b/test/tint/builtins/gen/sign/b8f634.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sign_b8f634() { - float4 res = sign(float4()); + float4 res = sign(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_b8f634(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/d065d8.wgsl.expected.msl b/test/tint/builtins/gen/sign/d065d8.wgsl.expected.msl index 2fd18968f8..4255b7017b 100644 --- a/test/tint/builtins/gen/sign/d065d8.wgsl.expected.msl +++ b/test/tint/builtins/gen/sign/d065d8.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sign_d065d8() { - float2 res = sign(float2()); + float2 res = sign(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_d065d8(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/dd790e.wgsl.expected.msl b/test/tint/builtins/gen/sign/dd790e.wgsl.expected.msl index 655bb10e42..a5f99f63cf 100644 --- a/test/tint/builtins/gen/sign/dd790e.wgsl.expected.msl +++ b/test/tint/builtins/gen/sign/dd790e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_dd790e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/01f241.wgsl.expected.msl b/test/tint/builtins/gen/sin/01f241.wgsl.expected.msl index af988a628c..8b3c830882 100644 --- a/test/tint/builtins/gen/sin/01f241.wgsl.expected.msl +++ b/test/tint/builtins/gen/sin/01f241.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sin_01f241() { - float3 res = sin(float3()); + float3 res = sin(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_01f241(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/4e3979.wgsl.expected.msl b/test/tint/builtins/gen/sin/4e3979.wgsl.expected.msl index 90f5a93970..84dc10b888 100644 --- a/test/tint/builtins/gen/sin/4e3979.wgsl.expected.msl +++ b/test/tint/builtins/gen/sin/4e3979.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sin_4e3979() { - float4 res = sin(float4()); + float4 res = sin(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_4e3979(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/b78c91.wgsl.expected.msl b/test/tint/builtins/gen/sin/b78c91.wgsl.expected.msl index b54d4fb8dd..7acd0e6308 100644 --- a/test/tint/builtins/gen/sin/b78c91.wgsl.expected.msl +++ b/test/tint/builtins/gen/sin/b78c91.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_b78c91(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.msl b/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.msl index 78417e907b..e0525998d0 100644 --- a/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.msl +++ b/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sin_fc8bc4() { - float2 res = sin(float2()); + float2 res = sin(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_fc8bc4(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/445e33.wgsl.expected.msl b/test/tint/builtins/gen/sinh/445e33.wgsl.expected.msl index 3361ddda53..1cd540921d 100644 --- a/test/tint/builtins/gen/sinh/445e33.wgsl.expected.msl +++ b/test/tint/builtins/gen/sinh/445e33.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sinh_445e33() { - float4 res = sinh(float4()); + float4 res = sinh(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_445e33(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.msl b/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.msl index 52830a8c4d..208c381869 100644 --- a/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.msl +++ b/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_7bb598(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.msl b/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.msl index ca6289a0e9..f1e812ccf2 100644 --- a/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.msl +++ b/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sinh_b9860e() { - float2 res = sinh(float2()); + float2 res = sinh(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_b9860e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.msl b/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.msl index c9d2bb5b81..6af7a0d7de 100644 --- a/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.msl +++ b/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sinh_c9a5eb() { - float3 res = sinh(float3()); + float3 res = sinh(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_c9a5eb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.msl index 0c556987ff..1b534a6f59 100644 --- a/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void smoothstep_392c19() { - float2 res = smoothstep(float2(), float2(), float2()); + float2 res = smoothstep(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_392c19(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.msl index 55fb975bdc..efadf29097 100644 --- a/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void smoothstep_40864c() { - float4 res = smoothstep(float4(), float4(), float4()); + float4 res = smoothstep(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_40864c(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.msl index 27f5ab6cda..3ba77c1d02 100644 --- a/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.msl @@ -6,7 +6,7 @@ builtins/gen/smoothstep/5f615b.wgsl:28:24 warning: use of deprecated builtin using namespace metal; void smoothStep_5f615b() { - float4 res = smoothstep(float4(), float4(), float4()); + float4 res = smoothstep(float4(0.0f), float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_5f615b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.msl index 4d8342eaae..0cbf36bc0f 100644 --- a/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.msl @@ -6,7 +6,7 @@ builtins/gen/smoothstep/658be3.wgsl:28:24 warning: use of deprecated builtin using namespace metal; void smoothStep_658be3() { - float3 res = smoothstep(float3(), float3(), float3()); + float3 res = smoothstep(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_658be3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.msl index 5fbf3436cf..f265e143e7 100644 --- a/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_6c4975(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.msl index 19ef68fcd6..0f364ab4a2 100644 --- a/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void smoothstep_aad1db() { - float3 res = smoothstep(float3(), float3(), float3()); + float3 res = smoothstep(float3(0.0f), float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_aad1db(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.msl index 1ba59040ac..ed1317d002 100644 --- a/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.msl @@ -6,7 +6,7 @@ builtins/gen/smoothstep/c11eef.wgsl:28:24 warning: use of deprecated builtin using namespace metal; void smoothStep_c11eef() { - float2 res = smoothstep(float2(), float2(), float2()); + float2 res = smoothstep(float2(0.0f), float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_c11eef(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.msl b/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.msl index 34e5b3aecf..4f835bc778 100644 --- a/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.msl +++ b/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.msl @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_cb0bfb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.msl b/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.msl index 3a8c9e7c6a..7f933af5e3 100644 --- a/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.msl +++ b/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_20c74e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.msl b/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.msl index ae85d89233..f1f40b8580 100644 --- a/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.msl +++ b/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sqrt_8c7024() { - float2 res = sqrt(float2()); + float2 res = sqrt(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_8c7024(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl b/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl index 08b1222327..2d45b3aae2 100644 --- a/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl +++ b/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sqrt_aa0d7a() { - float4 res = sqrt(float4()); + float4 res = sqrt(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_aa0d7a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.msl b/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.msl index d93e68d0e7..d3bc22470c 100644 --- a/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.msl +++ b/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void sqrt_f8c59a() { - float3 res = sqrt(float3()); + float3 res = sqrt(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_f8c59a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/0b073b.wgsl.expected.msl b/test/tint/builtins/gen/step/0b073b.wgsl.expected.msl index 60774de513..7ab4a8ef56 100644 --- a/test/tint/builtins/gen/step/0b073b.wgsl.expected.msl +++ b/test/tint/builtins/gen/step/0b073b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_0b073b(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/19accd.wgsl.expected.msl b/test/tint/builtins/gen/step/19accd.wgsl.expected.msl index 44dd9ebe5c..b01b13459a 100644 --- a/test/tint/builtins/gen/step/19accd.wgsl.expected.msl +++ b/test/tint/builtins/gen/step/19accd.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void step_19accd() { - float2 res = step(float2(), float2()); + float2 res = step(float2(0.0f), float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_19accd(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/334303.wgsl.expected.msl b/test/tint/builtins/gen/step/334303.wgsl.expected.msl index 2df2377cf0..5d3f1a34d9 100644 --- a/test/tint/builtins/gen/step/334303.wgsl.expected.msl +++ b/test/tint/builtins/gen/step/334303.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void step_334303() { - float3 res = step(float3(), float3()); + float3 res = step(float3(0.0f), float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_334303(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/e2b337.wgsl.expected.msl b/test/tint/builtins/gen/step/e2b337.wgsl.expected.msl index 7babb88532..9b2aff5a6a 100644 --- a/test/tint/builtins/gen/step/e2b337.wgsl.expected.msl +++ b/test/tint/builtins/gen/step/e2b337.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void step_e2b337() { - float4 res = step(float4(), float4()); + float4 res = step(float4(0.0f), float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_e2b337(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/244e2a.wgsl.expected.msl b/test/tint/builtins/gen/tan/244e2a.wgsl.expected.msl index 64ec9bcf1f..3c3ea57b94 100644 --- a/test/tint/builtins/gen/tan/244e2a.wgsl.expected.msl +++ b/test/tint/builtins/gen/tan/244e2a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tan_244e2a() { - float4 res = tan(float4()); + float4 res = tan(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_244e2a(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/2f030e.wgsl.expected.msl b/test/tint/builtins/gen/tan/2f030e.wgsl.expected.msl index 63bec4593f..71d071f975 100644 --- a/test/tint/builtins/gen/tan/2f030e.wgsl.expected.msl +++ b/test/tint/builtins/gen/tan/2f030e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_2f030e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/7ea104.wgsl.expected.msl b/test/tint/builtins/gen/tan/7ea104.wgsl.expected.msl index 3be2db34ac..ab23bca36a 100644 --- a/test/tint/builtins/gen/tan/7ea104.wgsl.expected.msl +++ b/test/tint/builtins/gen/tan/7ea104.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tan_7ea104() { - float3 res = tan(float3()); + float3 res = tan(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_7ea104(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.msl b/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.msl index 92e515caa9..e95598e606 100644 --- a/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.msl +++ b/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tan_8ce3e9() { - float2 res = tan(float2()); + float2 res = tan(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_8ce3e9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.msl b/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.msl index 4272f820a6..706f5bb7a6 100644 --- a/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.msl +++ b/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tanh_5663c5() { - float4 res = tanh(float4()); + float4 res = tanh(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_5663c5(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.msl b/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.msl index bee133bf8f..5af0a259b2 100644 --- a/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.msl +++ b/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tanh_5724b3() { - float2 res = tanh(float2()); + float2 res = tanh(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_5724b3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.msl b/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.msl index 47a61a0adf..cbae56d8d1 100644 --- a/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.msl +++ b/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void tanh_9f9fb9() { - float3 res = tanh(float3()); + float3 res = tanh(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_9f9fb9(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.msl b/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.msl index b9400e8ea4..c71c1f6bb6 100644 --- a/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.msl +++ b/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_c15fdb(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl index 7e980a0945..b5b212146d 100644 --- a/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_002b2a(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.msl index 2eedc2fca9..f53807b875 100644 --- a/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_012b82(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.msl index b17a320d5b..a1fa2f3981 100644 --- a/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_08753d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl index f44d72ecc6..cc675e6c22 100644 --- a/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_0c4772(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl index c2d4cceed6..e95504846d 100644 --- a/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_0cce40(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl index f1bd381b91..875a38898b 100644 --- a/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_0cf2ff(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl index 3470bd7e14..d07d72a409 100644 --- a/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_0d8b7e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl index 1b58235cbf..376e7b1473 100644 --- a/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_0e32ee(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl index 86e7f0d8a6..9e6f6ab279 100644 --- a/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_0f3c50(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl index 931111f502..c08c723d33 100644 --- a/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_1191a5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl index d70293b962..83f261505e 100644 --- a/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_2) { textureDimensions_12c9bb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.msl index 442985e860..25431038ea 100644 --- a/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_147998(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.msl index f8656f6dd6..4872c899f6 100644 --- a/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_16036c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl index 54e8e1256d..9ef7f55bb6 100644 --- a/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_1b71f0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl index ba2b6292db..65d506dd62 100644 --- a/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_1d6c26(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl index c6219c278b..352d58df65 100644 --- a/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_1e9e39(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl index 8d7cbc489b..d35a456705 100644 --- a/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_1f20c5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl index dcda00a789..169ee329ac 100644 --- a/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_214dd4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.msl index b482e8d65c..d20f6575b7 100644 --- a/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_221f22(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.msl index 3590ad73a2..09590894e4 100644 --- a/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_267788(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl index 862a81e715..0827592b25 100644 --- a/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_26bdfa(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl index 14cfc8ca13..ba9013a8ad 100644 --- a/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_26ef6c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl index 848bc3b8d8..011b3cb465 100644 --- a/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_2ad087(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl index 85bf657323..4f373e5006 100644 --- a/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_2efa05(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl index cd44b36b9f..a61bafeb5d 100644 --- a/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_2f289f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl index 28214cb859..2dc5042f58 100644 --- a/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_2fe1cc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl index d98992ed86..a9655f52bf 100644 --- a/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_318ecc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.msl index bb2348a3ef..eb04eb88e7 100644 --- a/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_340d06(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.msl index a2bff50d18..8de5617137 100644 --- a/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_398e30(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl index 512103551a..7dd2f6b70b 100644 --- a/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_3a94ea(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl index f5e4b1b481..765771f8f8 100644 --- a/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_3aca08(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl index 1366cdf52d..ba7e47a6a7 100644 --- a/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_3c5ad8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl index afa8c0f219..ac8d43dac9 100644 --- a/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_4152a6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.msl index f6d8c32bd1..77b610faab 100644 --- a/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_423f99(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl index e6579cdc3c..177015d0ad 100644 --- a/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_4267ee(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl index 5d05c3e452..cc3fa542ff 100644 --- a/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_42d4e6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl index 14a1875b39..5f475e25fe 100644 --- a/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_48cb89(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.msl index 69112a1d96..4ca4453d84 100644 --- a/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_49d274(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl index 36c25c4b56..54723cb4de 100644 --- a/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_4df9a8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl index 0924964a8b..45035cca3c 100644 --- a/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_50a9ee(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.msl index 81fc60c5cd..ec08120b76 100644 --- a/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_52045c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl index 40ee9ecf0e..0778752ea7 100644 --- a/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_55b23e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.msl index f1af5282ce..d6c497bc4b 100644 --- a/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureDimensions_579629(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl index c71837ffb9..fb1c232486 100644 --- a/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_57da0b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl index fb1f889a99..c089020df3 100644 --- a/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_2) { textureDimensions_57e28f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.msl index 2cc6f1a315..c8d90cdade 100644 --- a/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_58a515(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl index 9d911c8671..90f407d362 100644 --- a/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_5985f3(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl index a23d4ab6e2..56e5f71c22 100644 --- a/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_5caa5e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl index 4da0c3b6db..50d3988eba 100644 --- a/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_5e295d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl index 1f35ec2649..bf597c3afd 100644 --- a/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_60bf54(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl index 44388bc227..931b457149 100644 --- a/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_63f3cf(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.msl index ebafaa5dde..a1fdb63b94 100644 --- a/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_68105c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl index 6facf32607..4c5bb66d0b 100644 --- a/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_686ef2(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl index de1f67b2e8..7087625943 100644 --- a/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_6adac6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl index 379a6398fa..52a3369bb2 100644 --- a/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_6ec1b4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl index 0de9feabf4..5154f6cfbf 100644 --- a/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_6f0d79(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.msl index 3dc0263bc3..d202631130 100644 --- a/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_702c53(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl index 5e835e305c..50c3c1628d 100644 --- a/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_2) { textureDimensions_72e5d6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.msl index 01adb4d3dc..92eebe2753 100644 --- a/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_79df87(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl index 4964ca048b..59cd3739f0 100644 --- a/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_2) { textureDimensions_7bf826(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl index 6cae60437a..f853ebcebf 100644 --- a/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_7f5c2e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl index 50d4cee541..efc7793dda 100644 --- a/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_8028f3(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.msl index 98b2a954cc..825c3ade50 100644 --- a/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_811679(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.msl index 303771c5c9..1ecf8c985c 100644 --- a/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_820596(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl index f92d24aacd..29cff8f6c4 100644 --- a/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_83ee5a(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.msl index 05c997d474..2b9b1911c3 100644 --- a/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_85d556(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl index cbd3f88db3..f46a99d8dd 100644 --- a/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_88ad17(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl index 4272060876..77f5715a6d 100644 --- a/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_8aa4c4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl index 1b165dfe81..7899845cb3 100644 --- a/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_8deb5e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl index fe8a216299..431a4549c4 100644 --- a/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_8f20bf(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl index b80ae46bc8..f104902483 100644 --- a/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_8fca0f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.msl index 0fa625c602..f585531ed1 100644 --- a/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_2) { textureDimensions_90340b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl index 1e47848252..5f29287b31 100644 --- a/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_9042ab(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl index 9f2122c712..0670fb3ae9 100644 --- a/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_2) { textureDimensions_9393b0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl index e825ea3231..a6283fbd15 100644 --- a/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_2) { textureDimensions_939fdb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl index 8f66f9d7e8..052154fa52 100644 --- a/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_962dcd(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl index 4b2bcddf04..cc19962ad6 100644 --- a/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_9abfe5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl index e457997bfd..cbffa18cfd 100644 --- a/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_9c9c57(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl index 98178fc971..ea085fa528 100644 --- a/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_9da9e2(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl index 8d1ec05550..140c2af898 100644 --- a/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_9eb8d8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl index 23edfc2885..b7097a21b4 100644 --- a/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_9f8e46(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.msl index 02fc57141d..ceb6e124aa 100644 --- a/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_2) { textureDimensions_a01845(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl index 22d4338ad1..aef867087f 100644 --- a/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_a7d565(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl index 3bbebf328a..583342b5f9 100644 --- a/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_a863f2(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl index 539d007136..7cfab5e280 100644 --- a/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_a9c9c1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl index ee971ff9ae..60c470e875 100644 --- a/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_b0e16d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl index a7daabd25d..33fc09aae0 100644 --- a/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_b3c954(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl index 6b96a63469..86bd509d77 100644 --- a/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_b3e407(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.msl index 84375cac62..ee84ff1eb9 100644 --- a/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_b91240(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl index 1d4eb711ca..cf84f15c94 100644 --- a/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.msl @@ -30,7 +30,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_ba1481(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl index 89c1d8458c..0f837421b7 100644 --- a/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_bb3dde(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl index 815d44cdbb..711f4aace3 100644 --- a/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_c30e75(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl index ff4d805db4..39c32d13d5 100644 --- a/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_c7943d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl index 93357b83d6..2a4db09c42 100644 --- a/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_cc968c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl index 7e988b4262..f03ce0c682 100644 --- a/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_cccc8f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl index 5013514518..14b141addd 100644 --- a/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_cd76a7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl index 8cd521d7fd..fa50285dcc 100644 --- a/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_cdf473(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.msl index 689a796e25..7c0b4ee3e5 100644 --- a/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_cec841(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl index d9b49986bc..210364294b 100644 --- a/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_cf7e43(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl index d36c63f9b0..67f0abcb41 100644 --- a/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureDimensions_d125bc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl index c33e6dfcfe..663d3c6385 100644 --- a/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_d83c45(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl index 086ae36ae5..9f811af45e 100644 --- a/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureDimensions_daf7c0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl index be8620cb32..9e5082a93f 100644 --- a/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureDimensions_dc2dd0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.msl index 40d1010494..709257fa98 100644 --- a/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureDimensions_e927be(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl index 71d8e46118..d512809aa0 100644 --- a/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_e9e96c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl index c6c771a4c9..a0d18a7526 100644 --- a/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureDimensions_ef5b89(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl index 5f79ff38a9..f1908ffb5c 100644 --- a/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_efc8a4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl index 13b604c42c..1ec0626ad9 100644 --- a/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_ms tint_symbol_2) { textureDimensions_f60bdb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl index 6dbf9e9c75..ca07490508 100644 --- a/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_f7145b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl index 8167596ae9..7b39e0fb9e 100644 --- a/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_f931c7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl index 193d7d995a..5fca056387 100644 --- a/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureDimensions_fa9859(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl index bf7f8df262..fed740f414 100644 --- a/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureDimensions_fb5670(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl b/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl index 6049ea8763..3c6340c1e9 100644 --- a/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureDimensions_fcac78(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.msl index 684d655fdd..1db6ec98e2 100644 --- a/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_01305f(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(0), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_01305f(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.msl index 58cfec266d..e7bf7b84b0 100644 --- a/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_06030a(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_06030a(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.msl index 9fe4166823..c3f13c1ea4 100644 --- a/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_10c554(depthcube tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float3()); + float4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_3, sampler tint_symbol_4) { textureGather_10c554(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.msl index 37a9753650..4e43bfaa17 100644 --- a/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_15d79c(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_15d79c(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl index dfe89418b5..9ae7410e33 100644 --- a/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_2e0ed5(depth2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2()); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureGather_2e0ed5(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.msl index 69f2b13bb5..6ebce318a8 100644 --- a/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_3112e8(texturecube_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float3(), 1, component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), 1, component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_3, sampler tint_symbol_4) { textureGather_3112e8(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.msl index c5458cf275..ff4aec3d36 100644 --- a/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_3c527e(texturecube_array tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float3(), 1, component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), 1, component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_3, sampler tint_symbol_4) { textureGather_3c527e(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.msl index a2c6d259fe..0867050d11 100644 --- a/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_43025d(depthcube_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float3(), 1); + float4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_3, sampler tint_symbol_4) { textureGather_43025d(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.msl index 947743ea44..95a43357d4 100644 --- a/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_4f2350(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_4f2350(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.msl index a082138171..4ba9e53605 100644 --- a/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_51cf0b(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(0), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_51cf0b(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.msl index 2a5dbf0e87..0138daa5d8 100644 --- a/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_53ece6(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2()); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_53ece6(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.msl index 426ea2006a..bbe676a2e4 100644 --- a/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_57bfc6(texturecube tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float3(), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_3, sampler tint_symbol_4) { textureGather_57bfc6(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.msl index 0ce1455606..a4a66f910d 100644 --- a/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_587ba3(texture2d tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_587ba3(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.msl index 43be4dfa0f..9e8ac80817 100644 --- a/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_69e0fb(texture2d tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_69e0fb(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.msl index b7c2ba3547..2f83621424 100644 --- a/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_93003d(texture2d tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_93003d(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.msl index 8588a79fab..b6f9f6857f 100644 --- a/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_9a6358(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_9a6358(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.msl index 4705de2128..a3cde10552 100644 --- a/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_9efca2(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(0), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_9efca2(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl index d8311b3f20..7f576edb1c 100644 --- a/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_bd0b1e(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_bd0b1e(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.msl index c917900704..d5c9793525 100644 --- a/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_c409ae(depth2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2()); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureGather_c409ae(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.msl index 9f34359fcb..56981c001d 100644 --- a/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_c55822(texturecube_array tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float3(), 1, component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), 1, component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_3, sampler tint_symbol_4) { textureGather_c55822(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.msl index 8d806f937a..d78d2d328c 100644 --- a/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_e1b67d(texturecube tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float3(), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_3, sampler tint_symbol_4) { textureGather_e1b67d(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.msl index 81c960d082..1324b2d235 100644 --- a/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_e9eff6(texture2d tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureGather_e9eff6(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl index 674927c5f1..89c7e7d120 100644 --- a/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_f5f3ba(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), 1, int2(), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), 1, int2(0), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureGather_f5f3ba(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.msl b/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.msl index daf9ec7c0e..0dd9987356 100644 --- a/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGather_f7995a(texturecube tint_symbol_1, sampler tint_symbol_2) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float3(), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float3(0.0f), component::y); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_3, sampler tint_symbol_4) { textureGather_f7995a(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl index 87e666155b..5c3e528957 100644 --- a/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_182fd4(depthcube tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float3(), 1.0f); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float3(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_182fd4(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl index 3fb5c132bb..b0505731a2 100644 --- a/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_60d2d1(depthcube_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float3(), 1, 1.0f); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float3(0.0f), 1, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_60d2d1(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl index cacdd370f1..a5b7ececb7 100644 --- a/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_6d9352(depth2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(), 1.0f); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(0.0f), 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_6d9352(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl index 1e3a96faec..1332ccb82a 100644 --- a/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_6f1267(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(), 1, 1.0f, int2()); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(0.0f), 1, 1.0f, int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_6f1267(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl index 5520d910be..5c8eb746b9 100644 --- a/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_783e65(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(), 1, 1.0f); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(0.0f), 1, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_783e65(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl b/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl index 94edcaded9..2ceef170c2 100644 --- a/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureGatherCompare_a5f587(depth2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(), 1.0f, int2()); + float4 res = tint_symbol_1.gather_compare(tint_symbol_2, float2(0.0f), 1.0f, int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureGatherCompare_a5f587(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.msl index c9b2c1d39a..452e06878c 100644 --- a/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_19cf87(depth2d tint_symbol_1) { - float res = tint_symbol_1.read(uint2(int2()), 0); + float res = tint_symbol_1.read(uint2(int2(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_2) { textureLoad_19cf87(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.msl index 2dd4d15ac0..a71b52b813 100644 --- a/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureLoad_1b8588(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.msl index 296e7bbbc9..194cdbfd53 100644 --- a/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_1f2016(texture3d tint_symbol_1) { - float4 res = tint_symbol_1.read(uint3(int3()), 0); + float4 res = tint_symbol_1.read(uint3(int3(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureLoad_1f2016(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.msl index b1ffb1da8a..bddd029ec5 100644 --- a/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_484344(texture2d tint_symbol_1) { - float4 res = tint_symbol_1.read(uint2(int2()), 0); + float4 res = tint_symbol_1.read(uint2(int2(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureLoad_484344(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.msl index ccfeb6a46b..3a19c301a8 100644 --- a/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_4fd803(texture3d tint_symbol_1) { - int4 res = tint_symbol_1.read(uint3(int3()), 0); + int4 res = tint_symbol_1.read(uint3(int3(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureLoad_4fd803(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl index 54f52cfb82..be59bdf8a1 100644 --- a/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureLoad_5a2f9d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.msl index a542c124a6..91c75ba039 100644 --- a/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_6154d4(texture2d tint_symbol_1) { - uint4 res = tint_symbol_1.read(uint2(int2()), 0); + uint4 res = tint_symbol_1.read(uint2(int2(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureLoad_6154d4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.msl index 8dfd72b2d6..e39caca53d 100644 --- a/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_6273b1(depth2d_ms tint_symbol_1) { - float res = tint_symbol_1.read(uint2(int2()), 1); + float res = tint_symbol_1.read(uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_ms tint_symbol_2) { textureLoad_6273b1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.msl index 4e4cacf963..e47beeabf3 100644 --- a/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_79e697(texture2d_array tint_symbol_1) { - int4 res = tint_symbol_1.read(uint2(int2()), 1, 0); + int4 res = tint_symbol_1.read(uint2(int2(0)), 1, 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureLoad_79e697(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl index a2b782a088..ffdc317fb8 100644 --- a/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_7c90e5(texture2d_array tint_symbol_1) { - uint4 res = tint_symbol_1.read(uint2(int2()), 1, 0); + uint4 res = tint_symbol_1.read(uint2(int2(0)), 1, 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureLoad_7c90e5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.msl index d2fd8d08f0..29a6d1b32d 100644 --- a/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureLoad_81c381(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.msl index c8337af61e..c78f9e92ea 100644 --- a/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_87be85(texture2d_array tint_symbol_1) { - float4 res = tint_symbol_1.read(uint2(int2()), 1, 0); + float4 res = tint_symbol_1.read(uint2(int2(0)), 1, 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureLoad_87be85(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.msl index d7ae7960ef..b52cfa7e3d 100644 --- a/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.msl @@ -42,7 +42,7 @@ float4 textureLoadExternal(texture2d plane0, texture2d tint_symbol_1, texture2d tint_symbol_2, const constant ExternalTextureParams* const tint_symbol_3) { - float4 res = textureLoadExternal(tint_symbol_1, tint_symbol_2, int2(), *(tint_symbol_3)); + float4 res = textureLoadExternal(tint_symbol_1, tint_symbol_2, int2(0), *(tint_symbol_3)); } struct tint_symbol { @@ -51,7 +51,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_4, texture2d tint_symbol_5, const constant ExternalTextureParams* const tint_symbol_6) { textureLoad_8acf41(tint_symbol_4, tint_symbol_5, tint_symbol_6); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_7 [[texture(0)]], texture2d tint_symbol_8 [[texture(1)]], const constant ExternalTextureParams* tint_symbol_9 [[buffer(2)]]) { diff --git a/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.msl index 9faf689498..98b0410f6d 100644 --- a/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_9b2667(depth2d_array tint_symbol_1) { - float res = tint_symbol_1.read(uint2(int2()), 1, 0); + float res = tint_symbol_1.read(uint2(int2(0)), 1, 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_2) { textureLoad_9b2667(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.msl index 553f45eed8..7bcc2d6b2a 100644 --- a/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_a583c9(texture2d_ms tint_symbol_1) { - float4 res = tint_symbol_1.read(uint2(int2()), 1); + float4 res = tint_symbol_1.read(uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureLoad_a583c9(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl index 1d87c99657..8610f77ef7 100644 --- a/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_a9a9f5(texture3d tint_symbol_1) { - uint4 res = tint_symbol_1.read(uint3(int3()), 0); + uint4 res = tint_symbol_1.read(uint3(int3(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureLoad_a9a9f5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.msl index 01badd3190..d566ce6e7f 100644 --- a/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_c2a480(texture2d tint_symbol_1) { - int4 res = tint_symbol_1.read(uint2(int2()), 0); + int4 res = tint_symbol_1.read(uint2(int2(0)), 0); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureLoad_c2a480(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.msl index 60085e0404..efdc2c2b22 100644 --- a/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_c378ee(texture2d_ms tint_symbol_1) { - uint4 res = tint_symbol_1.read(uint2(int2()), 1); + uint4 res = tint_symbol_1.read(uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureLoad_c378ee(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl b/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl index 1674c168e3..024057e13d 100644 --- a/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureLoad_e3d2cc(texture2d_ms tint_symbol_1) { - int4 res = tint_symbol_1.read(uint2(int2()), 1); + int4 res = tint_symbol_1.read(uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureLoad_e3d2cc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.msl index cecc24da8d..62c3cdabae 100644 --- a/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_024820(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl index 4c77a41b31..68ceeb46a3 100644 --- a/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLayers_053df7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl index 6ba3aecf54..f89aa0051f 100644 --- a/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_058cc3(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl index 32372b9dab..6666c52d32 100644 --- a/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_09d05d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl index e48920fa60..bb33ae6c61 100644 --- a/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_13b4ce(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl index 7bfd96a3bf..5c5fa33da1 100644 --- a/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_22e53b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.msl index 29e697e304..97a5498d1b 100644 --- a/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_562013(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl index ecbee5958c..aa7890e4f0 100644 --- a/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLayers_5d59cd(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl index a71e53d3b4..906ffc528e 100644 --- a/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_68a65b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl index 7d8fb0f57a..fc13fba684 100644 --- a/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_2) { textureNumLayers_778bd1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl index e7027f1374..05239dae46 100644 --- a/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_7f1937(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl index ce07ab5e96..e1b10ebfdc 100644 --- a/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLayers_85f980(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl index 344a256724..971482f10b 100644 --- a/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_87953e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl index 9282aa8ff0..66d329d6ed 100644 --- a/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_893e7c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl index 9cd8aad10d..1b296c7c8d 100644 --- a/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_9700fb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl index 67624d6bbd..427fe4f144 100644 --- a/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_a216d2(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl index d783a2d845..bff98ca56c 100644 --- a/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_cd5dc8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl index d8f24b2eae..d2a101171b 100644 --- a/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_d5b228(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl index 8935085d84..3b5b47f31f 100644 --- a/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_e31be1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl index d37e9d9b69..ade75dde6a 100644 --- a/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_2) { textureNumLayers_e653c0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl index 399e5bd7d9..d8f0821835 100644 --- a/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_ee942f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl index 78959f67b9..d4153049f6 100644 --- a/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_f33005(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl index ffcba511ab..62335743da 100644 --- a/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_fcec98(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl index 2a83087bfb..2fb050961d 100644 --- a/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLayers_ff5e89(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl index e60a683f7d..db09bf4245 100644 --- a/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_2) { textureNumLevels_076cb5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl index c8fb39c2f1..c592ea2124 100644 --- a/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureNumLevels_080d95(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl index be2500ac8e..43e490484c 100644 --- a/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureNumLevels_09ddd0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.msl index 096d48d290..c27305e4e6 100644 --- a/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLevels_105988(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl index fb21aa7064..00356f0669 100644 --- a/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureNumLevels_1e6f3b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl index dc6fd0a9c5..571d0a45f1 100644 --- a/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureNumLevels_23f750(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl index 1492f86a7d..8f7ed02625 100644 --- a/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_2) { textureNumLevels_2c3575(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl index 9f66634525..11c0362e19 100644 --- a/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureNumLevels_32a0ae(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl index 9f5a2eb7bd..4a17faabec 100644 --- a/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLevels_5101cf(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl index eac33e922c..7acc809df7 100644 --- a/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureNumLevels_51b5bb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl index 90a35ee14d..5f6ffc4d3b 100644 --- a/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureNumLevels_897aaf(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl index 7e8f856dc7..f813901183 100644 --- a/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureNumLevels_9da7a5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl index 2a9faacb95..4a151f0637 100644 --- a/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLevels_a91c03(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl index 0b5172c631..a4627cd1b1 100644 --- a/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLevels_aee7c8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl index 992a0acc27..cdda66a9a0 100644 --- a/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_2) { textureNumLevels_b1b12b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl index f355a6d3e9..8c251ea96b 100644 --- a/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureNumLevels_b4f5ea(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl index f3a4601862..d0d19fe935 100644 --- a/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureNumLevels_d004a9(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl index 2b06e6b75d..e7813c56e5 100644 --- a/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureNumLevels_dca09e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl index f4f23bc00c..0a9f1ef9b3 100644 --- a/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureNumLevels_e67231(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl index 65e9dac98c..74d65639d5 100644 --- a/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_2) { textureNumLevels_ed078b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl index 64bd4855da..83873b6123 100644 --- a/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_2) { textureNumLevels_f46ec6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl b/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl index 6c562b82b3..0a150257cc 100644 --- a/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_2) { textureNumLevels_f5828d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl b/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl index 465294cca7..b062129875 100644 --- a/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureNumSamples_2c6f14(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl b/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl index 77c2cc9578..d951a7eee8 100644 --- a/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureNumSamples_42f8bb(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl b/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl index ef9c562780..18e0ad7500 100644 --- a/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_ms tint_symbol_2) { textureNumSamples_449d23(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl b/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl index 011207af71..c3db04e5e6 100644 --- a/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_ms tint_symbol_2) { textureNumSamples_a3c8a0(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_ms tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.msl index 13ceaa0e5a..2a204941c2 100644 --- a/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_02aa9b(texture2d_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), 1, int2()); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1, int2(0)); } fragment void fragment_main(texture2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.msl index 0d15b26efc..26bfe5f405 100644 --- a/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_100dc0(texture3d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), int3()); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), int3(0)); } fragment void fragment_main(texture3d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.msl index 8fc7af49ef..7884b3124b 100644 --- a/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_38bbb9(depth2d tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float2()); + float res = tint_symbol.sample(tint_symbol_1, float2(0.0f)); } fragment void fragment_main(depth2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.msl index 2d5945b1ff..a63d38d491 100644 --- a/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_3b50bd(texture3d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3()); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f)); } fragment void fragment_main(texture3d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl index 3424a0e059..f392da9c96 100644 --- a/test/tint/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/4dd1bf.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_4dd1bf(texturecube_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), 1); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), 1); } fragment void fragment_main(texturecube_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.msl index 85ec0ef4b4..a8e99fb996 100644 --- a/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_51b514(texture2d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2()); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f)); } fragment void fragment_main(texture2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.msl index 06381b01b6..79c7382bd8 100644 --- a/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_667d76(depth2d tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float2(), int2()); + float res = tint_symbol.sample(tint_symbol_1, float2(0.0f), int2(0)); } fragment void fragment_main(depth2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/6717ca.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/6717ca.wgsl.expected.msl index 9753b100ba..aa18356a8e 100644 --- a/test/tint/builtins/gen/textureSample/6717ca.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/6717ca.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_6717ca(texture2d_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), 1); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1); } fragment void fragment_main(texture2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.msl index 2e192ca218..a3b9549831 100644 --- a/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_7c3baa(texture2d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), int2()); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), int2(0)); } fragment void fragment_main(texture2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl index 6b7b50bdca..7ed4a39b83 100644 --- a/test/tint/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/7e9ffd.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_7e9ffd(depth2d_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float2(), 1); + float res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1); } fragment void fragment_main(depth2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.msl index a2c56ffc12..f2d9eebf41 100644 --- a/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_8522e7(depth2d_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float2(), 1, int2()); + float res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1, int2(0)); } fragment void fragment_main(depth2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl index 824463db88..812a3e0a2c 100644 --- a/test/tint/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/c2f4e8.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_c2f4e8(depthcube_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float3(), 1); + float res = tint_symbol.sample(tint_symbol_1, float3(0.0f), 1); } fragment void fragment_main(depthcube_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.msl index b7190c8500..6953ad27ee 100644 --- a/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_e53267(texturecube tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3()); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f)); } fragment void fragment_main(texturecube tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.msl b/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.msl index 3497e1566c..295b3acf19 100644 --- a/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSample_ea7030(depthcube tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample(tint_symbol_1, float3()); + float res = tint_symbol.sample(tint_symbol_1, float3(0.0f)); } fragment void fragment_main(depthcube tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl index 675e006688..dde5bfe38d 100644 --- a/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_53b9f7(texturecube tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), bias(1.0f)); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), bias(1.0f)); } fragment void fragment_main(texturecube tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl index ee8021382f..34cf4c8526 100644 --- a/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_65ac50(texture2d_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), 1, bias(1.0f), int2()); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1, bias(1.0f), int2(0)); } fragment void fragment_main(texture2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl index aae831bb7f..ac41f09b68 100644 --- a/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_6a9113(texture2d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), bias(1.0f)); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), bias(1.0f)); } fragment void fragment_main(texture2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl index 357833db91..0a6cba8e3b 100644 --- a/test/tint/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/80e579.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_80e579(texture2d_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), 1, bias(1.0f)); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), 1, bias(1.0f)); } fragment void fragment_main(texture2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl index 2d6dacdd03..f51dcbfcb6 100644 --- a/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_81c19a(texture2d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float2(), bias(1.0f), int2()); + float4 res = tint_symbol.sample(tint_symbol_1, float2(0.0f), bias(1.0f), int2(0)); } fragment void fragment_main(texture2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl index 80a9324d40..07cd37c50e 100644 --- a/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_d3fa1b(texture3d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), bias(1.0f)); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), bias(1.0f)); } fragment void fragment_main(texture3d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl index 312611422a..020cab3584 100644 --- a/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_df91bb(texture3d tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), bias(1.0f), int3()); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), bias(1.0f), int3(0)); } fragment void fragment_main(texture3d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl index 123b4f105a..de4a66326a 100644 --- a/test/tint/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleBias/eed7c4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleBias_eed7c4(texturecube_array tint_symbol, sampler tint_symbol_1) { - float4 res = tint_symbol.sample(tint_symbol_1, float3(), 1, bias(1.0f)); + float4 res = tint_symbol.sample(tint_symbol_1, float3(0.0f), 1, bias(1.0f)); } fragment void fragment_main(texturecube_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl index f076683192..469a65ac3c 100644 --- a/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_25fcd1(depth2d tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float2(), 1.0f, int2()); + float res = tint_symbol.sample_compare(tint_symbol_1, float2(0.0f), 1.0f, int2(0)); } fragment void fragment_main(depth2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl index eb88f71197..6b5e76d826 100644 --- a/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_3a5923(depth2d tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float2(), 1.0f); + float res = tint_symbol.sample_compare(tint_symbol_1, float2(0.0f), 1.0f); } fragment void fragment_main(depth2d tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl index a0bb49bc55..bdcf85c11b 100644 --- a/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_63fb83(depthcube tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float3(), 1.0f); + float res = tint_symbol.sample_compare(tint_symbol_1, float3(0.0f), 1.0f); } fragment void fragment_main(depthcube tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl index d92c04ce1f..6e4476f804 100644 --- a/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_98b85c(depth2d_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float2(), 1, 1.0f, int2()); + float res = tint_symbol.sample_compare(tint_symbol_1, float2(0.0f), 1, 1.0f, int2(0)); } fragment void fragment_main(depth2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl index abb06a0e97..46e23e1e87 100644 --- a/test/tint/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/a3ca7e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_a3ca7e(depthcube_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float3(), 1, 1.0f); + float res = tint_symbol.sample_compare(tint_symbol_1, float3(0.0f), 1, 1.0f); } fragment void fragment_main(depthcube_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl index 3b9cc896ef..50d2af1fd0 100644 --- a/test/tint/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompare/dd431d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompare_dd431d(depth2d_array tint_symbol, sampler tint_symbol_1) { - float res = tint_symbol.sample_compare(tint_symbol_1, float2(), 1, 1.0f); + float res = tint_symbol.sample_compare(tint_symbol_1, float2(0.0f), 1, 1.0f); } fragment void fragment_main(depth2d_array tint_symbol_2 [[texture(0)]], sampler tint_symbol_3 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl index 07485ae20b..e076c6e877 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_011a8f(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(), 1, 1.0f, level(0), int2()); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(0.0f), 1, 1.0f, level(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_011a8f(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl index afa4f782f8..822c2353bd 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_1116ed(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(), 1, 1.0f, level(0)); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(0.0f), 1, 1.0f, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_1116ed(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl index 3c3babe1a8..7dffcdd0f4 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_1568e3(depthcube tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float3(), 1.0f, level(0)); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float3(0.0f), 1.0f, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_1568e3(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl index 0757bfe25d..cc8b9a7815 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_2ad2b1(depth2d tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(), 1.0f, level(0)); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(0.0f), 1.0f, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_2ad2b1(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl index a2db2a966c..8f6c17ea46 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_4cf3a2(depthcube_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float3(), 1, 1.0f, level(0)); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float3(0.0f), 1, 1.0f, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_4cf3a2(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl index c72e97bfb3..d63940c9b0 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleCompareLevel_f8121c(depth2d tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(), 1.0f, level(0), int2()); + float res = tint_symbol_1.sample_compare(tint_symbol_2, float2(0.0f), 1.0f, level(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureSampleCompareLevel_f8121c(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl index 611f192f40..e441de51be 100644 --- a/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_21402b(texture3d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), gradient3d(float3(), float3())); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), gradient3d(float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_21402b(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl index cb35a40226..8b790203e9 100644 --- a/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_2ecd8f(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, gradient2d(float2(), float2())); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, gradient2d(float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_2ecd8f(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl index 984039bb85..1676dd3a8f 100644 --- a/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_468f88(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), gradient2d(float2(), float2()), int2()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), gradient2d(float2(0.0f), float2(0.0f)), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_468f88(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl index fdf14137f5..902ba71b6b 100644 --- a/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_521263(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), gradient2d(float2(), float2())); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), gradient2d(float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_521263(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl index e76967f74d..397cc5f3c1 100644 --- a/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_5312f4(texturecube tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), gradientcube(float3(), float3())); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), gradientcube(float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_5312f4(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl index c4756df015..6c57c11760 100644 --- a/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_872f00(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, gradient2d(float2(), float2()), int2()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, gradient2d(float2(0.0f), float2(0.0f)), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_872f00(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl index 0df18f03b0..fcee1d0eb3 100644 --- a/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_e383db(texturecube_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), 1, gradientcube(float3(), float3())); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), 1, gradientcube(float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_e383db(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl index 8c31911f3c..4b6c3aa43c 100644 --- a/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleGrad_e9a2f7(texture3d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), gradient3d(float3(), float3()), int3()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), gradient3d(float3(0.0f), float3(0.0f)), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_3, sampler tint_symbol_4) { textureSampleGrad_e9a2f7(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl index a8efa2b92d..a414d5244c 100644 --- a/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_02be59(depth2d tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float2(), level(0)); + float res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_02be59(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl index 5250bb5b44..8d56eb601b 100644 --- a/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_0bdd9a(texturecube_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), 1, level(1.0f)); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), 1, level(1.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_0bdd9a(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl index d16918218e..3ea7400f2b 100644 --- a/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_1b0291(depthcube tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float3(), level(0)); + float res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_1b0291(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl index e792a86a11..9f8510d59a 100644 --- a/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_1bf73e(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, level(0)); + float res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_1bf73e(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl index 81fb6d9992..92ace1e5ec 100644 --- a/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_302be4(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, level(1.0f)); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, level(1.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_302be4(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl index 932bcb38b8..aad3dda42c 100644 --- a/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_47daa4(depth2d tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float2(), level(0), int2()); + float res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), level(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_47daa4(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl index 508a589e31..ef3cb4c0ef 100644 --- a/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_690d95(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), level(1.0f), int2()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), level(1.0f), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_690d95(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl index abe1cccfd6..57d9745388 100644 --- a/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.msl @@ -42,7 +42,7 @@ float4 textureSampleExternal(texture2d plane0, texture2d< } void textureSampleLevel_979816(texture2d tint_symbol_1, texture2d tint_symbol_2, sampler tint_symbol_3, const constant ExternalTextureParams* const tint_symbol_4) { - float4 res = textureSampleExternal(tint_symbol_1, tint_symbol_2, tint_symbol_3, float2(), *(tint_symbol_4)); + float4 res = textureSampleExternal(tint_symbol_1, tint_symbol_2, tint_symbol_3, float2(0.0f), *(tint_symbol_4)); } struct tint_symbol { @@ -51,7 +51,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_5, texture2d tint_symbol_6, sampler tint_symbol_7, const constant ExternalTextureParams* const tint_symbol_8) { textureSampleLevel_979816(tint_symbol_5, tint_symbol_6, tint_symbol_7, tint_symbol_8); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_9 [[texture(0)]], texture2d tint_symbol_10 [[texture(1)]], sampler tint_symbol_11 [[sampler(0)]], const constant ExternalTextureParams* tint_symbol_12 [[buffer(2)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl index b1f5d43ba7..6559dc0d5c 100644 --- a/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_9bd37b(texture3d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), level(1.0f), int3()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), level(1.0f), int3(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_9bd37b(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl index 4fc39a8aae..f81889a5dd 100644 --- a/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_a4af26(texture2d_array tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, level(1.0f), int2()); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, level(1.0f), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_a4af26(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl index 6bf2714ca4..26f2cb2781 100644 --- a/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_abfcc0(texture3d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), level(1.0f)); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), level(1.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_abfcc0(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl index 43f1b2b126..483402a34e 100644 --- a/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_ae5e39(depthcube_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float3(), 1, level(0)); + float res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), 1, level(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depthcube_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_ae5e39(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depthcube_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl index 411b77e098..3bf4756242 100644 --- a/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_ba93b3(depth2d_array tint_symbol_1, sampler tint_symbol_2) { - float res = tint_symbol_1.sample(tint_symbol_2, float2(), 1, level(0), int2()); + float res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), 1, level(0), int2(0)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(depth2d_array tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_ba93b3(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(depth2d_array tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl index 0dccab6296..d6a2800256 100644 --- a/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_c32df7(texturecube tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float3(), level(1.0f)); + float4 res = tint_symbol_1.sample(tint_symbol_2, float3(0.0f), level(1.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texturecube tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_c32df7(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texturecube tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl b/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl index 804b0eb85b..a24cb0f08f 100644 --- a/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureSampleLevel_c6aca6(texture2d tint_symbol_1, sampler tint_symbol_2) { - float4 res = tint_symbol_1.sample(tint_symbol_2, float2(), level(1.0f)); + float4 res = tint_symbol_1.sample(tint_symbol_2, float2(0.0f), level(1.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_3, sampler tint_symbol_4) { textureSampleLevel_c6aca6(tint_symbol_3, tint_symbol_4); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_5 [[texture(0)]], sampler tint_symbol_6 [[sampler(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.msl index 96f17cc685..3a48638c93 100644 --- a/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_05ce15(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_05ce15(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.msl index 7e40f3e340..06feb27cf8 100644 --- a/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_064c7f(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_064c7f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/068641.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/068641.wgsl.expected.msl index dc1bdc8860..1d3f94f71e 100644 --- a/test/tint/builtins/gen/textureStore/068641.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/068641.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_068641(texture3d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint3(int3())); + tint_symbol_1.write(uint4(0u), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_068641(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.msl index 74b0941fa4..dfe2b65849 100644 --- a/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_0af6b5(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_0af6b5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.msl index 408f6948dc..64d849e1c7 100644 --- a/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_0c3dff(texture2d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2())); + tint_symbol_1.write(uint4(0u), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_0c3dff(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/102722.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/102722.wgsl.expected.msl index 5846677897..c4a5d5a5e8 100644 --- a/test/tint/builtins/gen/textureStore/102722.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/102722.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_102722(texture1d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint(1)); + tint_symbol_1.write(uint4(0u), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_102722(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.msl index abc4ff09e6..c05a7e5254 100644 --- a/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_1bbd08(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_1bbd08(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.msl index 2f25bbfa7b..a17b971cc5 100644 --- a/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_1c02e7(texture2d_array tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2()), 1); + tint_symbol_1.write(int4(0), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_1c02e7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.msl index 41c9ba061f..4bf37e188a 100644 --- a/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_22d955(texture2d_array tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2()), 1); + tint_symbol_1.write(uint4(0u), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_22d955(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.msl index b016d7fa02..9b32850462 100644 --- a/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_26bf70(texture2d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2())); + tint_symbol_1.write(uint4(0u), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_26bf70(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.msl index 4c315532b3..0fc2e68278 100644 --- a/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_2796b4(texture3d tint_symbol_1) { - tint_symbol_1.write(int4(), uint3(int3())); + tint_symbol_1.write(int4(0), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_2796b4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl index 5fb901be62..dc2cb995d3 100644 --- a/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_2ac6c7(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_2ac6c7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl index 52eff0b1a3..015e052c30 100644 --- a/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_2eb2a4(texture1d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint(1)); + tint_symbol_1.write(uint4(0u), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_2eb2a4(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl index 3f46f67f3f..e49cb9323f 100644 --- a/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_2ed2a3(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_2ed2a3(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.msl index 21a80b4087..fab9cdc9ef 100644 --- a/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_31745b(texture2d tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2())); + tint_symbol_1.write(int4(0), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_31745b(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.msl index 869f74d9de..f60e099139 100644 --- a/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_32f368(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_32f368(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.msl index aab61d34c6..b79b25e9a7 100644 --- a/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_331aee(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_331aee(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.msl index 7b2b0f17a2..ac1cd5a628 100644 --- a/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_38e8d7(texture2d_array tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2()), 1); + tint_symbol_1.write(uint4(0u), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_38e8d7(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.msl index 6dc9c94aa0..b40ea4b89b 100644 --- a/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_3a52ac(texture2d_array tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2()), 1); + tint_symbol_1.write(int4(0), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_3a52ac(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl index d3dcf83376..8cd1fce5b1 100644 --- a/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_3bb7a1(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_3bb7a1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.msl index 63deae2576..b08f7bbec9 100644 --- a/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_3bec15(texture1d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint(1)); + tint_symbol_1.write(uint4(0u), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_3bec15(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.msl index ddd88f9f31..4d5772e40f 100644 --- a/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_441ba8(texture3d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint3(int3())); + tint_symbol_1.write(uint4(0u), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_441ba8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.msl index 73b2de8c04..f3c66c8e2a 100644 --- a/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_4fc057(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_4fc057(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl index a1a8470722..dde59b81dc 100644 --- a/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_5a2f8f(texture1d tint_symbol_1) { - tint_symbol_1.write(int4(), uint(1)); + tint_symbol_1.write(int4(0), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_5a2f8f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.msl index 38bf10c6f7..bc1e09a691 100644 --- a/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_60975f(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_60975f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.msl index 592b20f09a..9fddf06672 100644 --- a/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_682fd6(texture2d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2())); + tint_symbol_1.write(uint4(0u), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_682fd6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.msl index 7f987b232a..a92d69acdd 100644 --- a/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_6b75c3(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_6b75c3(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.msl index 5db31c8e0c..b73343e5d3 100644 --- a/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_6b80d2(texture1d tint_symbol_1) { - tint_symbol_1.write(int4(), uint(1)); + tint_symbol_1.write(int4(0), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_6b80d2(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.msl index b086eed446..8a1d6102a0 100644 --- a/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_6cff2e(texture2d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2())); + tint_symbol_1.write(uint4(0u), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_6cff2e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.msl index a83fda74df..49e92c6810 100644 --- a/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_6da692(texture2d_array tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2()), 1); + tint_symbol_1.write(uint4(0u), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_6da692(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/731349.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/731349.wgsl.expected.msl index 2346b59a83..7d335e8646 100644 --- a/test/tint/builtins/gen/textureStore/731349.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/731349.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_731349(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_731349(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.msl index 3c4ff0b185..74e6cb2e5b 100644 --- a/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_752da6(texture2d tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2())); + tint_symbol_1.write(int4(0), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_752da6(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.msl index 051bd4e07b..b5866746b7 100644 --- a/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_77c0ae(texture2d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2())); + tint_symbol_1.write(uint4(0u), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_77c0ae(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.msl index 00250f3235..912d7c6124 100644 --- a/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_7cec8d(texture2d_array tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2()), 1); + tint_symbol_1.write(int4(0), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_7cec8d(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.msl index 8b11e389dc..979f11c0bf 100644 --- a/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_7f7fae(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_7f7fae(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/804942.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/804942.wgsl.expected.msl index df25a3242a..f96343905c 100644 --- a/test/tint/builtins/gen/textureStore/804942.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/804942.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_804942(texture2d tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2())); + tint_symbol_1.write(int4(0), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_804942(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.msl index bd51b5ae12..2dfb818f79 100644 --- a/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_805dae(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_805dae(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.msl index f0be4b0be3..da45ded04d 100644 --- a/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_83bcc1(texture1d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint(1)); + tint_symbol_1.write(uint4(0u), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_83bcc1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/872747.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/872747.wgsl.expected.msl index 916a2be74c..2c0461e1d7 100644 --- a/test/tint/builtins/gen/textureStore/872747.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/872747.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_872747(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_872747(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.msl index b7b344bc02..3dcab98640 100644 --- a/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_8e0479(texture2d_array tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2()), 1); + tint_symbol_1.write(uint4(0u), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_8e0479(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.msl index 097f768caa..0e8dc88b67 100644 --- a/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_8f71a1(texture3d tint_symbol_1) { - tint_symbol_1.write(int4(), uint3(int3())); + tint_symbol_1.write(int4(0), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_8f71a1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/969534.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/969534.wgsl.expected.msl index 9792266077..c994c241da 100644 --- a/test/tint/builtins/gen/textureStore/969534.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/969534.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_969534(texture1d tint_symbol_1) { - tint_symbol_1.write(int4(), uint(1)); + tint_symbol_1.write(int4(0), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_969534(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl index 7977030aad..e91a11afd8 100644 --- a/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_9a3ecc(texture3d tint_symbol_1) { - tint_symbol_1.write(int4(), uint3(int3())); + tint_symbol_1.write(int4(0), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_9a3ecc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl index 6e704caace..946884618b 100644 --- a/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_9d9cd5(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_9d9cd5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl index 9bdfb7a314..96998a48e6 100644 --- a/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_9e3ec5(texture2d tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2())); + tint_symbol_1.write(int4(0), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_9e3ec5(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.msl index f61229ed22..a72b97ca2a 100644 --- a/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_ac67aa(texture3d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint3(int3())); + tint_symbol_1.write(uint4(0u), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_ac67aa(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.msl index a28cf356c7..270213d33f 100644 --- a/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_b706b1(texture3d tint_symbol_1) { - tint_symbol_1.write(int4(), uint3(int3())); + tint_symbol_1.write(int4(0), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_b706b1(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl index 8eff861150..1d091aba00 100644 --- a/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_bbcb7f(texture2d tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2())); + tint_symbol_1.write(int4(0), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_bbcb7f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.msl index 5ed9b5f0aa..acb6216e9f 100644 --- a/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_be6e30(texture2d tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2())); + tint_symbol_1.write(float4(0.0f), uint2(int2(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d tint_symbol_2) { textureStore_be6e30(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.msl index d722999e9c..3d8210b9e0 100644 --- a/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_bf775c(texture1d tint_symbol_1) { - tint_symbol_1.write(int4(), uint(1)); + tint_symbol_1.write(int4(0), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_bf775c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.msl index 2ed8fe7d4d..5421957218 100644 --- a/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_c5af1e(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_c5af1e(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.msl index cea5b8e7a4..bbe2282da9 100644 --- a/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_c863be(texture2d_array tint_symbol_1) { - tint_symbol_1.write(float4(), uint2(int2()), 1); + tint_symbol_1.write(float4(0.0f), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_c863be(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.msl index 44ed0f4d8f..c564d6d96b 100644 --- a/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_d73b5c(texture1d tint_symbol_1) { - tint_symbol_1.write(int4(), uint(1)); + tint_symbol_1.write(int4(0), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_d73b5c(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.msl index 13e19b40a8..15ec0e76af 100644 --- a/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_dd7d81(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_dd7d81(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.msl index bf69fde29d..45be7606f0 100644 --- a/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_dde364(texture2d_array tint_symbol_1) { - tint_symbol_1.write(uint4(), uint2(int2()), 1); + tint_symbol_1.write(uint4(0u), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_dde364(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.msl index b69dd1b20f..3bea09b6ed 100644 --- a/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_e885e8(texture1d tint_symbol_1) { - tint_symbol_1.write(float4(), uint(1)); + tint_symbol_1.write(float4(0.0f), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_e885e8(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.msl index 3265301a11..bac111e1e3 100644 --- a/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_eb702f(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_eb702f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.msl index f5956b7486..038f1f45e5 100644 --- a/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_eb78b9(texture3d tint_symbol_1) { - tint_symbol_1.write(int4(), uint3(int3())); + tint_symbol_1.write(int4(0), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_eb78b9(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.msl index e2577eabbe..46568a969f 100644 --- a/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_ee6acc(texture3d tint_symbol_1) { - tint_symbol_1.write(float4(), uint3(int3())); + tint_symbol_1.write(float4(0.0f), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_ee6acc(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl index 28b42e68ea..a9ba91d14b 100644 --- a/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_ef9f2f(texture3d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint3(int3())); + tint_symbol_1.write(uint4(0u), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_ef9f2f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.msl index 35885fa586..7e0be797cb 100644 --- a/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_f8dead(texture3d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint3(int3())); + tint_symbol_1.write(uint4(0u), uint3(int3(0))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture3d tint_symbol_2) { textureStore_f8dead(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture3d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.msl index 04178a6047..8eb8d23ef6 100644 --- a/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_f9be83(texture2d_array tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2()), 1); + tint_symbol_1.write(int4(0), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_f9be83(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl index 0522eb949b..f2e593c171 100644 --- a/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_fb9a8f(texture1d tint_symbol_1) { - tint_symbol_1.write(uint4(), uint(1)); + tint_symbol_1.write(uint4(0u), uint(1)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture1d tint_symbol_2) { textureStore_fb9a8f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture1d tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.msl b/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.msl index 3b9a0e69d8..4d94d4fd30 100644 --- a/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.msl +++ b/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureStore_fbf53f(texture2d_array tint_symbol_1) { - tint_symbol_1.write(int4(), uint2(int2()), 1); + tint_symbol_1.write(int4(0), uint2(int2(0)), 1); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner(texture2d_array tint_symbol_2) { textureStore_fbf53f(tint_symbol_2); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main(texture2d_array tint_symbol_3 [[texture(0)]]) { diff --git a/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.msl b/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.msl index bd0aea83d5..80f1d9a4ba 100644 --- a/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_2585cd() { - float3x4 res = transpose(float4x3()); + float3x4 res = transpose(float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_2585cd(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/31d679.wgsl.expected.msl b/test/tint/builtins/gen/transpose/31d679.wgsl.expected.msl index 37161be200..0460811d83 100644 --- a/test/tint/builtins/gen/transpose/31d679.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/31d679.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_31d679() { - float2x2 res = transpose(float2x2()); + float2x2 res = transpose(float2x2(float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_31d679(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.msl b/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.msl index 393d1c2dd3..0d19966102 100644 --- a/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_31e37e() { - float2x4 res = transpose(float4x2()); + float2x4 res = transpose(float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_31e37e(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.msl b/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.msl index 6f191fcac0..8dc8a5fad8 100644 --- a/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_4ce359() { - float4x2 res = transpose(float2x4()); + float4x2 res = transpose(float2x4(float4(0.0f), float4(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_4ce359(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.msl b/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.msl index 758e4046b4..e1829c85bf 100644 --- a/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_4dc9a1() { - float3x2 res = transpose(float2x3()); + float3x2 res = transpose(float2x3(float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_4dc9a1(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/854336.wgsl.expected.msl b/test/tint/builtins/gen/transpose/854336.wgsl.expected.msl index f541c74fc9..1b157b3ad8 100644 --- a/test/tint/builtins/gen/transpose/854336.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/854336.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_854336() { - float3x3 res = transpose(float3x3()); + float3x3 res = transpose(float3x3(float3(0.0f), float3(0.0f), float3(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_854336(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.msl b/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.msl index b1c7ea42d1..86ea249e54 100644 --- a/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_c1b600() { - float4x4 res = transpose(float4x4()); + float4x4 res = transpose(float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_c1b600(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.msl b/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.msl index c0fe7fe9f9..560f43efc5 100644 --- a/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_d8f8ba() { - float4x3 res = transpose(float3x4()); + float4x3 res = transpose(float3x4(float4(0.0f), float4(0.0f), float4(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_d8f8ba(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.msl b/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.msl index 3b4dfac436..f7d1ff3dde 100644 --- a/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.msl +++ b/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void transpose_ed4bdc() { - float2x3 res = transpose(float3x2()); + float2x3 res = transpose(float3x2(float2(0.0f), float2(0.0f), float2(0.0f))); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_ed4bdc(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/562d05.wgsl.expected.msl b/test/tint/builtins/gen/trunc/562d05.wgsl.expected.msl index 491d58729a..175e9c19f3 100644 --- a/test/tint/builtins/gen/trunc/562d05.wgsl.expected.msl +++ b/test/tint/builtins/gen/trunc/562d05.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void trunc_562d05() { - float3 res = trunc(float3()); + float3 res = trunc(float3(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_562d05(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.msl b/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.msl index 3e8d78d6f1..b2791de01e 100644 --- a/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.msl +++ b/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void trunc_e183aa() { - float4 res = trunc(float4()); + float4 res = trunc(float4(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_e183aa(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.msl b/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.msl index 950182f686..3498d6e681 100644 --- a/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.msl +++ b/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_eb83df(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.msl b/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.msl index aa5a099944..a79f8f2f8e 100644 --- a/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.msl +++ b/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void trunc_f370d3() { - float2 res = trunc(float2()); + float2 res = trunc(float2(0.0f)); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_f370d3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl b/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl index ba41cd61d7..0a2dcfc9f7 100644 --- a/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl +++ b/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16float_32a5cf(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl b/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl index 03a4ab63d1..d9eb4d493f 100644 --- a/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl +++ b/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16snorm_b4aea6(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl b/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl index fda9e15242..352921c7ef 100644 --- a/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl +++ b/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16unorm_7699c0(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl b/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl index 9235de24ba..35b8035e07 100644 --- a/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl +++ b/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack4x8snorm_523fb3(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl b/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl index cc5cd0a170..0fccbcf433 100644 --- a/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl +++ b/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.msl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack4x8unorm_750c74(); - return float4(); + return float4(0.0f); } vertex tint_symbol vertex_main() { diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.msl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.msl index af5112b81f..f13a3b7b29 100644 --- a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.msl +++ b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.msl @@ -8,8 +8,8 @@ int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { } void f_1() { - int3 v = int3(); - int3 n = int3(); + int3 v = int3(0); + int3 n = int3(0); uint offset_1 = 0u; uint count = 0u; int3 const x_18 = v; diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.msl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.msl index 62eb987e7e..c85887169b 100644 --- a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.msl +++ b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.msl @@ -8,8 +8,8 @@ uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { } void f_1() { - uint3 v = uint3(); - uint3 n = uint3(); + uint3 v = uint3(0u); + uint3 n = uint3(0u); uint offset_1 = 0u; uint count = 0u; uint3 const x_17 = v; diff --git a/test/tint/builtins/repeated_use.wgsl.expected.msl b/test/tint/builtins/repeated_use.wgsl.expected.msl index cdf0372264..8be006ae95 100644 --- a/test/tint/builtins/repeated_use.wgsl.expected.msl +++ b/test/tint/builtins/repeated_use.wgsl.expected.msl @@ -19,13 +19,13 @@ float tint_degrees_3(float param_0) { } kernel void tint_symbol() { - tint_degrees(float4()); + tint_degrees(float4(0.0f)); tint_degrees(float4(1.0f)); tint_degrees(float4(1.0f, 2.0f, 3.0f, 4.0f)); - tint_degrees_1(float3()); + tint_degrees_1(float3(0.0f)); tint_degrees_1(float3(1.0f)); tint_degrees_1(float3(1.0f, 2.0f, 3.0f)); - tint_degrees_2(float2()); + tint_degrees_2(float2(0.0f)); tint_degrees_2(float2(1.0f)); tint_degrees_2(float2(1.0f, 2.0f)); tint_degrees_3(1.0f); diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.msl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.msl index 670bd019f3..888f685a86 100644 --- a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.msl +++ b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void textureDimensions_f60bdb(depth2d_ms tint_symbol_5) { - int2 res = int2(); + int2 res = int2(0); int2 const x_16 = int2(int2(tint_symbol_5.get_width(), tint_symbol_5.get_height())); res = x_16; return; @@ -15,7 +15,7 @@ void tint_symbol_2(float4 tint_symbol, thread float4* const tint_symbol_6) { void vertex_main_1(depth2d_ms tint_symbol_7, thread float4* const tint_symbol_8) { textureDimensions_f60bdb(tint_symbol_7); - tint_symbol_2(float4(), tint_symbol_8); + tint_symbol_2(float4(0.0f), tint_symbol_8); return; } @@ -34,7 +34,7 @@ vertex_main_out vertex_main_inner(depth2d_ms tint_symbol_9, } vertex tint_symbol_3 vertex_main(depth2d_ms tint_symbol_11 [[texture(0)]]) { - thread float4 tint_symbol_12 = float4(); + thread float4 tint_symbol_12 = float4(0.0f); vertex_main_out const inner_result = vertex_main_inner(tint_symbol_11, &(tint_symbol_12)); tint_symbol_3 wrapper_result = {}; wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.msl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.msl index 1f71e85b58..f085127191 100644 --- a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::w); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::w); return; } diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.msl b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.msl index 588e727b40..4aef266cbe 100644 --- a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::z); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::z); return; } diff --git a/test/tint/builtins/textureGather/f32/green.wgsl.expected.msl b/test/tint/builtins/textureGather/f32/green.wgsl.expected.msl index c672905541..b3b3b4aa7f 100644 --- a/test/tint/builtins/textureGather/f32/green.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/f32/green.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); return; } diff --git a/test/tint/builtins/textureGather/f32/red.wgsl.expected.msl b/test/tint/builtins/textureGather/f32/red.wgsl.expected.msl index 78a9e9cebe..27d3c20c8a 100644 --- a/test/tint/builtins/textureGather/f32/red.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/f32/red.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - float4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::x); + float4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::x); return; } diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.msl b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.msl index 49861cfb9a..a52b2be425 100644 --- a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::w); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::w); return; } diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.msl b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.msl index f00ee18957..2401cf94ab 100644 --- a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::z); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::z); return; } diff --git a/test/tint/builtins/textureGather/i32/green.wgsl.expected.msl b/test/tint/builtins/textureGather/i32/green.wgsl.expected.msl index 277e4e15d7..f039daf4bf 100644 --- a/test/tint/builtins/textureGather/i32/green.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/i32/green.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); return; } diff --git a/test/tint/builtins/textureGather/i32/red.wgsl.expected.msl b/test/tint/builtins/textureGather/i32/red.wgsl.expected.msl index 1fe688c49a..da82fc4029 100644 --- a/test/tint/builtins/textureGather/i32/red.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/i32/red.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - int4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::x); + int4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::x); return; } diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.msl b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.msl index fc990a5f57..5afd9afed4 100644 --- a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::w); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::w); return; } diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.msl b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.msl index 55a95fc36d..b445375f93 100644 --- a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::z); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::z); return; } diff --git a/test/tint/builtins/textureGather/u32/green.wgsl.expected.msl b/test/tint/builtins/textureGather/u32/green.wgsl.expected.msl index 41be791153..1e36e58a77 100644 --- a/test/tint/builtins/textureGather/u32/green.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/u32/green.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::y); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::y); return; } diff --git a/test/tint/builtins/textureGather/u32/red.wgsl.expected.msl b/test/tint/builtins/textureGather/u32/red.wgsl.expected.msl index b16b3679da..d71627df31 100644 --- a/test/tint/builtins/textureGather/u32/red.wgsl.expected.msl +++ b/test/tint/builtins/textureGather/u32/red.wgsl.expected.msl @@ -2,7 +2,7 @@ using namespace metal; fragment void tint_symbol(texture2d tint_symbol_1 [[texture(0)]], sampler tint_symbol_2 [[sampler(0)]]) { - uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(), int2(0), component::x); + uint4 res = tint_symbol_1.gather(tint_symbol_2, float2(0.0f), int2(0), component::x); return; } diff --git a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.msl b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.msl index 072549da16..4fdc4b60b9 100644 --- a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.msl +++ b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void textureLoad_6273b1(depth2d_ms tint_symbol_5) { float res = 0.0f; - float4 const x_17 = float4(tint_symbol_5.read(uint2(int2()), 1), 0.0f, 0.0f, 0.0f); + float4 const x_17 = float4(tint_symbol_5.read(uint2(int2(0)), 1), 0.0f, 0.0f, 0.0f); res = x_17[0]; return; } @@ -15,7 +15,7 @@ void tint_symbol_2(float4 tint_symbol, thread float4* const tint_symbol_6) { void vertex_main_1(depth2d_ms tint_symbol_7, thread float4* const tint_symbol_8) { textureLoad_6273b1(tint_symbol_7); - tint_symbol_2(float4(), tint_symbol_8); + tint_symbol_2(float4(0.0f), tint_symbol_8); return; } @@ -34,7 +34,7 @@ vertex_main_out vertex_main_inner(depth2d_ms tint_symbol_9, } vertex tint_symbol_3 vertex_main(depth2d_ms tint_symbol_11 [[texture(0)]]) { - thread float4 tint_symbol_12 = float4(); + thread float4 tint_symbol_12 = float4(0.0f); vertex_main_out const inner_result = vertex_main_inner(tint_symbol_11, &(tint_symbol_12)); tint_symbol_3 wrapper_result = {}; wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.msl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.msl index c1e9dd6cc1..60899933fa 100644 --- a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.msl +++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.msl @@ -46,7 +46,7 @@ float4 textureLoad2d(texture2d tint_symbol, texture2d tint_symbol_2, texture2d tint_symbol_3, const constant ExternalTextureParams* const tint_symbol_4) { - float4 res = textureLoad2d(tint_symbol_2, tint_symbol_3, *(tint_symbol_4), int2()); + float4 res = textureLoad2d(tint_symbol_2, tint_symbol_3, *(tint_symbol_4), int2(0)); } struct tint_symbol_1 { @@ -55,7 +55,7 @@ struct tint_symbol_1 { float4 vertex_main_inner(texture2d tint_symbol_5, texture2d tint_symbol_6, const constant ExternalTextureParams* const tint_symbol_7) { doTextureLoad(tint_symbol_5, tint_symbol_6, tint_symbol_7); - return float4(); + return float4(0.0f); } vertex tint_symbol_1 vertex_main(texture2d tint_symbol_8 [[texture(0)]], texture2d tint_symbol_9 [[texture(1)]], const constant ExternalTextureParams* tint_symbol_10 [[buffer(2)]]) { diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.msl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.msl index cee9f8ef51..eda6fa124d 100644 --- a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.msl +++ b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.msl @@ -6,7 +6,7 @@ int4 textureLoad2d(texture2d tint_symbol, int2 coords, int } void doTextureLoad(texture2d tint_symbol_2) { - int4 res = textureLoad2d(tint_symbol_2, int2(), 0); + int4 res = textureLoad2d(tint_symbol_2, int2(0), 0); } struct tint_symbol_1 { @@ -15,7 +15,7 @@ struct tint_symbol_1 { float4 vertex_main_inner(texture2d tint_symbol_3) { doTextureLoad(tint_symbol_3); - return float4(); + return float4(0.0f); } vertex tint_symbol_1 vertex_main(texture2d tint_symbol_4 [[texture(0)]]) { diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.msl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.msl index 8a92713589..cd3bb3bdf5 100644 --- a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.msl +++ b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.msl @@ -15,7 +15,7 @@ void tint_symbol_2(float4 tint_symbol, thread float4* const tint_symbol_6) { void vertex_main_1(depth2d_ms tint_symbol_7, thread float4* const tint_symbol_8) { textureNumSamples_a3c8a0(tint_symbol_7); - tint_symbol_2(float4(), tint_symbol_8); + tint_symbol_2(float4(0.0f), tint_symbol_8); return; } @@ -34,7 +34,7 @@ vertex_main_out vertex_main_inner(depth2d_ms tint_symbol_9, } vertex tint_symbol_3 vertex_main(depth2d_ms tint_symbol_11 [[texture(0)]]) { - thread float4 tint_symbol_12 = float4(); + thread float4 tint_symbol_12 = float4(0.0f); vertex_main_out const inner_result = vertex_main_inner(tint_symbol_11, &(tint_symbol_12)); tint_symbol_3 wrapper_result = {}; wrapper_result.tint_symbol_1_1 = inner_result.tint_symbol_1_1; diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.msl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.msl index 4c6ced5b3a..ff6e1c7b17 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3x3 const a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); float3x3 const b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - float3x3 const r = (a + b); + float3x3 const r = (float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)) + float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f))); return; } diff --git a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.msl index bcb61ac582..18b64e6d3f 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 2.0f; - float const r = (a + b); + float const r = (1.0f + 2.0f); return; } diff --git a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.msl index e77d38fefe..470e036a02 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = as_type((as_type(a) + as_type(b))); + int const r = as_type((as_type(1) + as_type(2))); return; } diff --git a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.msl index ca9e441efe..6ffd8433d3 100644 --- a/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a + b); + uint const r = (1u + 2u); return; } diff --git a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.msl index aad4aba014..3ac98f92bf 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(1.0f, 2.0f, 3.0f); - float3 const r = (a + b); + float3 const r = (4.0f + float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.msl index 46f1909da0..d9db51ed9c 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); - int3 const r = as_type((as_type(a) + as_type(b))); + int3 const r = as_type((as_type(4) + as_type(int3(1, 2, 3)))); return; } diff --git a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.msl index 71345d51f3..c402d866f3 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(1u, 2u, 3u); - uint3 const r = (a + b); + uint3 const r = (4u + uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.msl index e1560631f9..aeaadc882d 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 4.0f; - float3 const r = (a + b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) + 4.0f); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.msl index 89306cc895..b747cf5972 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 4; - int3 const r = as_type((as_type(a) + as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) + as_type(4))); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.msl index 830bcddbbe..55c174f353 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 4u; - uint3 const r = (a + b); + uint3 const r = (uint3(1u, 2u, 3u) + 4u); return; } diff --git a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.msl index 011652a019..2048839745 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(4.0f, 5.0f, 6.0f); - float3 const r = (a + b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) + float3(4.0f, 5.0f, 6.0f)); return; } diff --git a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.msl index 54d88c782f..528b091ceb 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = as_type((as_type(a) + as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) + as_type(int3(4, 5, 6)))); return; } diff --git a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.msl index 5299d8a795..bd0cb07f14 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a + b); + uint3 const r = (uint3(1u, 2u, 3u) + uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.msl index 48bc530e57..8fa2a8df0a 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/bool.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { bool const a = true; bool const b = false; - bool const r = bool(a & b); + bool const r = bool(true & false); return; } diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.msl index bb30c81312..2b266badc0 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = (a & b); + int const r = (1 & 2); return; } diff --git a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.msl index b3ca220c3a..1b8256452e 100644 --- a/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a & b); + uint const r = (1u & 2u); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.msl index f8eed1d343..c5bc9d6875 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { bool3 const a = bool3(true, true, false); bool3 const b = bool3(true, false, true); - bool3 const r = (a & b); + bool3 const r = (bool3(true, true, false) & bool3(true, false, true)); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.msl index 22dbd4974b..70394ce8a5 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = (a & b); + int3 const r = (int3(1, 2, 3) & int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.msl index f0aefd1781..db3f35c1cd 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a & b); + uint3 const r = (uint3(1u, 2u, 3u) & uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.msl index b3bbf94ba9..8045ee2d09 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = (a | b); + int const r = (1 | 2); return; } diff --git a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.msl index ca1851493c..fc0ff27260 100644 --- a/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-or/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a | b); + uint const r = (1u | 2u); return; } diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.msl index 5096a8c7f9..372dd5eed9 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = (a | b); + int3 const r = (int3(1, 2, 3) | int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.msl index f2f90d0c3f..dc5593b7a8 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a | b); + uint3 const r = (uint3(1u, 2u, 3u) | uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.msl index 62360a8c33..1907ac1fe9 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = (a ^ b); + int const r = (1 ^ 2); return; } diff --git a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.msl index 8093c0c109..109dbdd532 100644 --- a/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-xor/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a ^ b); + uint const r = (1u ^ 2u); return; } diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.msl index 82c280be27..709f2094d1 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = (a ^ b); + int3 const r = (int3(1, 2, 3) ^ int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.msl index d77b0b5530..13bf9bb4c2 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a ^ b); + uint3 const r = (uint3(1u, 2u, 3u) ^ uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.msl index 5268a5ed8f..eac6559c54 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 2.0f; - float const r = (a / b); + float const r = (1.0f / 2.0f); return; } diff --git a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.msl index 17d17098e5..baa894f541 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = (a / b); + int const r = (1 / 2); return; } diff --git a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.msl index fa9d9e76e7..729468b139 100644 --- a/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a / b); + uint const r = (1u / 2u); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.msl index 1fed91b70b..17e61b0862 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(1.0f, 2.0f, 3.0f); - float3 const r = (a / b); + float3 const r = (4.0f / float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.msl index 41242231ca..06f9014b52 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); - int3 const r = (a / b); + int3 const r = (4 / int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.msl index aa59c35cfc..766be09f43 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(1u, 2u, 3u); - uint3 const r = (a / b); + uint3 const r = (4u / uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.msl index 8c1ca1626a..9561edcd30 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 4.0f; - float3 const r = (a / b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) / 4.0f); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.msl index 73678c8c36..ab13b2bb16 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 4; - int3 const r = (a / b); + int3 const r = (int3(1, 2, 3) / 4); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.msl index 749829bbc0..0c3c20e0e7 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 4u; - uint3 const r = (a / b); + uint3 const r = (uint3(1u, 2u, 3u) / 4u); return; } diff --git a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.msl index a2c6698a94..e17caddc37 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(4.0f, 5.0f, 6.0f); - float3 const r = (a / b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) / float3(4.0f, 5.0f, 6.0f)); return; } diff --git a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.msl index bb0f942bf9..811a941b8c 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = (a / b); + int3 const r = (int3(1, 2, 3) / int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.msl index bfddf5a686..737182baac 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a / b); + uint3 const r = (uint3(1u, 2u, 3u) / uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl index b0953f8d8a..2677a3f151 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 0.0f; - float const r = (a / b); + float const r = (1.0f / 0.0f); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl index 0923684eb6..c3a4d3d9b0 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 0; - int const r = (a / b); + int const r = (1 / 0); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl index 2c1b78a3b3..f1389ec420 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 0u; - uint const r = (a / b); + uint const r = (1u / 0u); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.msl index e251ea7909..9414c5d198 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(0.0f, 2.0f, 0.0f); - float3 const r = (a / b); + float3 const r = (4.0f / float3(0.0f, 2.0f, 0.0f)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl index 89df256097..9628eae80a 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(0, 2, 0); - int3 const r = (a / b); + int3 const r = (4 / int3(0, 2, 0)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl index eb1c975c99..f2eff5c67b 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(0u, 2u, 0u); - uint3 const r = (a / b); + uint3 const r = (4u / uint3(0u, 2u, 0u)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.msl index 91df91ec9f..4d754def8a 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 0.0f; - float3 const r = (a / b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) / 0.0f); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl index c187dd2cf6..f0343d0d6f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 0; - int3 const r = (a / b); + int3 const r = (int3(1, 2, 3) / 0); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl index 2d342e7ecb..c41c66e950 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 0u; - uint3 const r = (a / b); + uint3 const r = (uint3(1u, 2u, 3u) / 0u); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl index a4765b3da6..d4fb358183 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(0.0f, 5.0f, 0.0f); - float3 const r = (a / b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) / float3(0.0f, 5.0f, 0.0f)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl index 7cf268154e..f3fa90e97f 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(0, 5, 0); - int3 const r = (a / b); + int3 const r = (int3(1, 2, 3) / int3(0, 5, 0)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl index 66ee158e1b..f65cf552d5 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(0u, 5u, 0u); - uint3 const r = (a / b); + uint3 const r = (uint3(1u, 2u, 3u) / uint3(0u, 5u, 0u)); return; } diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.msl index 3c5ec179ee..760ab605a9 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; uint const b = 2u; - int const r = as_type((as_type(a) << b)); + int const r = as_type((as_type(1) << 2u)); return; } diff --git a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.msl index 90ec5fb2ae..4da8214840 100644 --- a/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/left-shift/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a << b); + uint const r = (1u << 2u); return; } diff --git a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.msl b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.msl index f97db25d1b..6ed6ad0346 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); uint3 const b = uint3(4u, 5u, 6u); - int3 const r = as_type((as_type(a) << b)); + int3 const r = as_type((as_type(int3(1, 2, 3)) << uint3(4u, 5u, 6u))); return; } diff --git a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.msl b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.msl index c80e57e6a8..58bf1463e2 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a << b); + uint3 const r = (uint3(1u, 2u, 3u) << uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.msl index a64e982cb1..1039669d09 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 2.0f; - float const r = fmod(a, b); + float const r = fmod(1.0f, 2.0f); return; } diff --git a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.msl index a67d6fed75..558076bbc6 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = (a % b); + int const r = (1 % 2); return; } diff --git a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.msl index 5d4b949e72..2d0ed2d277 100644 --- a/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a % b); + uint const r = (1u % 2u); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.msl index bbcdd8e72b..af65ce9134 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(1.0f, 2.0f, 3.0f); - float3 const r = fmod(a, b); + float3 const r = fmod(4.0f, float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.msl index 533d47785e..7b419c6c96 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); - int3 const r = (a % b); + int3 const r = (4 % int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.msl index a5e85ceaac..7bbe93566e 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(1u, 2u, 3u); - uint3 const r = (a % b); + uint3 const r = (4u % uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.msl index ab3f908f1d..0728300a11 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 4.0f; - float3 const r = fmod(a, b); + float3 const r = fmod(float3(1.0f, 2.0f, 3.0f), 4.0f); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.msl index 8df9cbeada..665f197698 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 4; - int3 const r = (a % b); + int3 const r = (int3(1, 2, 3) % 4); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.msl index 3adb345851..80f68bd736 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 4u; - uint3 const r = (a % b); + uint3 const r = (uint3(1u, 2u, 3u) % 4u); return; } diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.msl index bfb6b5f45b..734da956e7 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(4.0f, 5.0f, 6.0f); - float3 const r = fmod(a, b); + float3 const r = fmod(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f)); return; } diff --git a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.msl index 2bd4b5f005..fcacba7125 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = (a % b); + int3 const r = (int3(1, 2, 3) % int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.msl index 954924cc5c..0797cc3e13 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a % b); + uint3 const r = (uint3(1u, 2u, 3u) % uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl index 25c2f18e89..8956a95316 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 0.0f; - float const r = fmod(a, b); + float const r = fmod(1.0f, 0.0f); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl index 98f1698b74..8beab32bba 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 0; - int const r = (a % b); + int const r = (1 % 0); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl index 456e3b9caa..fae14001f6 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 0u; - uint const r = (a % b); + uint const r = (1u % 0u); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl index 95a93f72b8..21e28ab803 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(0, 2, 0); - int3 const r = (a % b); + int3 const r = (4 % int3(0, 2, 0)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl index 16fa02517d..41099ba6f4 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(0u, 2u, 0u); - uint3 const r = (a % b); + uint3 const r = (4u % uint3(0u, 2u, 0u)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl index cbac4c79f6..6ea6d3609f 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 0; - int3 const r = (a % b); + int3 const r = (int3(1, 2, 3) % 0); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl index 78398ec53e..0f226fa9ce 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 0u; - uint3 const r = (a % b); + uint3 const r = (uint3(1u, 2u, 3u) % 0u); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl index 9506b9c7b2..b23d70edaa 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(0.0f, 5.0f, 0.0f); - float3 const r = fmod(a, b); + float3 const r = fmod(float3(1.0f, 2.0f, 3.0f), float3(0.0f, 5.0f, 0.0f)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl index 7619c9c3eb..27fcbd8856 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(0, 5, 0); - int3 const r = (a % b); + int3 const r = (int3(1, 2, 3) % int3(0, 5, 0)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl index 028424af19..c86bd045da 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(0u, 5u, 0u); - uint3 const r = (a % b); + uint3 const r = (uint3(1u, 2u, 3u) % uint3(0u, 5u, 0u)); return; } diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.msl index b706400e99..4dd7fbcd4e 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float2x4 const a = float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f)); float4x2 const b = float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f)); - float4x4 const r = (a * b); + float4x4 const r = (float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f)) * float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f))); return; } diff --git a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.msl index d51ecb1b33..951ba94e01 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3x3 const a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); float3x3 const b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - float3x3 const r = (a * b); + float3x3 const r = (float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)) * float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f))); return; } diff --git a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.msl index 7b95ad6f5e..df9f1ce16c 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float4x2 const a = float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f)); float2x4 const b = float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f)); - float2x2 const r = (a * b); + float2x2 const r = (float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f)) * float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f))); return; } diff --git a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.msl index daaade6f1d..d0f002110c 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 2.0f; - float const r = (a * b); + float const r = (1.0f * 2.0f); return; } diff --git a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.msl index 7a20eacd7c..eaa1bf242b 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = as_type((as_type(a) * as_type(b))); + int const r = as_type((as_type(1) * as_type(2))); return; } diff --git a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.msl index 7e9738a600..765a95bf72 100644 --- a/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a * b); + uint const r = (1u * 2u); return; } diff --git a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.msl index 5ea434011b..53077f313a 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(1.0f, 2.0f, 3.0f); - float3 const r = (a * b); + float3 const r = (4.0f * float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.msl index 216de39caa..3493e3907b 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); - int3 const r = as_type((as_type(a) * as_type(b))); + int3 const r = as_type((as_type(4) * as_type(int3(1, 2, 3)))); return; } diff --git a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.msl index 6ff7ae2238..c11481ff6e 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(1u, 2u, 3u); - uint3 const r = (a * b); + uint3 const r = (4u * uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.msl index 2779faf0c6..482b041002 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 4.0f; - float3 const r = (a * b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) * 4.0f); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.msl index f320bd7520..06ce9ecf94 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 4; - int3 const r = as_type((as_type(a) * as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) * as_type(4))); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.msl index b0b38b02ef..02b5bed7ca 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 4u; - uint3 const r = (a * b); + uint3 const r = (uint3(1u, 2u, 3u) * 4u); return; } diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.msl index 2c70f56ab7..6c471be932 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(4.0f, 5.0f, 6.0f); - float3 const r = (a * b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) * float3(4.0f, 5.0f, 6.0f)); return; } diff --git a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.msl index f4511b2010..21e97d9c27 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = as_type((as_type(a) * as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) * as_type(int3(4, 5, 6)))); return; } diff --git a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.msl index 3bdad2db92..15d1a52332 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a * b); + uint3 const r = (uint3(1u, 2u, 3u) * uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.msl index 9d9f74941d..a1760a1a5c 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; uint const b = 2u; - int const r = (a >> b); + int const r = (1 >> 2u); return; } diff --git a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.msl index 68036b5ce6..eebabe3f07 100644 --- a/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/right-shift/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a >> b); + uint const r = (1u >> 2u); return; } diff --git a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.msl b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.msl index 5c3fd63d2d..214c5d1286 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); uint3 const b = uint3(4u, 5u, 6u); - int3 const r = (a >> b); + int3 const r = (int3(1, 2, 3) >> uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.msl b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.msl index b5aa9e9f95..bd22b17b64 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a >> b); + uint3 const r = (uint3(1u, 2u, 3u) >> uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.msl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.msl index bcf7b167e9..96937e7acb 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3x3 const a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); float3x3 const b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - float3x3 const r = (a - b); + float3x3 const r = (float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)) - float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f))); return; } diff --git a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.msl index ae19d6c8a1..c3df54d6d1 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; float const b = 2.0f; - float const r = (a - b); + float const r = (1.0f - 2.0f); return; } diff --git a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.msl index 4c25a09764..f36ba7e93c 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 1; int const b = 2; - int const r = as_type((as_type(a) - as_type(b))); + int const r = as_type((as_type(1) - as_type(2))); return; } diff --git a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.msl index d93a0c77be..1855bab98c 100644 --- a/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 1u; uint const b = 2u; - uint const r = (a - b); + uint const r = (1u - 2u); return; } diff --git a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.msl index ce03e023d8..bd32879c5c 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float const a = 4.0f; float3 const b = float3(1.0f, 2.0f, 3.0f); - float3 const r = (a - b); + float3 const r = (4.0f - float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.msl index 8837be0e92..4d922a9ba2 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int const a = 4; int3 const b = int3(1, 2, 3); - int3 const r = as_type((as_type(a) - as_type(b))); + int3 const r = as_type((as_type(4) - as_type(int3(1, 2, 3)))); return; } diff --git a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.msl index ec8b6cfec2..ae3bf8f659 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint const a = 4u; uint3 const b = uint3(1u, 2u, 3u); - uint3 const r = (a - b); + uint3 const r = (4u - uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.msl index 7799789514..1862e3e757 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float const b = 4.0f; - float3 const r = (a - b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) - 4.0f); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.msl index 6149a0c537..c8889bbc12 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int const b = 4; - int3 const r = as_type((as_type(a) - as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) - as_type(4))); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.msl index 7f76d5a54b..dce5245d61 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint const b = 4u; - uint3 const r = (a - b); + uint3 const r = (uint3(1u, 2u, 3u) - 4u); return; } diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.msl index 5ce4e15adc..eff4983b67 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); float3 const b = float3(4.0f, 5.0f, 6.0f); - float3 const r = (a - b); + float3 const r = (float3(1.0f, 2.0f, 3.0f) - float3(4.0f, 5.0f, 6.0f)); return; } diff --git a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.msl index 142bb72d1a..9718f58e33 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); int3 const b = int3(4, 5, 6); - int3 const r = as_type((as_type(a) - as_type(b))); + int3 const r = as_type((as_type(int3(1, 2, 3)) - as_type(int3(4, 5, 6)))); return; } diff --git a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.msl b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.msl index 0f6cc4b64e..bf347cec5b 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); uint3 const b = uint3(4u, 5u, 6u); - uint3 const r = (a - b); + uint3 const r = (uint3(1u, 2u, 3u) - uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.msl index ea55957e97..0acca82626 100644 --- a/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/f32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; - float const b = as_type(a); + float const b = as_type(1.0f); return; } diff --git a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.msl index a2bdd13361..d66d495ba7 100644 --- a/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/f32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; - int const b = as_type(a); + int const b = as_type(1.0f); return; } diff --git a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.msl index f0e4685c88..3b94610667 100644 --- a/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/f32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float const a = 1.0f; - uint const b = as_type(a); + uint const b = as_type(1.0f); return; } diff --git a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.msl index 4368427ee5..9cd878cc90 100644 --- a/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/i32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int const a = 1; - float const b = as_type(a); + float const b = as_type(1); return; } diff --git a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.msl index 782176abed..6e13d479fb 100644 --- a/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/i32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int const a = 1; - int const b = as_type(a); + int const b = as_type(1); return; } diff --git a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.msl index dd82cdd589..d148cfd922 100644 --- a/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/i32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int const a = 1; - uint const b = as_type(a); + uint const b = as_type(1); return; } diff --git a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.msl index f019dafa89..ae848a8522 100644 --- a/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/u32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint const a = 1u; - float const b = as_type(a); + float const b = as_type(1u); return; } diff --git a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.msl index c6bd3b9371..430de90f04 100644 --- a/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/u32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint const a = 1u; - int const b = as_type(a); + int const b = as_type(1u); return; } diff --git a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.msl index 01f346255d..d4ed95546e 100644 --- a/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/scalar/u32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint const a = 1u; - uint const b = as_type(a); + uint const b = as_type(1u); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.msl index 66dbb5577a..cc8ecac245 100644 --- a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); - float3 const b = as_type(a); + float3 const b = as_type(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.msl index 2d64209909..5bbb2b49a3 100644 --- a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); - int3 const b = as_type(a); + int3 const b = as_type(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.msl index b8a22f20db..b6441d4962 100644 --- a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { float3 const a = float3(1.0f, 2.0f, 3.0f); - uint3 const b = as_type(a); + uint3 const b = as_type(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.msl index 14d44ea590..0a13cd7da5 100644 --- a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); - float3 const b = as_type(a); + float3 const b = as_type(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.msl index 3c58a22da1..228aee50b5 100644 --- a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); - int3 const b = as_type(a); + int3 const b = as_type(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.msl index 34f7964e49..efebc6be27 100644 --- a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { int3 const a = int3(1, 2, 3); - uint3 const b = as_type(a); + uint3 const b = as_type(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.msl index 23762902cb..65e969b7d9 100644 --- a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); - float3 const b = as_type(a); + float3 const b = as_type(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.msl index 51c8f921e0..e8b5e5e3e8 100644 --- a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); - int3 const b = as_type(a); + int3 const b = as_type(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.msl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.msl index 43d1c6b18a..5e9386cdce 100644 --- a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.msl +++ b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void f() { uint3 const a = uint3(1u, 2u, 3u); - uint3 const b = as_type(a); + uint3 const b = as_type(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/index/let/let/literal/array.wgsl.expected.msl b/test/tint/expressions/index/let/let/literal/array.wgsl.expected.msl index 57bf97dffe..6a9487f706 100644 --- a/test/tint/expressions/index/let/let/literal/array.wgsl.expected.msl +++ b/test/tint/expressions/index/let/let/literal/array.wgsl.expected.msl @@ -8,6 +8,6 @@ struct tint_array_wrapper { int f() { tint_array_wrapper const a = {.arr={1, 2, 3, 4, 5, 6, 7, 8}}; int const i = 1; - return a.arr[i]; + return a.arr[1]; } diff --git a/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.msl b/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.msl index ca9238e6ec..606211b848 100644 --- a/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float3 f() { float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); int const i = 1; - return m[i]; + return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1]; } diff --git a/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.msl b/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.msl index 587f5cf7d5..578bbe1130 100644 --- a/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float f() { float3 const v = float3(1.0f, 2.0f, 3.0f); int const i = 1; - return v[i]; + return float3(1.0f, 2.0f, 3.0f)[1]; } diff --git a/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.msl b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.msl index 647d17a49d..200e973b9b 100644 --- a/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float3 f(int x) { float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); int const i = x; - return m[i]; + return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[i]; } diff --git a/test/tint/expressions/index/let/let/param/vector.wgsl.expected.msl b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.msl index b0d8ca96ed..6f1368503b 100644 --- a/test/tint/expressions/index/let/let/param/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float f(int x) { float3 const v = float3(1.0f, 2.0f, 3.0f); int const i = x; - return v[i]; + return float3(1.0f, 2.0f, 3.0f)[i]; } diff --git a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.msl b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.msl index 92a23c43b3..f987c403f5 100644 --- a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.msl @@ -3,6 +3,6 @@ using namespace metal; float3 f() { float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - return m[1]; + return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1]; } diff --git a/test/tint/expressions/index/let/literal/vector.wgsl.expected.msl b/test/tint/expressions/index/let/literal/vector.wgsl.expected.msl index 94dc06a6d7..70f2313f56 100644 --- a/test/tint/expressions/index/let/literal/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/let/literal/vector.wgsl.expected.msl @@ -3,6 +3,6 @@ using namespace metal; float f() { float3 const v = float3(1.0f, 2.0f, 3.0f); - return v[1]; + return float3(1.0f, 2.0f, 3.0f)[1]; } diff --git a/test/tint/expressions/index/let/param/matrix.wgsl.expected.msl b/test/tint/expressions/index/let/param/matrix.wgsl.expected.msl index 49218fd65b..722365f7fb 100644 --- a/test/tint/expressions/index/let/param/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/let/param/matrix.wgsl.expected.msl @@ -3,6 +3,6 @@ using namespace metal; float3 f(int i) { float3x3 const m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - return m[i]; + return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[i]; } diff --git a/test/tint/expressions/index/let/param/vector.wgsl.expected.msl b/test/tint/expressions/index/let/param/vector.wgsl.expected.msl index 4d45110ae9..22d0e0b96b 100644 --- a/test/tint/expressions/index/let/param/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/let/param/vector.wgsl.expected.msl @@ -3,6 +3,6 @@ using namespace metal; float f(int i) { float3 const v = float3(1.0f, 2.0f, 3.0f); - return v[i]; + return float3(1.0f, 2.0f, 3.0f)[i]; } diff --git a/test/tint/expressions/index/let/var/literal/array.wgsl.expected.msl b/test/tint/expressions/index/let/var/literal/array.wgsl.expected.msl index 808c68843f..30f40e9304 100644 --- a/test/tint/expressions/index/let/var/literal/array.wgsl.expected.msl +++ b/test/tint/expressions/index/let/var/literal/array.wgsl.expected.msl @@ -8,6 +8,6 @@ struct tint_array_wrapper { int f() { tint_array_wrapper a = {.arr={1, 2, 3, 4, 5, 6, 7, 8}}; int const i = 1; - return a.arr[i]; + return a.arr[1]; } diff --git a/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.msl b/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.msl index 0536bc1f25..7d63bb431c 100644 --- a/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/let/var/literal/matrix.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float3 f() { float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); int const i = 1; - return m[i]; + return m[1]; } diff --git a/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.msl b/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.msl index 07ca4fb81a..900e66624f 100644 --- a/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/let/var/literal/vector.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float f() { float3 v = float3(1.0f, 2.0f, 3.0f); int const i = 1; - return v[i]; + return v[1]; } diff --git a/test/tint/expressions/index/var/let/literal/array.wgsl.expected.msl b/test/tint/expressions/index/var/let/literal/array.wgsl.expected.msl index 808c68843f..30f40e9304 100644 --- a/test/tint/expressions/index/var/let/literal/array.wgsl.expected.msl +++ b/test/tint/expressions/index/var/let/literal/array.wgsl.expected.msl @@ -8,6 +8,6 @@ struct tint_array_wrapper { int f() { tint_array_wrapper a = {.arr={1, 2, 3, 4, 5, 6, 7, 8}}; int const i = 1; - return a.arr[i]; + return a.arr[1]; } diff --git a/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.msl b/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.msl index 0536bc1f25..7d63bb431c 100644 --- a/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.msl +++ b/test/tint/expressions/index/var/let/literal/matrix.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float3 f() { float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); int const i = 1; - return m[i]; + return m[1]; } diff --git a/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.msl b/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.msl index 07ca4fb81a..900e66624f 100644 --- a/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.msl +++ b/test/tint/expressions/index/var/let/literal/vector.wgsl.expected.msl @@ -4,6 +4,6 @@ using namespace metal; float f() { float3 v = float3(1.0f, 2.0f, 3.0f); int const i = 1; - return v[i]; + return v[1]; } diff --git a/test/tint/expressions/literals/-inf.spvasm.expected.msl b/test/tint/expressions/literals/-inf.spvasm.expected.msl index f9c80baa16..561c9a21ad 100644 --- a/test/tint/expressions/literals/-inf.spvasm.expected.msl +++ b/test/tint/expressions/literals/-inf.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void main_1(thread float4* const tint_symbol_3) { - *(tint_symbol_3) = float4(-INFINITY, -INFINITY, -INFINITY, -INFINITY); + *(tint_symbol_3) = float4(-INFINITY); return; } diff --git a/test/tint/expressions/literals/inf.spvasm.expected.msl b/test/tint/expressions/literals/inf.spvasm.expected.msl index 73aca9e91e..95e5c78761 100644 --- a/test/tint/expressions/literals/inf.spvasm.expected.msl +++ b/test/tint/expressions/literals/inf.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void main_1(thread float4* const tint_symbol_3) { - *(tint_symbol_3) = float4(INFINITY, INFINITY, INFINITY, INFINITY); + *(tint_symbol_3) = float4(INFINITY); return; } diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.msl index f90a722b64..9076107a14 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float2x2 m = float2x2(); +constant float2x2 m = float2x2(float2(0.0f), float2(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.msl index 1c8d85f670..05150a20f0 100644 --- a/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float2x3 m = float2x3(); +constant float2x3 m = float2x3(float3(0.0f), float3(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.msl index d63d1433ee..035e80e900 100644 --- a/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float2x4 m = float2x4(); +constant float2x4 m = float2x4(float4(0.0f), float4(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.msl index da78e12551..1dc48eba2d 100644 --- a/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float3x2 m = float3x2(); +constant float3x2 m = float3x2(float2(0.0f), float2(0.0f), float2(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.msl index 09b6b5c4b1..ddcb08ddf1 100644 --- a/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float3x3 m = float3x3(); +constant float3x3 m = float3x3(float3(0.0f), float3(0.0f), float3(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.msl index a038e7021b..deba45f734 100644 --- a/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float3x4 m = float3x4(); +constant float3x4 m = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.msl index 1a297fac4f..ef2e67540b 100644 --- a/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float4x2 m = float4x2(); +constant float4x2 m = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.msl index 977c351e47..88679a8ff9 100644 --- a/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float4x3 m = float4x3(); +constant float4x3 m = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)); diff --git a/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.msl b/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.msl index 7df151fd6c..9389ca4b76 100644 --- a/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.msl +++ b/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.msl @@ -1,5 +1,5 @@ #include using namespace metal; -constant float4x4 m = float4x4(); +constant float4x4 m = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f)); diff --git a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.msl index 323a16b57a..fe3798dabd 100644 --- a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float2x2 v = float2x2(); + float2x2 v = float2x2(float2(0.0f), float2(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.msl index 6b1c1a6d8a..97feea8104 100644 --- a/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float2x3 v = float2x3(); + float2x3 v = float2x3(float3(0.0f), float3(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.msl index 07088be241..d078a6dc3b 100644 --- a/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float2x4 v = float2x4(); + float2x4 v = float2x4(float4(0.0f), float4(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.msl index 8f611d235c..333cabf712 100644 --- a/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float3x2 v = float3x2(); + float3x2 v = float3x2(float2(0.0f), float2(0.0f), float2(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.msl index 46aa385cfa..9d404a42c3 100644 --- a/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float3x3 v = float3x3(); + float3x3 v = float3x3(float3(0.0f), float3(0.0f), float3(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.msl index 21f15d0b22..85d73cf8a7 100644 --- a/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float3x4 v = float3x4(); + float3x4 v = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.msl index 5c2410f7ac..ac56eedd17 100644 --- a/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float4x2 v = float4x2(); + float4x2 v = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.msl index 80c8b94d7f..555091d84e 100644 --- a/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float4x3 v = float4x3(); + float4x3 v = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)); } diff --git a/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.msl index 9b2c252ed4..e25f4b3cbd 100644 --- a/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float4x4 v = float4x4(); + float4x4 v = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f)); } diff --git a/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.msl b/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.msl index a68d88c79d..0913b4c7fb 100644 --- a/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/scalar/bool.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - bool v = bool(); + bool v = false; } diff --git a/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.msl index 7e8266ed6a..04daba28db 100644 --- a/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/scalar/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float v = float(); + float v = 0.0f; } diff --git a/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.msl b/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.msl index 222df20d76..cffd2c1b24 100644 --- a/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/scalar/i32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - int v = int(); + int v = 0; } diff --git a/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.msl b/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.msl index e11e857be4..1e9a665290 100644 --- a/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/scalar/u32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - uint v = uint(); + uint v = 0u; } diff --git a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.msl b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.msl index fd03aaf1b9..91af3c746e 100644 --- a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - bool2 v = bool2(); + bool2 v = bool2(false); } diff --git a/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.msl index 07013f1e94..39f121ae00 100644 --- a/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float2 v = float2(); + float2 v = float2(0.0f); } diff --git a/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.msl index d29f4d1df9..2732848ad1 100644 --- a/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - int2 v = int2(); + int2 v = int2(0); } diff --git a/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.msl index 9c0f70cf37..e47d1d37fa 100644 --- a/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - uint2 v = uint2(); + uint2 v = uint2(0u); } diff --git a/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.msl b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.msl index fa8cb80ed5..c09ff79e40 100644 --- a/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - bool3 v = bool3(); + bool3 v = bool3(false); } diff --git a/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.msl index c40910cd65..e6660e3f13 100644 --- a/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float3 v = float3(); + float3 v = float3(0.0f); } diff --git a/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.msl index 86777661cc..8a0e41e797 100644 --- a/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - int3 v = int3(); + int3 v = int3(0); } diff --git a/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.msl index bb2de04b9d..2460883a7d 100644 --- a/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - uint3 v = uint3(); + uint3 v = uint3(0u); } diff --git a/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.msl b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.msl index 0d3be82417..757574d093 100644 --- a/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - bool4 v = bool4(); + bool4 v = bool4(false); } diff --git a/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.msl index 76c2b7798c..c3f90b5f96 100644 --- a/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - float4 v = float4(); + float4 v = float4(0.0f); } diff --git a/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.msl index 78ebdab612..8d8ee8e5cc 100644 --- a/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - int4 v = int4(); + int4 v = int4(0); } diff --git a/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.msl b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.msl index 9d55361706..bb5fafabc0 100644 --- a/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.msl +++ b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.msl @@ -2,6 +2,6 @@ using namespace metal; void f() { - uint4 v = uint4(); + uint4 v = uint4(0u); } diff --git a/test/tint/identifiers/underscore/double/let.wgsl.expected.msl b/test/tint/identifiers/underscore/double/let.wgsl.expected.msl index 47c1b05685..0d7413fbaf 100644 --- a/test/tint/identifiers/underscore/double/let.wgsl.expected.msl +++ b/test/tint/identifiers/underscore/double/let.wgsl.expected.msl @@ -6,7 +6,7 @@ constant int a = 1; constant int a__ = 2; void f() { - int const b = a; - int const b__ = a__; + int const b = 1; + int const b__ = 2; } diff --git a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.msl b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.msl index 7b3d669476..78eb6686c2 100644 --- a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.msl +++ b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.msl @@ -6,7 +6,7 @@ constant int a = 1; constant int _a = 2; void f() { - int const b = a; - int const _b = _a; + int const b = 1; + int const _b = 2; } diff --git a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.msl b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.msl index 5afe76fb2b..a3e94db890 100644 --- a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.msl +++ b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.msl @@ -6,7 +6,7 @@ constant int A = 1; constant int _A = 2; void f() { - int const B = A; - int const _B = _A; + int const B = 1; + int const _B = 2; } diff --git a/test/tint/let/global/global.wgsl.expected.msl b/test/tint/let/global/global.wgsl.expected.msl index d5efc4eda1..72d5df75d4 100644 --- a/test/tint/let/global/global.wgsl.expected.msl +++ b/test/tint/let/global/global.wgsl.expected.msl @@ -15,13 +15,13 @@ constant uint v2 = 1u; constant float v3 = 1.0f; -constant int3 v4 = int3(1, 1, 1); +constant int3 v4 = int3(1); -constant uint3 v5 = uint3(1u, 1u, 1u); +constant uint3 v5 = uint3(1u); -constant float3 v6 = float3(1.0f, 1.0f, 1.0f); +constant float3 v6 = float3(1.0f); -constant float3x3 v7 = float3x3(float3(1.0f, 1.0f, 1.0f), float3(1.0f, 1.0f, 1.0f), float3(1.0f, 1.0f, 1.0f)); +constant float3x3 v7 = float3x3(float3(1.0f), float3(1.0f), float3(1.0f)); constant MyStruct v8 = {}; @@ -32,7 +32,7 @@ struct tint_symbol_1 { }; float4 tint_symbol_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return float4(0.0f); } fragment tint_symbol_1 tint_symbol() { diff --git a/test/tint/let/inferred/function.wgsl.expected.msl b/test/tint/let/inferred/function.wgsl.expected.msl index 6a699b5f81..9d93fcfe4f 100644 --- a/test/tint/let/inferred/function.wgsl.expected.msl +++ b/test/tint/let/inferred/function.wgsl.expected.msl @@ -35,10 +35,10 @@ void let_decls() { int const v1 = 1; uint const v2 = 1u; float const v3 = 1.0f; - int3 const v4 = int3(1, 1, 1); - uint3 const v5 = uint3(1u, 1u, 1u); - float3 const v6 = float3(1.0f, 1.0f, 1.0f); - float3x3 const v7 = float3x3(v6, v6, v6); + int3 const v4 = int3(1); + uint3 const v5 = uint3(1u); + float3 const v6 = float3(1.0f); + float3x3 const v7 = float3x3(float3(1.0f), float3(1.0f), float3(1.0f)); MyStruct const v8 = {.f1=1.0f}; tint_array_wrapper const v9 = {.arr={}}; int const v10 = ret_i32(); @@ -54,7 +54,7 @@ struct tint_symbol_1 { }; float4 tint_symbol_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return float4(0.0f); } fragment tint_symbol_1 tint_symbol() { diff --git a/test/tint/out_of_order_decls/func/let.wgsl.expected.msl b/test/tint/out_of_order_decls/func/let.wgsl.expected.msl index 2509d6c788..5e4032c5ed 100644 --- a/test/tint/out_of_order_decls/func/let.wgsl.expected.msl +++ b/test/tint/out_of_order_decls/func/let.wgsl.expected.msl @@ -4,7 +4,7 @@ using namespace metal; constant int a = 1; fragment void f() { - int const b = a; + int const b = 1; return; } diff --git a/test/tint/ptr_ref/access/matrix.spvasm.expected.msl b/test/tint/ptr_ref/access/matrix.spvasm.expected.msl index e301589b54..4b2c2f7462 100644 --- a/test/tint/ptr_ref/access/matrix.spvasm.expected.msl +++ b/test/tint/ptr_ref/access/matrix.spvasm.expected.msl @@ -2,9 +2,9 @@ using namespace metal; void main_1() { - float3x3 m = float3x3(); + float3x3 m = float3x3(float3(0.0f), float3(0.0f), float3(0.0f)); m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - m[1] = float3(5.0f, 5.0f, 5.0f); + m[1] = float3(5.0f); return; } diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.msl b/test/tint/ptr_ref/access/matrix.wgsl.expected.msl index 75c13af6bb..7454aafaef 100644 --- a/test/tint/ptr_ref/access/matrix.wgsl.expected.msl +++ b/test/tint/ptr_ref/access/matrix.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; kernel void tint_symbol() { float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - m[1] = float3(5.0f, 5.0f, 5.0f); + m[1] = float3(5.0f); return; } diff --git a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.msl b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.msl index 7853720bbc..2e5293e01f 100644 --- a/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.msl +++ b/test/tint/ptr_ref/load/local/ptr_workgroup.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void tint_symbol_inner(uint local_invocation_index, threadgroup int* const tint_symbol_1) { { - *(tint_symbol_1) = int(); + *(tint_symbol_1) = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); *(tint_symbol_1) = 123; diff --git a/test/tint/samples/compute_boids.wgsl.expected.msl b/test/tint/samples/compute_boids.wgsl.expected.msl index 399bdf38c2..cf438aba79 100644 --- a/test/tint/samples/compute_boids.wgsl.expected.msl +++ b/test/tint/samples/compute_boids.wgsl.expected.msl @@ -29,7 +29,7 @@ struct tint_symbol_3 { }; float4 frag_main_inner() { - return float4(1.0f, 1.0f, 1.0f, 1.0f); + return float4(1.0f); } fragment tint_symbol_3 frag_main() { @@ -69,9 +69,9 @@ void comp_main_inner(uint3 gl_GlobalInvocationID, device Particles* const tint_s } float2 vPos = (*(tint_symbol_4)).particles.arr[index].pos; float2 vVel = (*(tint_symbol_4)).particles.arr[index].vel; - float2 cMass = float2(0.0f, 0.0f); - float2 cVel = float2(0.0f, 0.0f); - float2 colVel = float2(0.0f, 0.0f); + float2 cMass = float2(0.0f); + float2 cVel = float2(0.0f); + float2 colVel = float2(0.0f); int cMassCount = 0; int cVelCount = 0; float2 pos = 0.0f; diff --git a/test/tint/samples/simple.wgsl.expected.msl b/test/tint/samples/simple.wgsl.expected.msl index d7fde539d8..d84f872afc 100644 --- a/test/tint/samples/simple.wgsl.expected.msl +++ b/test/tint/samples/simple.wgsl.expected.msl @@ -9,7 +9,7 @@ struct tint_symbol_1 { }; float4 tint_symbol_inner() { - float2 a = float2(); + float2 a = float2(0.0f); bar(); return float4(0.400000006f, 0.400000006f, 0.800000012f, 1.0f); } diff --git a/test/tint/samples/simple_vertex.spvasm.expected.msl b/test/tint/samples/simple_vertex.spvasm.expected.msl index f12b315596..27cb3a45f5 100644 --- a/test/tint/samples/simple_vertex.spvasm.expected.msl +++ b/test/tint/samples/simple_vertex.spvasm.expected.msl @@ -2,7 +2,7 @@ using namespace metal; void main_1(thread float4* const tint_symbol_3) { - *(tint_symbol_3) = float4(0.0f, 0.0f, 0.0f, 0.0f); + *(tint_symbol_3) = float4(0.0f); return; } diff --git a/test/tint/samples/triangle.wgsl.expected.msl b/test/tint/samples/triangle.wgsl.expected.msl index 246e75c83f..51fb847f96 100644 --- a/test/tint/samples/triangle.wgsl.expected.msl +++ b/test/tint/samples/triangle.wgsl.expected.msl @@ -5,7 +5,7 @@ struct tint_array_wrapper { float2 arr[3]; }; -constant tint_array_wrapper pos = {.arr={float2(0.0f, 0.5f), float2(-0.5f, -0.5f), float2(0.5f, -0.5f)}}; +constant tint_array_wrapper pos = {.arr={float2(0.0f, 0.5f), float2(-0.5f), float2(0.5f, -0.5f)}}; struct tint_symbol { float4 value [[position]]; diff --git a/test/tint/shader_io/invariant.wgsl.expected.msl b/test/tint/shader_io/invariant.wgsl.expected.msl index 3d41ee7b8d..4f6e6f5645 100644 --- a/test/tint/shader_io/invariant.wgsl.expected.msl +++ b/test/tint/shader_io/invariant.wgsl.expected.msl @@ -13,7 +13,7 @@ struct tint_symbol_1 { }; float4 tint_symbol_inner() { - return float4(); + return float4(0.0f); } vertex tint_symbol_1 tint_symbol() { diff --git a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.msl b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.msl index 4dc3f1f0a9..0fb65589ed 100644 --- a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.msl +++ b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.msl @@ -14,7 +14,7 @@ struct tint_symbol { }; Interface vert_main_inner() { - Interface const tint_symbol_3 = {.col1=0.400000006f, .col2=0.600000024f, .pos=float4()}; + Interface const tint_symbol_3 = {.col1=0.400000006f, .col2=0.600000024f, .pos=float4(0.0f)}; return tint_symbol_3; } diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.msl b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.msl index 1ef825bfe6..727497c279 100644 --- a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.msl @@ -7,7 +7,7 @@ struct tint_symbol_1 { float4 tint_symbol_inner(uint vertex_index, uint instance_index) { uint const foo = (vertex_index + instance_index); - return float4(); + return float4(0.0f); } vertex tint_symbol_1 tint_symbol(uint vertex_index [[vertex_id]], uint instance_index [[instance_id]]) { diff --git a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.msl b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.msl index 6f67049881..136d88b320 100644 --- a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.msl @@ -12,7 +12,7 @@ struct tint_symbol_1 { float4 tint_symbol_inner(VertexInputs inputs) { uint const foo = (inputs.vertex_index + inputs.instance_index); - return float4(); + return float4(0.0f); } vertex tint_symbol_1 tint_symbol(uint vertex_index [[vertex_id]], uint instance_index [[instance_id]]) { diff --git a/test/tint/shader_io/vertex_input_locations.wgsl.expected.msl b/test/tint/shader_io/vertex_input_locations.wgsl.expected.msl index f45c47ec65..0d6a66bbe1 100644 --- a/test/tint/shader_io/vertex_input_locations.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_input_locations.wgsl.expected.msl @@ -17,7 +17,7 @@ float4 tint_symbol_inner(int loc0, uint loc1, float loc2, float4 loc3) { uint const u = loc1; float const f = loc2; float4 const v = loc3; - return float4(); + return float4(0.0f); } vertex tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) { diff --git a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.msl b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.msl index 0391ee480c..d0fcffe1e3 100644 --- a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.msl @@ -24,7 +24,7 @@ float4 tint_symbol_inner(VertexInputs inputs) { uint const u = inputs.loc1; float const f = inputs.loc2; float4 const v = inputs.loc3; - return float4(); + return float4(0.0f); } vertex tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1 [[stage_in]]) { diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.msl b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.msl index 03c4e970dd..1ce7b01ae3 100644 --- a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.msl @@ -28,7 +28,7 @@ float4 tint_symbol_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, uint const u = loc1; float const f = inputs1.loc2; float4 const v = inputs1.loc3; - return float4(); + return float4(0.0f); } vertex tint_symbol_3 tint_symbol(uint vertex_index [[vertex_id]], uint instance_index [[instance_id]], tint_symbol_2 tint_symbol_1 [[stage_in]]) { diff --git a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.msl b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.msl index b24884e721..6b04060e6e 100644 --- a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.msl +++ b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.msl @@ -18,7 +18,7 @@ struct tint_symbol_1 { }; VertexOutputs tint_symbol_inner() { - VertexOutputs const tint_symbol_2 = {.loc0=1, .loc1=1u, .loc2=1.0f, .loc3=float4(1.0f, 2.0f, 3.0f, 4.0f), .position=float4()}; + VertexOutputs const tint_symbol_2 = {.loc0=1, .loc1=1u, .loc2=1.0f, .loc3=float4(1.0f, 2.0f, 3.0f, 4.0f), .position=float4(0.0f)}; return tint_symbol_2; } diff --git a/test/tint/shadowing/alias/let.wgsl.expected.msl b/test/tint/shadowing/alias/let.wgsl.expected.msl index acd894e4c2..4241865826 100644 --- a/test/tint/shadowing/alias/let.wgsl.expected.msl +++ b/test/tint/shadowing/alias/let.wgsl.expected.msl @@ -3,10 +3,10 @@ using namespace metal; void f() { { - int const a_1 = int(); - int const b = a_1; + int const a_1 = 0; + int const b = 0; } - int const a_2 = int(); - int const b = a_2; + int const a_2 = 0; + int const b = 0; } diff --git a/test/tint/shadowing/alias/var.wgsl.expected.msl b/test/tint/shadowing/alias/var.wgsl.expected.msl index d507d61cb0..8dfd0c9167 100644 --- a/test/tint/shadowing/alias/var.wgsl.expected.msl +++ b/test/tint/shadowing/alias/var.wgsl.expected.msl @@ -3,10 +3,10 @@ using namespace metal; void f() { { - int a_1 = int(); + int a_1 = 0; int b = a_1; } - int a_2 = int(); + int a_2 = 0; int b = a_2; } diff --git a/test/tint/shadowing/function/let.wgsl.expected.msl b/test/tint/shadowing/function/let.wgsl.expected.msl index 16f3280523..6f2d8d32b0 100644 --- a/test/tint/shadowing/function/let.wgsl.expected.msl +++ b/test/tint/shadowing/function/let.wgsl.expected.msl @@ -7,6 +7,6 @@ void a() { int b = a_1; } int const a_2 = 1; - int const b = a_2; + int const b = 1; } diff --git a/test/tint/statements/compound_assign/function.wgsl.expected.msl b/test/tint/statements/compound_assign/function.wgsl.expected.msl index 608c013c00..3acbce949b 100644 --- a/test/tint/statements/compound_assign/function.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/function.wgsl.expected.msl @@ -6,7 +6,7 @@ void foo() { float4 b = 0.0f; float2x2 c = float2x2(0.0f); a = (a / 2); - b = (b * float4x4()); + b = (b * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); c = (c * 2.0f); } diff --git a/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.msl b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.msl index f6fb29f74a..48aaec6683 100644 --- a/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.msl @@ -6,6 +6,6 @@ struct S { }; void foo(device S* const tint_symbol) { - (*(tint_symbol)).a = ((*(tint_symbol)).a - float4x4()); + (*(tint_symbol)).a = ((*(tint_symbol)).a - float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } diff --git a/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.msl b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.msl index 7ff7cc90ee..9dc0ba5d00 100644 --- a/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.msl @@ -6,6 +6,6 @@ struct S { }; void foo(device S* const tint_symbol) { - (*(tint_symbol)).a = ((*(tint_symbol)).a + float4x4()); + (*(tint_symbol)).a = ((*(tint_symbol)).a + float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } diff --git a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.msl b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.msl index bfce1924d0..7dfd863869 100644 --- a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.msl @@ -6,6 +6,6 @@ struct S { }; void foo(device S* const tint_symbol) { - (*(tint_symbol)).a = ((*(tint_symbol)).a * float4x4()); + (*(tint_symbol)).a = ((*(tint_symbol)).a * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } diff --git a/test/tint/statements/compound_assign/private.wgsl.expected.msl b/test/tint/statements/compound_assign/private.wgsl.expected.msl index 5b9bcdc082..19fdb2fd36 100644 --- a/test/tint/statements/compound_assign/private.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/private.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void foo(thread int* const tint_symbol, thread float4* const tint_symbol_1, thread float2x2* const tint_symbol_2) { *(tint_symbol) = (*(tint_symbol) / 2); - *(tint_symbol_1) = (*(tint_symbol_1) * float4x4()); + *(tint_symbol_1) = (*(tint_symbol_1) * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); *(tint_symbol_2) = (*(tint_symbol_2) * 2.0f); } diff --git a/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.msl b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.msl index b7722c8618..7fd679063d 100644 --- a/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.msl @@ -6,6 +6,6 @@ struct S { }; void foo(device S* const tint_symbol) { - (*(tint_symbol)).a = ((*(tint_symbol)).a * float4x4()); + (*(tint_symbol)).a = ((*(tint_symbol)).a * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); } diff --git a/test/tint/statements/compound_assign/workgroup.wgsl.expected.msl b/test/tint/statements/compound_assign/workgroup.wgsl.expected.msl index 14ce2d4811..4335b158fa 100644 --- a/test/tint/statements/compound_assign/workgroup.wgsl.expected.msl +++ b/test/tint/statements/compound_assign/workgroup.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void foo(threadgroup int* const tint_symbol, threadgroup float4* const tint_symbol_1, threadgroup float2x2* const tint_symbol_2) { *(tint_symbol) = (*(tint_symbol) / 2); - *(tint_symbol_1) = (*(tint_symbol_1) * float4x4()); + *(tint_symbol_1) = (*(tint_symbol_1) * float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f))); *(tint_symbol_2) = (*(tint_symbol_2) * 2.0f); } diff --git a/test/tint/statements/decrement/vector_component.wgsl.expected.msl b/test/tint/statements/decrement/vector_component.wgsl.expected.msl index 7211766631..ce181447c2 100644 --- a/test/tint/statements/decrement/vector_component.wgsl.expected.msl +++ b/test/tint/statements/decrement/vector_component.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void tint_symbol(device uint4* const tint_symbol_3) { int const tint_symbol_2 = 1; - (*(tint_symbol_3))[tint_symbol_2] = ((*(tint_symbol_3))[tint_symbol_2] - 1u); + (*(tint_symbol_3))[1] = ((*(tint_symbol_3))[1] - 1u); (*(tint_symbol_3))[2] = ((*(tint_symbol_3))[2] - 1u); } diff --git a/test/tint/statements/increment/vector_component.wgsl.expected.msl b/test/tint/statements/increment/vector_component.wgsl.expected.msl index 872885467b..8a3113b8c4 100644 --- a/test/tint/statements/increment/vector_component.wgsl.expected.msl +++ b/test/tint/statements/increment/vector_component.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void tint_symbol(device uint4* const tint_symbol_3) { int const tint_symbol_2 = 1; - (*(tint_symbol_3))[tint_symbol_2] = ((*(tint_symbol_3))[tint_symbol_2] + 1u); + (*(tint_symbol_3))[1] = ((*(tint_symbol_3))[1] + 1u); (*(tint_symbol_3))[2] = ((*(tint_symbol_3))[2] + 1u); } diff --git a/test/tint/struct/type_constructor.wgsl.expected.msl b/test/tint/struct/type_constructor.wgsl.expected.msl index e36df06a43..d0449b8c53 100644 --- a/test/tint/struct/type_constructor.wgsl.expected.msl +++ b/test/tint/struct/type_constructor.wgsl.expected.msl @@ -35,27 +35,27 @@ kernel void tint_symbol() { int const x = 42; S1 const empty = {}; S1 const nonempty = {.a=1, .b=2, .c=3, .d=4}; - S1 const nonempty_with_expr = {.a=1, .b=x, .c=as_type((as_type(x) + as_type(1))), .d=nonempty.d}; + S1 const nonempty_with_expr = {.a=1, .b=42, .c=as_type((as_type(42) + as_type(1))), .d=nonempty.d}; S3 const nested_empty = {}; S1 const tint_symbol_1 = {.a=2, .b=3, .c=4, .d=5}; S1 const tint_symbol_2 = {.a=7, .b=8, .c=9, .d=10}; S2 const tint_symbol_3 = {.e=6, .f=tint_symbol_2}; S3 const nested_nonempty = {.g=1, .h=tint_symbol_1, .i=tint_symbol_3}; - S1 const tint_symbol_4 = {.a=2, .b=x, .c=as_type((as_type(x) + as_type(1))), .d=nested_nonempty.i.f.d}; + S1 const tint_symbol_4 = {.a=2, .b=42, .c=as_type((as_type(42) + as_type(1))), .d=nested_nonempty.i.f.d}; S2 const tint_symbol_5 = {.e=6, .f=nonempty}; S3 const nested_nonempty_with_expr = {.g=1, .h=tint_symbol_4, .i=tint_symbol_5}; S1 const tint_symbol_6 = {}; int const subexpr_empty = tint_symbol_6.a; S1 const tint_symbol_7 = {.a=1, .b=2, .c=3, .d=4}; int const subexpr_nonempty = tint_symbol_7.b; - S1 const tint_symbol_8 = {.a=1, .b=x, .c=as_type((as_type(x) + as_type(1))), .d=nonempty.d}; + S1 const tint_symbol_8 = {.a=1, .b=42, .c=as_type((as_type(42) + as_type(1))), .d=nonempty.d}; int const subexpr_nonempty_with_expr = tint_symbol_8.c; S2 const tint_symbol_9 = {}; S1 const subexpr_nested_empty = tint_symbol_9.f; S1 const tint_symbol_10 = {.a=2, .b=3, .c=4, .d=5}; S2 const tint_symbol_11 = {.e=1, .f=tint_symbol_10}; S1 const subexpr_nested_nonempty = tint_symbol_11.f; - S1 const tint_symbol_12 = {.a=2, .b=x, .c=as_type((as_type(x) + as_type(1))), .d=nested_nonempty.i.f.d}; + S1 const tint_symbol_12 = {.a=2, .b=42, .c=as_type((as_type(42) + as_type(1))), .d=nested_nonempty.i.f.d}; S2 const tint_symbol_13 = {.e=1, .f=tint_symbol_12}; S1 const subexpr_nested_nonempty_with_expr = tint_symbol_13.f; tint_array_wrapper_1 const aosoa_empty = {.arr={}}; diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.msl b/test/tint/types/function_scope_declarations.wgsl.expected.msl index fc5a302fd2..799d28aaf0 100644 --- a/test/tint/types/function_scope_declarations.wgsl.expected.msl +++ b/test/tint/types/function_scope_declarations.wgsl.expected.msl @@ -10,22 +10,22 @@ struct tint_array_wrapper { }; kernel void tint_symbol() { - bool bool_var = bool(); - bool const bool_let = bool(); - int i32_var = int(); - int const i32_let = int(); - uint u32_var = uint(); - uint const u32_let = uint(); - float f32_var = float(); - float const f32_let = float(); - int2 v2i32_var = int2(); - int2 const v2i32_let = int2(); - uint3 v3u32_var = uint3(); - uint3 const v3u32_let = uint3(); - float4 v4f32_var = float4(); - float4 const v4f32_let = float4(); - float2x3 m2x3_var = float2x3(); - float3x4 const m3x4_let = float3x4(); + bool bool_var = false; + bool const bool_let = false; + int i32_var = 0; + int const i32_let = 0; + uint u32_var = 0u; + uint const u32_let = 0u; + float f32_var = 0.0f; + float const f32_let = 0.0f; + int2 v2i32_var = int2(0); + int2 const v2i32_let = int2(0); + uint3 v3u32_var = uint3(0u); + uint3 const v3u32_let = uint3(0u); + float4 v4f32_var = float4(0.0f); + float4 const v4f32_let = float4(0.0f); + float2x3 m2x3_var = float2x3(float3(0.0f), float3(0.0f)); + float3x4 const m3x4_let = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); tint_array_wrapper arr_var = {.arr={}}; tint_array_wrapper const arr_let = {.arr={}}; S struct_var = {}; diff --git a/test/tint/types/function_scope_var_conversions.wgsl.expected.msl b/test/tint/types/function_scope_var_conversions.wgsl.expected.msl index a656406724..10e5c4859d 100644 --- a/test/tint/types/function_scope_var_conversions.wgsl.expected.msl +++ b/test/tint/types/function_scope_var_conversions.wgsl.expected.msl @@ -2,32 +2,32 @@ using namespace metal; void constant_with_non_constant() { - float a = float(); - float2 b = float2(float(int(1)), a); + float a = 0.0f; + float2 b = float2(1.0f, a); } kernel void tint_symbol() { - bool bool_var1 = bool(123u); - bool bool_var2 = bool(123); - bool bool_var3 = bool(123.0f); - int i32_var1 = int(123u); - int i32_var2 = int(123.0f); - int i32_var3 = int(true); - uint u32_var1 = uint(123); - uint u32_var2 = uint(123.0f); - uint u32_var3 = uint(true); - bool3 v3bool_var1 = bool3(uint3(123u)); - bool3 v3bool_var11 = bool3(uint3(1234u)); - bool3 v3bool_var2 = bool3(int3(123)); - bool3 v3bool_var3 = bool3(float3(123.0f)); - int3 v3i32_var1 = int3(uint3(123u)); - int3 v3i32_var2 = int3(float3(123.0f)); - int3 v3i32_var3 = int3(bool3(true)); - uint3 v3u32_var1 = uint3(int3(123)); - uint3 v3u32_var2 = uint3(float3(123.0f)); - uint3 v3u32_var3 = uint3(bool3(true)); - bool3 v3bool_var4 = bool3(bool2(float2(123.0f)), true); - bool4 v4bool_var5 = bool4(bool2(float2(123.0f, 0.0f)), bool2(true, bool(float(0.0f)))); + bool bool_var1 = true; + bool bool_var2 = true; + bool bool_var3 = true; + int i32_var1 = 123; + int i32_var2 = 123; + int i32_var3 = 1; + uint u32_var1 = 123u; + uint u32_var2 = 123u; + uint u32_var3 = 1u; + bool3 v3bool_var1 = bool3(true); + bool3 v3bool_var11 = bool3(true); + bool3 v3bool_var2 = bool3(true); + bool3 v3bool_var3 = bool3(true); + int3 v3i32_var1 = int3(123); + int3 v3i32_var2 = int3(123); + int3 v3i32_var3 = int3(1); + uint3 v3u32_var1 = uint3(123u); + uint3 v3u32_var2 = uint3(123u); + uint3 v3u32_var3 = uint3(1u); + bool3 v3bool_var4 = bool3(true); + bool4 v4bool_var5 = bool4(true, false, true, false); return; } diff --git a/test/tint/types/module_scope_let.wgsl.expected.msl b/test/tint/types/module_scope_let.wgsl.expected.msl index 547c797b9e..33ba0950b1 100644 --- a/test/tint/types/module_scope_let.wgsl.expected.msl +++ b/test/tint/types/module_scope_let.wgsl.expected.msl @@ -5,21 +5,21 @@ struct S { float a; }; -constant bool bool_let = bool(); +constant bool bool_let = false; -constant int i32_let = int(); +constant int i32_let = 0; -constant uint u32_let = uint(); +constant uint u32_let = 0u; -constant float f32_let = float(); +constant float f32_let = 0.0f; -constant int2 v2i32_let = int2(); +constant int2 v2i32_let = int2(0); -constant uint3 v3u32_let = uint3(); +constant uint3 v3u32_let = uint3(0u); -constant float4 v4f32_let = float4(); +constant float4 v4f32_let = float4(0.0f); -constant float3x4 m3x4_let = float3x4(); +constant float3x4 m3x4_let = float3x4(float4(0.0f), float4(0.0f), float4(0.0f)); struct tint_array_wrapper { float arr[4]; diff --git a/test/tint/types/module_scope_var.wgsl.expected.msl b/test/tint/types/module_scope_var.wgsl.expected.msl index 4fcfa9e7ad..b4cb6cd8a5 100644 --- a/test/tint/types/module_scope_var.wgsl.expected.msl +++ b/test/tint/types/module_scope_var.wgsl.expected.msl @@ -20,14 +20,14 @@ kernel void tint_symbol() { thread float2x3 tint_symbol_10 = float2x3(0.0f); thread tint_array_wrapper tint_symbol_11 = {}; thread S tint_symbol_12 = {}; - tint_symbol_3 = bool(); - tint_symbol_4 = int(); - tint_symbol_5 = uint(); - tint_symbol_6 = float(); - tint_symbol_7 = int2(); - tint_symbol_8 = uint3(); - tint_symbol_9 = float4(); - tint_symbol_10 = float2x3(); + tint_symbol_3 = false; + tint_symbol_4 = 0; + tint_symbol_5 = 0u; + tint_symbol_6 = 0.0f; + tint_symbol_7 = int2(0); + tint_symbol_8 = uint3(0u); + tint_symbol_9 = float4(0.0f); + tint_symbol_10 = float2x3(float3(0.0f), float3(0.0f)); tint_array_wrapper const tint_symbol_1 = {.arr={}}; tint_symbol_11 = tint_symbol_1; S const tint_symbol_2 = {}; diff --git a/test/tint/types/module_scope_var_conversions.wgsl.expected.msl b/test/tint/types/module_scope_var_conversions.wgsl.expected.msl index 072e9b0636..012737e158 100644 --- a/test/tint/types/module_scope_var_conversions.wgsl.expected.msl +++ b/test/tint/types/module_scope_var_conversions.wgsl.expected.msl @@ -2,46 +2,46 @@ using namespace metal; kernel void tint_symbol() { - thread bool tint_symbol_1 = bool(1u); - thread bool tint_symbol_2 = bool(1); - thread bool tint_symbol_3 = bool(1.0f); - thread int tint_symbol_4 = int(1u); - thread int tint_symbol_5 = int(1.0f); - thread int tint_symbol_6 = int(true); - thread uint tint_symbol_7 = uint(1); - thread uint tint_symbol_8 = uint(1.0f); - thread uint tint_symbol_9 = uint(true); - thread bool3 tint_symbol_10 = bool3(uint3(1u)); - thread bool3 tint_symbol_11 = bool3(int3(1)); - thread bool3 tint_symbol_12 = bool3(float3(1.0f)); - thread bool3 tint_symbol_13 = bool3(bool2(float2(123.0f)), true); - thread bool4 tint_symbol_14 = bool4(bool2(float2(123.0f, 0.0f)), bool2(true, bool(float(0.0f)))); - thread int3 tint_symbol_15 = int3(uint3(1u)); - thread int3 tint_symbol_16 = int3(float3(1.0f)); - thread int3 tint_symbol_17 = int3(bool3(true)); - thread uint3 tint_symbol_18 = uint3(int3(1)); - thread uint3 tint_symbol_19 = uint3(float3(1.0f)); - thread uint3 tint_symbol_20 = uint3(bool3(true)); - tint_symbol_1 = bool(); - tint_symbol_2 = bool(); - tint_symbol_3 = bool(); - tint_symbol_4 = int(); - tint_symbol_5 = int(); - tint_symbol_6 = int(); - tint_symbol_7 = uint(); - tint_symbol_8 = uint(); - tint_symbol_9 = uint(); - tint_symbol_10 = bool3(); - tint_symbol_11 = bool3(); - tint_symbol_12 = bool3(); - tint_symbol_13 = bool3(); - tint_symbol_14 = bool4(); - tint_symbol_15 = int3(); - tint_symbol_16 = int3(); - tint_symbol_17 = int3(); - tint_symbol_18 = uint3(); - tint_symbol_19 = uint3(); - tint_symbol_20 = uint3(); + thread bool tint_symbol_1 = true; + thread bool tint_symbol_2 = true; + thread bool tint_symbol_3 = true; + thread int tint_symbol_4 = 1; + thread int tint_symbol_5 = 1; + thread int tint_symbol_6 = 1; + thread uint tint_symbol_7 = 1u; + thread uint tint_symbol_8 = 1u; + thread uint tint_symbol_9 = 1u; + thread bool3 tint_symbol_10 = bool3(true); + thread bool3 tint_symbol_11 = bool3(true); + thread bool3 tint_symbol_12 = bool3(true); + thread bool3 tint_symbol_13 = bool3(true); + thread bool4 tint_symbol_14 = bool4(true, false, true, false); + thread int3 tint_symbol_15 = int3(1); + thread int3 tint_symbol_16 = int3(1); + thread int3 tint_symbol_17 = int3(1); + thread uint3 tint_symbol_18 = uint3(1u); + thread uint3 tint_symbol_19 = uint3(1u); + thread uint3 tint_symbol_20 = uint3(1u); + tint_symbol_1 = false; + tint_symbol_2 = false; + tint_symbol_3 = false; + tint_symbol_4 = 0; + tint_symbol_5 = 0; + tint_symbol_6 = 0; + tint_symbol_7 = 0u; + tint_symbol_8 = 0u; + tint_symbol_9 = 0u; + tint_symbol_10 = bool3(false); + tint_symbol_11 = bool3(false); + tint_symbol_12 = bool3(false); + tint_symbol_13 = bool3(false); + tint_symbol_14 = bool4(false); + tint_symbol_15 = int3(0); + tint_symbol_16 = int3(0); + tint_symbol_17 = int3(0); + tint_symbol_18 = uint3(0u); + tint_symbol_19 = uint3(0u); + tint_symbol_20 = uint3(0u); return; } diff --git a/test/tint/types/module_scope_var_initializers.wgsl.expected.msl b/test/tint/types/module_scope_var_initializers.wgsl.expected.msl index afbc577f13..815f9fbdf1 100644 --- a/test/tint/types/module_scope_var_initializers.wgsl.expected.msl +++ b/test/tint/types/module_scope_var_initializers.wgsl.expected.msl @@ -10,24 +10,24 @@ struct tint_array_wrapper { }; kernel void tint_symbol() { - thread bool tint_symbol_3 = bool(); - thread int tint_symbol_4 = int(); - thread uint tint_symbol_5 = uint(); - thread float tint_symbol_6 = float(); - thread int2 tint_symbol_7 = int2(); - thread uint3 tint_symbol_8 = uint3(); - thread float4 tint_symbol_9 = float4(); - thread float2x3 tint_symbol_10 = float2x3(); + thread bool tint_symbol_3 = false; + thread int tint_symbol_4 = 0; + thread uint tint_symbol_5 = 0u; + thread float tint_symbol_6 = 0.0f; + thread int2 tint_symbol_7 = int2(0); + thread uint3 tint_symbol_8 = uint3(0u); + thread float4 tint_symbol_9 = float4(0.0f); + thread float2x3 tint_symbol_10 = float2x3(float3(0.0f), float3(0.0f)); thread tint_array_wrapper tint_symbol_11 = {.arr={}}; thread S tint_symbol_12 = {}; - tint_symbol_3 = bool(); - tint_symbol_4 = int(); - tint_symbol_5 = uint(); - tint_symbol_6 = float(); - tint_symbol_7 = int2(); - tint_symbol_8 = uint3(); - tint_symbol_9 = float4(); - tint_symbol_10 = float2x3(); + tint_symbol_3 = false; + tint_symbol_4 = 0; + tint_symbol_5 = 0u; + tint_symbol_6 = 0.0f; + tint_symbol_7 = int2(0); + tint_symbol_8 = uint3(0u); + tint_symbol_9 = float4(0.0f); + tint_symbol_10 = float2x3(float3(0.0f), float3(0.0f)); tint_array_wrapper const tint_symbol_1 = {.arr={}}; tint_symbol_11 = tint_symbol_1; S const tint_symbol_2 = {}; diff --git a/test/tint/types/return_types.wgsl.expected.msl b/test/tint/types/return_types.wgsl.expected.msl index 2d5d9cb8d4..769204e8ea 100644 --- a/test/tint/types/return_types.wgsl.expected.msl +++ b/test/tint/types/return_types.wgsl.expected.msl @@ -6,35 +6,35 @@ struct S { }; bool ret_bool() { - return bool(); + return false; } int ret_i32() { - return int(); + return 0; } uint ret_u32() { - return uint(); + return 0u; } float ret_f32() { - return float(); + return 0.0f; } int2 ret_v2i32() { - return int2(); + return int2(0); } uint3 ret_v3u32() { - return uint3(); + return uint3(0u); } float4 ret_v4f32() { - return float4(); + return float4(0.0f); } float2x3 ret_m2x3() { - return float2x3(); + return float2x3(float3(0.0f), float3(0.0f)); } struct tint_array_wrapper { diff --git a/test/tint/var/inferred/function.wgsl.expected.msl b/test/tint/var/inferred/function.wgsl.expected.msl index ac84088451..8eebc86bfe 100644 --- a/test/tint/var/inferred/function.wgsl.expected.msl +++ b/test/tint/var/inferred/function.wgsl.expected.msl @@ -35,9 +35,9 @@ void var_decls() { int v1 = 1; uint v2 = 1u; float v3 = 1.0f; - int3 v4 = int3(1, 1, 1); - uint3 v5 = uint3(1u, 1u, 1u); - float3 v6 = float3(1.0f, 1.0f, 1.0f); + int3 v4 = int3(1); + uint3 v5 = uint3(1u); + float3 v6 = float3(1.0f); float3x3 v7 = float3x3(v6, v6, v6); MyStruct v8 = {.f1=1.0f}; tint_array_wrapper v9 = {.arr={}}; @@ -54,7 +54,7 @@ struct tint_symbol_1 { }; float4 tint_symbol_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return float4(0.0f); } fragment tint_symbol_1 tint_symbol() { diff --git a/test/tint/var/initialization/workgroup/array.wgsl.expected.msl b/test/tint/var/initialization/workgroup/array.wgsl.expected.msl index 89175b00aa..9157d88ddb 100644 --- a/test/tint/var/initialization/workgroup/array.wgsl.expected.msl +++ b/test/tint/var/initialization/workgroup/array.wgsl.expected.msl @@ -8,7 +8,7 @@ struct tint_array_wrapper { void tint_symbol_inner(uint local_invocation_index, threadgroup tint_array_wrapper* const tint_symbol_1) { for(uint idx = local_invocation_index; (idx < 3u); idx = (idx + 1u)) { uint const i = idx; - (*(tint_symbol_1)).arr[i] = int(); + (*(tint_symbol_1)).arr[i] = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); } diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.msl b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.msl index 0a507da342..348fc25805 100644 --- a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.msl +++ b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.msl @@ -7,7 +7,7 @@ struct tint_symbol_4 { void tint_symbol_inner(uint local_invocation_index, threadgroup float2x3* const tint_symbol_1) { { - *(tint_symbol_1) = float2x3(); + *(tint_symbol_1) = float2x3(float3(0.0f), float3(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); } diff --git a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.msl b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.msl index cbba65b25a..3829fc7306 100644 --- a/test/tint/var/initialization/workgroup/scalar.wgsl.expected.msl +++ b/test/tint/var/initialization/workgroup/scalar.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void tint_symbol_inner(uint local_invocation_index, threadgroup int* const tint_symbol_1) { { - *(tint_symbol_1) = int(); + *(tint_symbol_1) = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); } diff --git a/test/tint/var/initialization/workgroup/vector.wgsl.expected.msl b/test/tint/var/initialization/workgroup/vector.wgsl.expected.msl index d114b14cb6..5c498045c7 100644 --- a/test/tint/var/initialization/workgroup/vector.wgsl.expected.msl +++ b/test/tint/var/initialization/workgroup/vector.wgsl.expected.msl @@ -3,7 +3,7 @@ using namespace metal; void tint_symbol_inner(uint local_invocation_index, threadgroup int3* const tint_symbol_1) { { - *(tint_symbol_1) = int3(); + *(tint_symbol_1) = int3(0); } threadgroup_barrier(mem_flags::mem_threadgroup); } diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.msl b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.msl index 8435181bb7..fa73692385 100644 --- a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.msl +++ b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.msl @@ -106,106 +106,106 @@ struct tint_symbol_202 { void tint_symbol_inner(uint idx, threadgroup float2x2* const tint_symbol_1, threadgroup float2x2* const tint_symbol_2, threadgroup float2x2* const tint_symbol_3, threadgroup float2x2* const tint_symbol_4, threadgroup float2x2* const tint_symbol_5, threadgroup float2x2* const tint_symbol_6, threadgroup float2x2* const tint_symbol_7, threadgroup float2x2* const tint_symbol_8, threadgroup float2x2* const tint_symbol_9, threadgroup float2x2* const tint_symbol_10, threadgroup float2x2* const tint_symbol_11, threadgroup float2x2* const tint_symbol_12, threadgroup float2x2* const tint_symbol_13, threadgroup float2x2* const tint_symbol_14, threadgroup float2x2* const tint_symbol_15, threadgroup float2x2* const tint_symbol_16, threadgroup float2x2* const tint_symbol_17, threadgroup float2x2* const tint_symbol_18, threadgroup float2x2* const tint_symbol_19, threadgroup float2x2* const tint_symbol_20, threadgroup float2x2* const tint_symbol_21, threadgroup float2x2* const tint_symbol_22, threadgroup float2x2* const tint_symbol_23, threadgroup float2x2* const tint_symbol_24, threadgroup float2x2* const tint_symbol_25, threadgroup float2x2* const tint_symbol_26, threadgroup float2x2* const tint_symbol_27, threadgroup float2x2* const tint_symbol_28, threadgroup float2x2* const tint_symbol_29, threadgroup float2x2* const tint_symbol_30, threadgroup float2x2* const tint_symbol_31, threadgroup float2x2* const tint_symbol_32, threadgroup float2x2* const tint_symbol_33, threadgroup float2x2* const tint_symbol_34, threadgroup float2x2* const tint_symbol_35, threadgroup float2x2* const tint_symbol_36, threadgroup float2x2* const tint_symbol_37, threadgroup float2x2* const tint_symbol_38, threadgroup float2x2* const tint_symbol_39, threadgroup float2x2* const tint_symbol_40, threadgroup float2x2* const tint_symbol_41, threadgroup float2x2* const tint_symbol_42, threadgroup float2x2* const tint_symbol_43, threadgroup float2x2* const tint_symbol_44, threadgroup float2x2* const tint_symbol_45, threadgroup float2x2* const tint_symbol_46, threadgroup float2x2* const tint_symbol_47, threadgroup float2x2* const tint_symbol_48, threadgroup float2x2* const tint_symbol_49, threadgroup float2x2* const tint_symbol_50, threadgroup float2x2* const tint_symbol_51, threadgroup float2x2* const tint_symbol_52, threadgroup float2x2* const tint_symbol_53, threadgroup float2x2* const tint_symbol_54, threadgroup float2x2* const tint_symbol_55, threadgroup float2x2* const tint_symbol_56, threadgroup float2x2* const tint_symbol_57, threadgroup float2x2* const tint_symbol_58, threadgroup float2x2* const tint_symbol_59, threadgroup float2x2* const tint_symbol_60, threadgroup float2x2* const tint_symbol_61, threadgroup float2x2* const tint_symbol_62, threadgroup float2x2* const tint_symbol_63, threadgroup float2x2* const tint_symbol_64, threadgroup float2x2* const tint_symbol_65, threadgroup float2x2* const tint_symbol_66, threadgroup float2x2* const tint_symbol_67, threadgroup float2x2* const tint_symbol_68, threadgroup float2x2* const tint_symbol_69, threadgroup float2x2* const tint_symbol_70, threadgroup float2x2* const tint_symbol_71, threadgroup float2x2* const tint_symbol_72, threadgroup float2x2* const tint_symbol_73, threadgroup float2x2* const tint_symbol_74, threadgroup float2x2* const tint_symbol_75, threadgroup float2x2* const tint_symbol_76, threadgroup float2x2* const tint_symbol_77, threadgroup float2x2* const tint_symbol_78, threadgroup float2x2* const tint_symbol_79, threadgroup float2x2* const tint_symbol_80, threadgroup float2x2* const tint_symbol_81, threadgroup float2x2* const tint_symbol_82, threadgroup float2x2* const tint_symbol_83, threadgroup float2x2* const tint_symbol_84, threadgroup float2x2* const tint_symbol_85, threadgroup float2x2* const tint_symbol_86, threadgroup float2x2* const tint_symbol_87, threadgroup float2x2* const tint_symbol_88, threadgroup float2x2* const tint_symbol_89, threadgroup float2x2* const tint_symbol_90, threadgroup float2x2* const tint_symbol_91, threadgroup float2x2* const tint_symbol_92, threadgroup float2x2* const tint_symbol_93, threadgroup float2x2* const tint_symbol_94, threadgroup float2x2* const tint_symbol_95, threadgroup float2x2* const tint_symbol_96, threadgroup float2x2* const tint_symbol_97, threadgroup float2x2* const tint_symbol_98, threadgroup float2x2* const tint_symbol_99, threadgroup float2x2* const tint_symbol_100) { { - *(tint_symbol_1) = float2x2(); - *(tint_symbol_2) = float2x2(); - *(tint_symbol_3) = float2x2(); - *(tint_symbol_4) = float2x2(); - *(tint_symbol_5) = float2x2(); - *(tint_symbol_6) = float2x2(); - *(tint_symbol_7) = float2x2(); - *(tint_symbol_8) = float2x2(); - *(tint_symbol_9) = float2x2(); - *(tint_symbol_10) = float2x2(); - *(tint_symbol_11) = float2x2(); - *(tint_symbol_12) = float2x2(); - *(tint_symbol_13) = float2x2(); - *(tint_symbol_14) = float2x2(); - *(tint_symbol_15) = float2x2(); - *(tint_symbol_16) = float2x2(); - *(tint_symbol_17) = float2x2(); - *(tint_symbol_18) = float2x2(); - *(tint_symbol_19) = float2x2(); - *(tint_symbol_20) = float2x2(); - *(tint_symbol_21) = float2x2(); - *(tint_symbol_22) = float2x2(); - *(tint_symbol_23) = float2x2(); - *(tint_symbol_24) = float2x2(); - *(tint_symbol_25) = float2x2(); - *(tint_symbol_26) = float2x2(); - *(tint_symbol_27) = float2x2(); - *(tint_symbol_28) = float2x2(); - *(tint_symbol_29) = float2x2(); - *(tint_symbol_30) = float2x2(); - *(tint_symbol_31) = float2x2(); - *(tint_symbol_32) = float2x2(); - *(tint_symbol_33) = float2x2(); - *(tint_symbol_34) = float2x2(); - *(tint_symbol_35) = float2x2(); - *(tint_symbol_36) = float2x2(); - *(tint_symbol_37) = float2x2(); - *(tint_symbol_38) = float2x2(); - *(tint_symbol_39) = float2x2(); - *(tint_symbol_40) = float2x2(); - *(tint_symbol_41) = float2x2(); - *(tint_symbol_42) = float2x2(); - *(tint_symbol_43) = float2x2(); - *(tint_symbol_44) = float2x2(); - *(tint_symbol_45) = float2x2(); - *(tint_symbol_46) = float2x2(); - *(tint_symbol_47) = float2x2(); - *(tint_symbol_48) = float2x2(); - *(tint_symbol_49) = float2x2(); - *(tint_symbol_50) = float2x2(); - *(tint_symbol_51) = float2x2(); - *(tint_symbol_52) = float2x2(); - *(tint_symbol_53) = float2x2(); - *(tint_symbol_54) = float2x2(); - *(tint_symbol_55) = float2x2(); - *(tint_symbol_56) = float2x2(); - *(tint_symbol_57) = float2x2(); - *(tint_symbol_58) = float2x2(); - *(tint_symbol_59) = float2x2(); - *(tint_symbol_60) = float2x2(); - *(tint_symbol_61) = float2x2(); - *(tint_symbol_62) = float2x2(); - *(tint_symbol_63) = float2x2(); - *(tint_symbol_64) = float2x2(); - *(tint_symbol_65) = float2x2(); - *(tint_symbol_66) = float2x2(); - *(tint_symbol_67) = float2x2(); - *(tint_symbol_68) = float2x2(); - *(tint_symbol_69) = float2x2(); - *(tint_symbol_70) = float2x2(); - *(tint_symbol_71) = float2x2(); - *(tint_symbol_72) = float2x2(); - *(tint_symbol_73) = float2x2(); - *(tint_symbol_74) = float2x2(); - *(tint_symbol_75) = float2x2(); - *(tint_symbol_76) = float2x2(); - *(tint_symbol_77) = float2x2(); - *(tint_symbol_78) = float2x2(); - *(tint_symbol_79) = float2x2(); - *(tint_symbol_80) = float2x2(); - *(tint_symbol_81) = float2x2(); - *(tint_symbol_82) = float2x2(); - *(tint_symbol_83) = float2x2(); - *(tint_symbol_84) = float2x2(); - *(tint_symbol_85) = float2x2(); - *(tint_symbol_86) = float2x2(); - *(tint_symbol_87) = float2x2(); - *(tint_symbol_88) = float2x2(); - *(tint_symbol_89) = float2x2(); - *(tint_symbol_90) = float2x2(); - *(tint_symbol_91) = float2x2(); - *(tint_symbol_92) = float2x2(); - *(tint_symbol_93) = float2x2(); - *(tint_symbol_94) = float2x2(); - *(tint_symbol_95) = float2x2(); - *(tint_symbol_96) = float2x2(); - *(tint_symbol_97) = float2x2(); - *(tint_symbol_98) = float2x2(); - *(tint_symbol_99) = float2x2(); - *(tint_symbol_100) = float2x2(); + *(tint_symbol_1) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_2) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_3) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_4) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_5) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_6) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_7) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_8) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_9) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_10) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_11) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_12) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_13) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_14) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_15) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_16) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_17) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_18) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_19) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_20) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_21) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_22) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_23) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_24) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_25) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_26) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_27) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_28) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_29) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_30) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_31) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_32) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_33) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_34) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_35) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_36) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_37) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_38) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_39) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_40) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_41) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_42) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_43) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_44) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_45) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_46) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_47) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_48) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_49) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_50) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_51) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_52) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_53) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_54) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_55) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_56) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_57) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_58) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_59) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_60) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_61) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_62) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_63) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_64) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_65) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_66) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_67) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_68) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_69) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_70) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_71) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_72) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_73) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_74) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_75) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_76) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_77) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_78) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_79) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_80) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_81) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_82) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_83) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_84) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_85) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_86) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_87) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_88) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_89) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_90) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_91) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_92) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_93) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_94) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_95) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_96) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_97) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_98) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_99) = float2x2(float2(0.0f), float2(0.0f)); + *(tint_symbol_100) = float2x2(float2(0.0f), float2(0.0f)); } threadgroup_barrier(mem_flags::mem_threadgroup); (*(tint_symbol_1))[0][0] = 1.0f; diff --git a/test/tint/var/uses/workgroup.wgsl.expected.msl b/test/tint/var/uses/workgroup.wgsl.expected.msl index 94f106ffe7..1da99299db 100644 --- a/test/tint/var/uses/workgroup.wgsl.expected.msl +++ b/test/tint/var/uses/workgroup.wgsl.expected.msl @@ -26,7 +26,7 @@ void outer(threadgroup int* const tint_symbol_4, threadgroup int* const tint_sym void main1_inner(uint local_invocation_index, threadgroup int* const tint_symbol_6) { { - *(tint_symbol_6) = int(); + *(tint_symbol_6) = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); *(tint_symbol_6) = 42; @@ -41,7 +41,7 @@ kernel void main1(uint local_invocation_index [[thread_index_in_threadgroup]]) { void main2_inner(uint local_invocation_index_1, threadgroup int* const tint_symbol_8) { { - *(tint_symbol_8) = int(); + *(tint_symbol_8) = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); *(tint_symbol_8) = 7; @@ -56,8 +56,8 @@ kernel void main2(uint local_invocation_index_1 [[thread_index_in_threadgroup]]) void main3_inner(uint local_invocation_index_2, threadgroup int* const tint_symbol_10, threadgroup int* const tint_symbol_11) { { - *(tint_symbol_10) = int(); - *(tint_symbol_11) = int(); + *(tint_symbol_10) = 0; + *(tint_symbol_11) = 0; } threadgroup_barrier(mem_flags::mem_threadgroup); outer(tint_symbol_10, tint_symbol_11);