From e9f8b09063742796695b400a667d44e7260ade6d Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 1 Jun 2022 13:14:39 +0000 Subject: [PATCH] tint/writer/hlsl: Inline constant expressions This is required to handle materialized values, and for constant expressions. Bug: tint:1504 Change-Id: I79ad567954de2d1cfea09dda255894e4e2aa678e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92081 Kokoro: Kokoro Reviewed-by: Antonio Maiorano Commit-Queue: Ben Clayton --- src/tint/writer/hlsl/generator_impl.cc | 143 +++++++++++-- src/tint/writer/hlsl/generator_impl.h | 6 + .../writer/hlsl/generator_impl_assign_test.cc | 6 +- .../writer/hlsl/generator_impl_binary_test.cc | 18 +- .../hlsl/generator_impl_builtin_test.cc | 4 +- .../generator_impl_builtin_texture_test.cc | 2 +- .../writer/hlsl/generator_impl_cast_test.cc | 4 +- .../hlsl/generator_impl_constructor_test.cc | 20 +- .../hlsl/generator_impl_function_test.cc | 14 +- .../generator_impl_member_accessor_test.cc | 2 +- ...rator_impl_variable_decl_statement_test.cc | 4 +- .../tint/access/let/matrix.wgsl.expected.hlsl | 2 +- .../tint/access/let/vector.wgsl.expected.hlsl | 6 +- .../access/var/matrix.spvasm.expected.hlsl | 2 +- .../access/var/vector.spvasm.expected.hlsl | 2 +- .../assign_to_function_var.wgsl.expected.hlsl | 2 +- .../assign_to_private_var.wgsl.expected.hlsl | 2 +- .../assign_to_storage_var.wgsl.expected.hlsl | 2 +- ...assign_to_workgroup_var.wgsl.expected.hlsl | 2 +- .../array/type_constructor.wgsl.expected.hlsl | 8 +- .../dynamic_index/write.wgsl.expected.hlsl | 10 +- .../static_index/write.wgsl.expected.hlsl | 10 +- .../types/runtime_array.wgsl.expected.hlsl | 2 +- .../bug/chromium/1251009.wgsl.expected.hlsl | 2 +- .../bug/chromium/1273230.wgsl.expected.hlsl | 8 +- test/tint/bug/dawn/947.wgsl.expected.hlsl | 6 +- .../1112.wgsl.expected.hlsl | 2 +- .../1206.wgsl.expected.hlsl | 2 +- .../local_assign_vector.wgsl.expected.hlsl | 2 +- .../module_assign_vector.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/1088.spvasm.expected.hlsl | 2 +- test/tint/bug/tint/1113.wgsl.expected.hlsl | 8 +- test/tint/bug/tint/1118.wgsl.expected.hlsl | 28 +-- test/tint/bug/tint/1121.wgsl.expected.hlsl | 10 +- test/tint/bug/tint/1385.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/1520.spvasm.expected.hlsl | 36 ++-- test/tint/bug/tint/292.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/403.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/413.spvasm.expected.hlsl | 2 +- test/tint/bug/tint/453.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/534.wgsl.expected.hlsl | 4 +- test/tint/bug/tint/749.spvasm.expected.hlsl | 82 +++---- test/tint/bug/tint/764.wgsl.expected.hlsl | 4 +- test/tint/bug/tint/824.wgsl.expected.hlsl | 4 +- test/tint/bug/tint/825.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/827.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/913.wgsl.expected.hlsl | 2 +- test/tint/bug/tint/914.wgsl.expected.hlsl | 40 ++-- test/tint/bug/tint/922.wgsl.expected.hlsl | 4 +- test/tint/bug/tint/942.wgsl.expected.hlsl | 6 +- test/tint/bug/tint/943.spvasm.expected.hlsl | 2 +- test/tint/bug/tint/948.wgsl.expected.hlsl | 12 +- test/tint/bug/tint/949.wgsl.expected.hlsl | 16 +- test/tint/bug/tint/980.wgsl.expected.hlsl | 2 +- .../extractBits/vec3/i32.spvasm.expected.hlsl | 2 +- .../extractBits/vec3/u32.spvasm.expected.hlsl | 2 +- .../gen/abs/002533.wgsl.expected.hlsl | 4 +- .../gen/abs/005174.wgsl.expected.hlsl | 4 +- .../gen/abs/1ce782.wgsl.expected.hlsl | 4 +- .../gen/abs/1e9d53.wgsl.expected.hlsl | 4 +- .../gen/abs/467cd1.wgsl.expected.hlsl | 2 +- .../gen/abs/4ad288.wgsl.expected.hlsl | 2 +- .../gen/abs/5ad50a.wgsl.expected.hlsl | 4 +- .../gen/abs/7326de.wgsl.expected.hlsl | 4 +- .../gen/abs/7f28e6.wgsl.expected.hlsl | 4 +- .../gen/abs/7faa9e.wgsl.expected.hlsl | 4 +- .../gen/abs/9c80a6.wgsl.expected.hlsl | 4 +- .../gen/abs/b96037.wgsl.expected.hlsl | 2 +- .../gen/acos/489247.wgsl.expected.hlsl | 2 +- .../gen/acos/8e2acf.wgsl.expected.hlsl | 4 +- .../gen/acos/a610c4.wgsl.expected.hlsl | 4 +- .../gen/acos/dfc915.wgsl.expected.hlsl | 4 +- .../gen/all/353d6a.wgsl.expected.hlsl | 2 +- .../gen/all/986c7b.wgsl.expected.hlsl | 4 +- .../gen/all/bd2dba.wgsl.expected.hlsl | 4 +- .../gen/all/f46790.wgsl.expected.hlsl | 4 +- .../gen/any/083428.wgsl.expected.hlsl | 4 +- .../gen/any/0e3e58.wgsl.expected.hlsl | 4 +- .../gen/any/2ab91a.wgsl.expected.hlsl | 2 +- .../gen/any/e755c1.wgsl.expected.hlsl | 4 +- .../gen/arrayLength/1588cd.wgsl.expected.hlsl | 2 +- .../gen/arrayLength/61b1c7.wgsl.expected.hlsl | 2 +- .../gen/arrayLength/a0f5ca.wgsl.expected.hlsl | 2 +- .../gen/arrayLength/cdd123.wgsl.expected.hlsl | 2 +- .../gen/arrayLength/cfca0a.wgsl.expected.hlsl | 2 +- .../gen/arrayLength/eb510f.wgsl.expected.hlsl | 2 +- .../gen/asin/064953.wgsl.expected.hlsl | 4 +- .../gen/asin/7b6a44.wgsl.expected.hlsl | 4 +- .../gen/asin/8cd9c9.wgsl.expected.hlsl | 4 +- .../gen/asin/c0c272.wgsl.expected.hlsl | 2 +- .../gen/atan/02979a.wgsl.expected.hlsl | 2 +- .../gen/atan/331e6d.wgsl.expected.hlsl | 4 +- .../gen/atan/a8b696.wgsl.expected.hlsl | 4 +- .../gen/atan/ad96e4.wgsl.expected.hlsl | 4 +- .../gen/atan2/57fb13.wgsl.expected.hlsl | 4 +- .../gen/atan2/96057c.wgsl.expected.hlsl | 2 +- .../gen/atan2/a70d0d.wgsl.expected.hlsl | 4 +- .../gen/atan2/ae713e.wgsl.expected.hlsl | 4 +- .../gen/ceil/34064b.wgsl.expected.hlsl | 4 +- .../gen/ceil/678655.wgsl.expected.hlsl | 2 +- .../gen/ceil/96f597.wgsl.expected.hlsl | 4 +- .../gen/ceil/b74c16.wgsl.expected.hlsl | 4 +- .../gen/clamp/0acf8f.wgsl.expected.hlsl | 4 +- .../gen/clamp/1a32e3.wgsl.expected.hlsl | 4 +- .../gen/clamp/2bd567.wgsl.expected.hlsl | 2 +- .../gen/clamp/2bde41.wgsl.expected.hlsl | 4 +- .../gen/clamp/548fc7.wgsl.expected.hlsl | 4 +- .../gen/clamp/5f0819.wgsl.expected.hlsl | 4 +- .../gen/clamp/6c1749.wgsl.expected.hlsl | 4 +- .../gen/clamp/7706d7.wgsl.expected.hlsl | 4 +- .../gen/clamp/867397.wgsl.expected.hlsl | 4 +- .../gen/clamp/a2de25.wgsl.expected.hlsl | 2 +- .../gen/clamp/b07c65.wgsl.expected.hlsl | 2 +- .../gen/clamp/bd43ce.wgsl.expected.hlsl | 4 +- .../gen/cos/16dc15.wgsl.expected.hlsl | 4 +- .../gen/cos/29d66d.wgsl.expected.hlsl | 4 +- .../gen/cos/c3b486.wgsl.expected.hlsl | 4 +- .../gen/cos/c5c28e.wgsl.expected.hlsl | 2 +- .../gen/cosh/377652.wgsl.expected.hlsl | 4 +- .../gen/cosh/c13756.wgsl.expected.hlsl | 4 +- .../gen/cosh/da92dd.wgsl.expected.hlsl | 2 +- .../gen/cosh/e0c1de.wgsl.expected.hlsl | 4 +- .../208d46.wgsl.expected.hlsl | 2 +- .../6d4656.wgsl.expected.hlsl | 2 +- .../70783f.wgsl.expected.hlsl | 16 +- .../7c38a6.wgsl.expected.hlsl | 16 +- .../858d40.wgsl.expected.hlsl | 16 +- .../ab6345.wgsl.expected.hlsl | 16 +- .../eab32b.wgsl.expected.hlsl | 16 +- .../f70103.wgsl.expected.hlsl | 16 +- .../countOneBits/0d0e46.wgsl.expected.hlsl | 4 +- .../countOneBits/0f7980.wgsl.expected.hlsl | 4 +- .../countOneBits/65d2ae.wgsl.expected.hlsl | 4 +- .../countOneBits/690cfc.wgsl.expected.hlsl | 4 +- .../countOneBits/94fd81.wgsl.expected.hlsl | 4 +- .../countOneBits/ae44f9.wgsl.expected.hlsl | 2 +- .../countOneBits/af90e2.wgsl.expected.hlsl | 4 +- .../countOneBits/fd88b2.wgsl.expected.hlsl | 2 +- .../1ad138.wgsl.expected.hlsl | 16 +- .../1dc84a.wgsl.expected.hlsl | 16 +- .../21e394.wgsl.expected.hlsl | 2 +- .../327c37.wgsl.expected.hlsl | 16 +- .../42fed6.wgsl.expected.hlsl | 2 +- .../8ed26f.wgsl.expected.hlsl | 16 +- .../acfacb.wgsl.expected.hlsl | 16 +- .../d2b4a0.wgsl.expected.hlsl | 16 +- .../gen/cross/041cb0.wgsl.expected.hlsl | 4 +- .../gen/degrees/0d170c.wgsl.expected.hlsl | 4 +- .../gen/degrees/1ad5df.wgsl.expected.hlsl | 4 +- .../gen/degrees/2af623.wgsl.expected.hlsl | 4 +- .../gen/degrees/51f705.wgsl.expected.hlsl | 2 +- .../gen/determinant/2b62ba.wgsl.expected.hlsl | 4 +- .../gen/determinant/a0a87c.wgsl.expected.hlsl | 4 +- .../gen/determinant/e19305.wgsl.expected.hlsl | 4 +- .../gen/distance/0657d4.wgsl.expected.hlsl | 4 +- .../gen/distance/9646ea.wgsl.expected.hlsl | 4 +- .../gen/distance/aa4055.wgsl.expected.hlsl | 4 +- .../gen/distance/cfed73.wgsl.expected.hlsl | 2 +- .../gen/dot/0c577b.wgsl.expected.hlsl | 4 +- .../gen/dot/7548a0.wgsl.expected.hlsl | 4 +- .../gen/dot/883f0e.wgsl.expected.hlsl | 4 +- .../gen/dot/97c7ee.wgsl.expected.hlsl | 4 +- .../gen/dot/ba4246.wgsl.expected.hlsl | 4 +- .../gen/dot/e994c7.wgsl.expected.hlsl | 4 +- .../gen/dot/ef6b1d.wgsl.expected.hlsl | 4 +- .../gen/dot/f1312c.wgsl.expected.hlsl | 4 +- .../gen/dot/fc5f7c.wgsl.expected.hlsl | 4 +- .../gen/dpdx/0763f7.wgsl.expected.hlsl | 2 +- .../gen/dpdx/99edb1.wgsl.expected.hlsl | 2 +- .../gen/dpdx/c487fa.wgsl.expected.hlsl | 2 +- .../gen/dpdxCoarse/9581cf.wgsl.expected.hlsl | 2 +- .../gen/dpdxCoarse/c28641.wgsl.expected.hlsl | 2 +- .../gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl | 2 +- .../gen/dpdxFine/8c5069.wgsl.expected.hlsl | 2 +- .../gen/dpdxFine/9631de.wgsl.expected.hlsl | 2 +- .../gen/dpdxFine/f92fb6.wgsl.expected.hlsl | 2 +- .../gen/dpdy/699a05.wgsl.expected.hlsl | 2 +- .../gen/dpdy/a8b56e.wgsl.expected.hlsl | 2 +- .../gen/dpdy/feb40f.wgsl.expected.hlsl | 2 +- .../gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl | 2 +- .../gen/dpdyCoarse/445d24.wgsl.expected.hlsl | 2 +- .../gen/dpdyCoarse/ae1873.wgsl.expected.hlsl | 2 +- .../gen/dpdyFine/1fb7ab.wgsl.expected.hlsl | 2 +- .../gen/dpdyFine/d0a648.wgsl.expected.hlsl | 2 +- .../gen/dpdyFine/df33aa.wgsl.expected.hlsl | 2 +- .../gen/exp/0f70eb.wgsl.expected.hlsl | 4 +- .../gen/exp/1951e7.wgsl.expected.hlsl | 4 +- .../gen/exp/771fd2.wgsl.expected.hlsl | 2 +- .../gen/exp/d98450.wgsl.expected.hlsl | 4 +- .../gen/exp2/1f8680.wgsl.expected.hlsl | 4 +- .../gen/exp2/a9d0a7.wgsl.expected.hlsl | 4 +- .../gen/exp2/d6777c.wgsl.expected.hlsl | 4 +- .../gen/exp2/dea523.wgsl.expected.hlsl | 2 +- .../gen/extractBits/12b197.wgsl.expected.hlsl | 4 +- .../gen/extractBits/249874.wgsl.expected.hlsl | 2 +- .../gen/extractBits/631377.wgsl.expected.hlsl | 4 +- .../gen/extractBits/a99a8d.wgsl.expected.hlsl | 4 +- .../gen/extractBits/ce81f8.wgsl.expected.hlsl | 2 +- .../gen/extractBits/e04f5d.wgsl.expected.hlsl | 4 +- .../gen/extractBits/f28f69.wgsl.expected.hlsl | 4 +- .../gen/extractBits/fb850f.wgsl.expected.hlsl | 4 +- .../gen/faceForward/5afbd5.wgsl.expected.hlsl | 4 +- .../gen/faceForward/b316e5.wgsl.expected.hlsl | 4 +- .../gen/faceForward/e6908b.wgsl.expected.hlsl | 4 +- .../firstLeadingBit/000ff3.wgsl.expected.hlsl | 16 +- .../firstLeadingBit/35053e.wgsl.expected.hlsl | 18 +- .../firstLeadingBit/3fd7d0.wgsl.expected.hlsl | 16 +- .../firstLeadingBit/57a1a3.wgsl.expected.hlsl | 2 +- .../firstLeadingBit/6fe804.wgsl.expected.hlsl | 16 +- .../firstLeadingBit/a622c2.wgsl.expected.hlsl | 18 +- .../firstLeadingBit/c1f940.wgsl.expected.hlsl | 18 +- .../firstLeadingBit/f0779d.wgsl.expected.hlsl | 2 +- .../110f2c.wgsl.expected.hlsl | 16 +- .../3a2acc.wgsl.expected.hlsl | 2 +- .../45eb10.wgsl.expected.hlsl | 16 +- .../47d475.wgsl.expected.hlsl | 2 +- .../50c072.wgsl.expected.hlsl | 16 +- .../7496d6.wgsl.expected.hlsl | 16 +- .../86551b.wgsl.expected.hlsl | 16 +- .../cb51ce.wgsl.expected.hlsl | 16 +- .../gen/floor/3bccc4.wgsl.expected.hlsl | 4 +- .../gen/floor/5fc9ac.wgsl.expected.hlsl | 4 +- .../gen/floor/60d7ea.wgsl.expected.hlsl | 4 +- .../gen/floor/66f154.wgsl.expected.hlsl | 2 +- .../gen/fma/26a7a9.wgsl.expected.hlsl | 4 +- .../gen/fma/6a3283.wgsl.expected.hlsl | 4 +- .../gen/fma/c10ba3.wgsl.expected.hlsl | 2 +- .../gen/fma/e17c5c.wgsl.expected.hlsl | 4 +- .../gen/fract/8bc1e9.wgsl.expected.hlsl | 4 +- .../gen/fract/943cb1.wgsl.expected.hlsl | 4 +- .../gen/fract/a49758.wgsl.expected.hlsl | 4 +- .../gen/fract/fa5c71.wgsl.expected.hlsl | 2 +- .../gen/frexp/368997.wgsl.expected.hlsl | 4 +- .../gen/frexp/3c4f48.wgsl.expected.hlsl | 4 +- .../gen/frexp/4bdfc7.wgsl.expected.hlsl | 4 +- .../gen/frexp/eabd40.wgsl.expected.hlsl | 2 +- .../gen/fwidth/5d1b39.wgsl.expected.hlsl | 2 +- .../gen/fwidth/b83ebb.wgsl.expected.hlsl | 2 +- .../gen/fwidth/d2ab9a.wgsl.expected.hlsl | 2 +- .../fwidthCoarse/1e59d9.wgsl.expected.hlsl | 2 +- .../fwidthCoarse/4e4fc4.wgsl.expected.hlsl | 2 +- .../fwidthCoarse/e653f7.wgsl.expected.hlsl | 2 +- .../gen/fwidthFine/523fdc.wgsl.expected.hlsl | 2 +- .../gen/fwidthFine/68f4ef.wgsl.expected.hlsl | 2 +- .../gen/fwidthFine/ff6aa0.wgsl.expected.hlsl | 2 +- .../gen/insertBits/3c7ba5.wgsl.expected.hlsl | 4 +- .../gen/insertBits/428b0b.wgsl.expected.hlsl | 4 +- .../gen/insertBits/51ede1.wgsl.expected.hlsl | 4 +- .../gen/insertBits/65468b.wgsl.expected.hlsl | 2 +- .../gen/insertBits/87826b.wgsl.expected.hlsl | 4 +- .../gen/insertBits/d86978.wgsl.expected.hlsl | 4 +- .../gen/insertBits/e3e3a2.wgsl.expected.hlsl | 2 +- .../gen/insertBits/fe6ba6.wgsl.expected.hlsl | 4 +- .../gen/inverseSqrt/84407e.wgsl.expected.hlsl | 2 +- .../gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl | 4 +- .../gen/inverseSqrt/b197b1.wgsl.expected.hlsl | 4 +- .../gen/inverseSqrt/c22347.wgsl.expected.hlsl | 4 +- .../gen/ldexp/a31cdc.wgsl.expected.hlsl | 4 +- .../gen/ldexp/abd718.wgsl.expected.hlsl | 4 +- .../gen/ldexp/cc9cde.wgsl.expected.hlsl | 4 +- .../gen/ldexp/db8b49.wgsl.expected.hlsl | 2 +- .../gen/length/056071.wgsl.expected.hlsl | 4 +- .../gen/length/602a17.wgsl.expected.hlsl | 2 +- .../gen/length/afde8b.wgsl.expected.hlsl | 4 +- .../gen/length/becebf.wgsl.expected.hlsl | 4 +- .../gen/log/3da25a.wgsl.expected.hlsl | 4 +- .../gen/log/7114a6.wgsl.expected.hlsl | 2 +- .../gen/log/b2ce28.wgsl.expected.hlsl | 4 +- .../gen/log/f4c570.wgsl.expected.hlsl | 4 +- .../gen/log2/4036ed.wgsl.expected.hlsl | 2 +- .../gen/log2/902988.wgsl.expected.hlsl | 4 +- .../gen/log2/adb233.wgsl.expected.hlsl | 4 +- .../gen/log2/aea659.wgsl.expected.hlsl | 4 +- .../gen/max/0c0aae.wgsl.expected.hlsl | 2 +- .../gen/max/25eafe.wgsl.expected.hlsl | 4 +- .../gen/max/320815.wgsl.expected.hlsl | 4 +- .../gen/max/44a39d.wgsl.expected.hlsl | 2 +- .../gen/max/453e04.wgsl.expected.hlsl | 4 +- .../gen/max/462050.wgsl.expected.hlsl | 4 +- .../gen/max/4883ac.wgsl.expected.hlsl | 4 +- .../gen/max/85e6bc.wgsl.expected.hlsl | 4 +- .../gen/max/a93419.wgsl.expected.hlsl | 4 +- .../gen/max/b1b73a.wgsl.expected.hlsl | 4 +- .../gen/max/ce7c30.wgsl.expected.hlsl | 2 +- .../gen/max/e8192f.wgsl.expected.hlsl | 4 +- .../gen/min/03c7e3.wgsl.expected.hlsl | 4 +- .../gen/min/0dc614.wgsl.expected.hlsl | 4 +- .../gen/min/3941e1.wgsl.expected.hlsl | 4 +- .../gen/min/46c5d3.wgsl.expected.hlsl | 2 +- .../gen/min/82b28f.wgsl.expected.hlsl | 4 +- .../gen/min/93cfc4.wgsl.expected.hlsl | 4 +- .../gen/min/a45171.wgsl.expected.hlsl | 4 +- .../gen/min/aa28ad.wgsl.expected.hlsl | 4 +- .../gen/min/af326d.wgsl.expected.hlsl | 2 +- .../gen/min/c70bb7.wgsl.expected.hlsl | 4 +- .../gen/min/c73147.wgsl.expected.hlsl | 2 +- .../gen/min/c76fa6.wgsl.expected.hlsl | 4 +- .../gen/mix/0c8c33.wgsl.expected.hlsl | 4 +- .../gen/mix/1faeb1.wgsl.expected.hlsl | 4 +- .../gen/mix/2fadab.wgsl.expected.hlsl | 4 +- .../gen/mix/315264.wgsl.expected.hlsl | 4 +- .../gen/mix/4f0b5e.wgsl.expected.hlsl | 2 +- .../gen/mix/6f8adc.wgsl.expected.hlsl | 4 +- .../gen/mix/c37ede.wgsl.expected.hlsl | 4 +- .../gen/modf/180fed.wgsl.expected.hlsl | 2 +- .../gen/modf/9b75f7.wgsl.expected.hlsl | 4 +- .../gen/modf/ec2dbc.wgsl.expected.hlsl | 4 +- .../gen/modf/f5f20d.wgsl.expected.hlsl | 4 +- .../gen/normalize/64d8c0.wgsl.expected.hlsl | 4 +- .../gen/normalize/9a0aab.wgsl.expected.hlsl | 4 +- .../gen/normalize/fc2ef1.wgsl.expected.hlsl | 4 +- .../pack2x16float/0e97b3.wgsl.expected.hlsl | 4 +- .../pack2x16snorm/6c169b.wgsl.expected.hlsl | 4 +- .../pack2x16unorm/0f08e4.wgsl.expected.hlsl | 4 +- .../pack4x8snorm/4d22e7.wgsl.expected.hlsl | 4 +- .../pack4x8unorm/95c456.wgsl.expected.hlsl | 4 +- .../gen/pow/04a908.wgsl.expected.hlsl | 4 +- .../gen/pow/46e029.wgsl.expected.hlsl | 2 +- .../gen/pow/4a46c9.wgsl.expected.hlsl | 4 +- .../gen/pow/e60ea5.wgsl.expected.hlsl | 4 +- .../gen/radians/09b7fc.wgsl.expected.hlsl | 4 +- .../gen/radians/61687a.wgsl.expected.hlsl | 4 +- .../gen/radians/6b0ff2.wgsl.expected.hlsl | 2 +- .../gen/radians/f96258.wgsl.expected.hlsl | 4 +- .../gen/reflect/05357e.wgsl.expected.hlsl | 4 +- .../gen/reflect/b61e10.wgsl.expected.hlsl | 4 +- .../gen/reflect/f47fdb.wgsl.expected.hlsl | 4 +- .../gen/refract/7e02e6.wgsl.expected.hlsl | 4 +- .../gen/refract/cbc1d2.wgsl.expected.hlsl | 4 +- .../gen/refract/cd905f.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/222177.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/35fea9.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/4dbd6f.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/7c4269.wgsl.expected.hlsl | 2 +- .../gen/reverseBits/a6ccd4.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/c21bc1.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/e1f4c1.wgsl.expected.hlsl | 4 +- .../gen/reverseBits/e31adf.wgsl.expected.hlsl | 2 +- .../gen/round/106c0b.wgsl.expected.hlsl | 4 +- .../gen/round/1c7897.wgsl.expected.hlsl | 4 +- .../gen/round/52c84d.wgsl.expected.hlsl | 4 +- .../gen/round/9edc38.wgsl.expected.hlsl | 2 +- .../gen/select/00b848.wgsl.expected.hlsl | 4 +- .../gen/select/01e2cd.wgsl.expected.hlsl | 4 +- .../gen/select/087ea4.wgsl.expected.hlsl | 4 +- .../gen/select/1e960b.wgsl.expected.hlsl | 4 +- .../gen/select/266aff.wgsl.expected.hlsl | 4 +- .../gen/select/28a27e.wgsl.expected.hlsl | 4 +- .../gen/select/3c25ce.wgsl.expected.hlsl | 4 +- .../gen/select/416e14.wgsl.expected.hlsl | 2 +- .../gen/select/51b047.wgsl.expected.hlsl | 4 +- .../gen/select/713567.wgsl.expected.hlsl | 4 +- .../gen/select/78be5f.wgsl.expected.hlsl | 4 +- .../gen/select/80a9a9.wgsl.expected.hlsl | 4 +- .../gen/select/8fa62c.wgsl.expected.hlsl | 4 +- .../gen/select/99f883.wgsl.expected.hlsl | 2 +- .../gen/select/a2860e.wgsl.expected.hlsl | 4 +- .../gen/select/ab069f.wgsl.expected.hlsl | 4 +- .../gen/select/b04721.wgsl.expected.hlsl | 4 +- .../gen/select/bb447f.wgsl.expected.hlsl | 4 +- .../gen/select/bb8aae.wgsl.expected.hlsl | 4 +- .../gen/select/bf3d29.wgsl.expected.hlsl | 4 +- .../gen/select/c31f9e.wgsl.expected.hlsl | 2 +- .../gen/select/c41bd1.wgsl.expected.hlsl | 4 +- .../gen/select/c4a4ef.wgsl.expected.hlsl | 4 +- .../gen/select/cb9301.wgsl.expected.hlsl | 4 +- .../gen/select/e3e028.wgsl.expected.hlsl | 4 +- .../gen/select/ebfea2.wgsl.expected.hlsl | 4 +- .../gen/select/ed8a15.wgsl.expected.hlsl | 2 +- .../gen/select/fb7e53.wgsl.expected.hlsl | 4 +- .../gen/sign/159665.wgsl.expected.hlsl | 4 +- .../gen/sign/b8f634.wgsl.expected.hlsl | 4 +- .../gen/sign/d065d8.wgsl.expected.hlsl | 4 +- .../gen/sign/dd790e.wgsl.expected.hlsl | 2 +- .../gen/sin/01f241.wgsl.expected.hlsl | 4 +- .../gen/sin/4e3979.wgsl.expected.hlsl | 4 +- .../gen/sin/b78c91.wgsl.expected.hlsl | 2 +- .../gen/sin/fc8bc4.wgsl.expected.hlsl | 4 +- .../gen/sinh/445e33.wgsl.expected.hlsl | 4 +- .../gen/sinh/7bb598.wgsl.expected.hlsl | 2 +- .../gen/sinh/b9860e.wgsl.expected.hlsl | 4 +- .../gen/sinh/c9a5eb.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/392c19.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/40864c.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/5f615b.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/658be3.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/6c4975.wgsl.expected.hlsl | 2 +- .../gen/smoothstep/aad1db.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/c11eef.wgsl.expected.hlsl | 4 +- .../gen/smoothstep/cb0bfb.wgsl.expected.hlsl | 2 +- .../gen/sqrt/20c74e.wgsl.expected.hlsl | 2 +- .../gen/sqrt/8c7024.wgsl.expected.hlsl | 4 +- .../gen/sqrt/aa0d7a.wgsl.expected.hlsl | 4 +- .../gen/sqrt/f8c59a.wgsl.expected.hlsl | 4 +- .../gen/step/0b073b.wgsl.expected.hlsl | 2 +- .../gen/step/19accd.wgsl.expected.hlsl | 4 +- .../gen/step/334303.wgsl.expected.hlsl | 4 +- .../gen/step/e2b337.wgsl.expected.hlsl | 4 +- .../gen/tan/244e2a.wgsl.expected.hlsl | 4 +- .../gen/tan/2f030e.wgsl.expected.hlsl | 2 +- .../gen/tan/7ea104.wgsl.expected.hlsl | 4 +- .../gen/tan/8ce3e9.wgsl.expected.hlsl | 4 +- .../gen/tanh/5663c5.wgsl.expected.hlsl | 4 +- .../gen/tanh/5724b3.wgsl.expected.hlsl | 4 +- .../gen/tanh/9f9fb9.wgsl.expected.hlsl | 4 +- .../gen/tanh/c15fdb.wgsl.expected.hlsl | 2 +- .../002b2a.wgsl.expected.hlsl | 2 +- .../012b82.wgsl.expected.hlsl | 2 +- .../08753d.wgsl.expected.hlsl | 2 +- .../0c4772.wgsl.expected.hlsl | 2 +- .../0cce40.wgsl.expected.hlsl | 2 +- .../0cf2ff.wgsl.expected.hlsl | 2 +- .../0d8b7e.wgsl.expected.hlsl | 2 +- .../0e32ee.wgsl.expected.hlsl | 2 +- .../0f3c50.wgsl.expected.hlsl | 2 +- .../1191a5.wgsl.expected.hlsl | 2 +- .../12c9bb.wgsl.expected.hlsl | 2 +- .../147998.wgsl.expected.hlsl | 2 +- .../16036c.wgsl.expected.hlsl | 2 +- .../1b71f0.wgsl.expected.hlsl | 2 +- .../1d6c26.wgsl.expected.hlsl | 2 +- .../1e9e39.wgsl.expected.hlsl | 2 +- .../1f20c5.wgsl.expected.hlsl | 2 +- .../214dd4.wgsl.expected.hlsl | 2 +- .../221f22.wgsl.expected.hlsl | 2 +- .../267788.wgsl.expected.hlsl | 2 +- .../26bdfa.wgsl.expected.hlsl | 2 +- .../26ef6c.wgsl.expected.hlsl | 2 +- .../2ad087.wgsl.expected.hlsl | 2 +- .../2efa05.wgsl.expected.hlsl | 2 +- .../2f289f.wgsl.expected.hlsl | 2 +- .../2fe1cc.wgsl.expected.hlsl | 2 +- .../318ecc.wgsl.expected.hlsl | 2 +- .../340d06.wgsl.expected.hlsl | 2 +- .../398e30.wgsl.expected.hlsl | 2 +- .../3a94ea.wgsl.expected.hlsl | 2 +- .../3aca08.wgsl.expected.hlsl | 2 +- .../3c5ad8.wgsl.expected.hlsl | 2 +- .../4152a6.wgsl.expected.hlsl | 2 +- .../423f99.wgsl.expected.hlsl | 2 +- .../4267ee.wgsl.expected.hlsl | 2 +- .../42d4e6.wgsl.expected.hlsl | 2 +- .../48cb89.wgsl.expected.hlsl | 2 +- .../49d274.wgsl.expected.hlsl | 2 +- .../4df9a8.wgsl.expected.hlsl | 2 +- .../50a9ee.wgsl.expected.hlsl | 2 +- .../52045c.wgsl.expected.hlsl | 2 +- .../55b23e.wgsl.expected.hlsl | 2 +- .../579629.wgsl.expected.hlsl | 2 +- .../57da0b.wgsl.expected.hlsl | 2 +- .../57e28f.wgsl.expected.hlsl | 2 +- .../58a515.wgsl.expected.hlsl | 2 +- .../5985f3.wgsl.expected.hlsl | 2 +- .../5caa5e.wgsl.expected.hlsl | 2 +- .../5e295d.wgsl.expected.hlsl | 2 +- .../60bf54.wgsl.expected.hlsl | 2 +- .../63f3cf.wgsl.expected.hlsl | 2 +- .../68105c.wgsl.expected.hlsl | 2 +- .../686ef2.wgsl.expected.hlsl | 2 +- .../6adac6.wgsl.expected.hlsl | 2 +- .../6ec1b4.wgsl.expected.hlsl | 2 +- .../6f0d79.wgsl.expected.hlsl | 2 +- .../702c53.wgsl.expected.hlsl | 2 +- .../72e5d6.wgsl.expected.hlsl | 2 +- .../79df87.wgsl.expected.hlsl | 2 +- .../7bf826.wgsl.expected.hlsl | 2 +- .../7f5c2e.wgsl.expected.hlsl | 2 +- .../8028f3.wgsl.expected.hlsl | 2 +- .../811679.wgsl.expected.hlsl | 2 +- .../820596.wgsl.expected.hlsl | 2 +- .../83ee5a.wgsl.expected.hlsl | 2 +- .../85d556.wgsl.expected.hlsl | 2 +- .../88ad17.wgsl.expected.hlsl | 2 +- .../8aa4c4.wgsl.expected.hlsl | 2 +- .../8deb5e.wgsl.expected.hlsl | 2 +- .../8f20bf.wgsl.expected.hlsl | 2 +- .../8fca0f.wgsl.expected.hlsl | 2 +- .../90340b.wgsl.expected.hlsl | 2 +- .../9042ab.wgsl.expected.hlsl | 2 +- .../9393b0.wgsl.expected.hlsl | 2 +- .../939fdb.wgsl.expected.hlsl | 2 +- .../962dcd.wgsl.expected.hlsl | 2 +- .../9abfe5.wgsl.expected.hlsl | 2 +- .../9c9c57.wgsl.expected.hlsl | 2 +- .../9da9e2.wgsl.expected.hlsl | 2 +- .../9eb8d8.wgsl.expected.hlsl | 2 +- .../9f8e46.wgsl.expected.hlsl | 2 +- .../a01845.wgsl.expected.hlsl | 2 +- .../a7d565.wgsl.expected.hlsl | 2 +- .../a863f2.wgsl.expected.hlsl | 2 +- .../a9c9c1.wgsl.expected.hlsl | 2 +- .../b0e16d.wgsl.expected.hlsl | 2 +- .../b3c954.wgsl.expected.hlsl | 2 +- .../b3e407.wgsl.expected.hlsl | 2 +- .../b91240.wgsl.expected.hlsl | 2 +- .../ba1481.wgsl.expected.hlsl | 2 +- .../bb3dde.wgsl.expected.hlsl | 2 +- .../c30e75.wgsl.expected.hlsl | 2 +- .../c7943d.wgsl.expected.hlsl | 2 +- .../cc968c.wgsl.expected.hlsl | 2 +- .../cccc8f.wgsl.expected.hlsl | 2 +- .../cd76a7.wgsl.expected.hlsl | 2 +- .../cdf473.wgsl.expected.hlsl | 2 +- .../cec841.wgsl.expected.hlsl | 2 +- .../cf7e43.wgsl.expected.hlsl | 2 +- .../d125bc.wgsl.expected.hlsl | 2 +- .../d83c45.wgsl.expected.hlsl | 2 +- .../daf7c0.wgsl.expected.hlsl | 2 +- .../dc2dd0.wgsl.expected.hlsl | 2 +- .../e927be.wgsl.expected.hlsl | 2 +- .../e9e96c.wgsl.expected.hlsl | 2 +- .../ef5b89.wgsl.expected.hlsl | 2 +- .../efc8a4.wgsl.expected.hlsl | 2 +- .../f60bdb.wgsl.expected.hlsl | 2 +- .../f7145b.wgsl.expected.hlsl | 2 +- .../f931c7.wgsl.expected.hlsl | 2 +- .../fa9859.wgsl.expected.hlsl | 2 +- .../fb5670.wgsl.expected.hlsl | 2 +- .../fcac78.wgsl.expected.hlsl | 2 +- .../textureGather/01305f.wgsl.expected.hlsl | 2 +- .../textureGather/06030a.wgsl.expected.hlsl | 4 +- .../textureGather/10c554.wgsl.expected.hlsl | 4 +- .../textureGather/15d79c.wgsl.expected.hlsl | 4 +- .../textureGather/2e0ed5.wgsl.expected.hlsl | 4 +- .../textureGather/3112e8.wgsl.expected.hlsl | 2 +- .../textureGather/3c527e.wgsl.expected.hlsl | 2 +- .../textureGather/43025d.wgsl.expected.hlsl | 2 +- .../textureGather/4f2350.wgsl.expected.hlsl | 4 +- .../textureGather/51cf0b.wgsl.expected.hlsl | 2 +- .../textureGather/53ece6.wgsl.expected.hlsl | 4 +- .../textureGather/57bfc6.wgsl.expected.hlsl | 4 +- .../textureGather/587ba3.wgsl.expected.hlsl | 4 +- .../textureGather/69e0fb.wgsl.expected.hlsl | 4 +- .../textureGather/93003d.wgsl.expected.hlsl | 4 +- .../textureGather/9a6358.wgsl.expected.hlsl | 2 +- .../textureGather/9efca2.wgsl.expected.hlsl | 2 +- .../textureGather/bd0b1e.wgsl.expected.hlsl | 4 +- .../textureGather/c409ae.wgsl.expected.hlsl | 4 +- .../textureGather/c55822.wgsl.expected.hlsl | 2 +- .../textureGather/e1b67d.wgsl.expected.hlsl | 4 +- .../textureGather/e9eff6.wgsl.expected.hlsl | 4 +- .../textureGather/f5f3ba.wgsl.expected.hlsl | 4 +- .../textureGather/f7995a.wgsl.expected.hlsl | 4 +- .../182fd4.wgsl.expected.hlsl | 4 +- .../60d2d1.wgsl.expected.hlsl | 2 +- .../6d9352.wgsl.expected.hlsl | 4 +- .../6f1267.wgsl.expected.hlsl | 4 +- .../783e65.wgsl.expected.hlsl | 2 +- .../a5f587.wgsl.expected.hlsl | 4 +- .../gen/textureLoad/19cf87.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/1b8588.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/1f2016.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/484344.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/4fd803.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/5a2f9d.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/6154d4.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/6273b1.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/79e697.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/7c90e5.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/81c381.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/87be85.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/8acf41.wgsl.expected.hlsl | 4 +- .../gen/textureLoad/9b2667.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/a583c9.wgsl.expected.hlsl | 4 +- .../gen/textureLoad/a9a9f5.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/c2a480.wgsl.expected.hlsl | 2 +- .../gen/textureLoad/c378ee.wgsl.expected.hlsl | 4 +- .../gen/textureLoad/e3d2cc.wgsl.expected.hlsl | 4 +- .../024820.wgsl.expected.hlsl | 2 +- .../053df7.wgsl.expected.hlsl | 2 +- .../058cc3.wgsl.expected.hlsl | 2 +- .../09d05d.wgsl.expected.hlsl | 2 +- .../13b4ce.wgsl.expected.hlsl | 2 +- .../22e53b.wgsl.expected.hlsl | 2 +- .../562013.wgsl.expected.hlsl | 2 +- .../5d59cd.wgsl.expected.hlsl | 2 +- .../68a65b.wgsl.expected.hlsl | 2 +- .../778bd1.wgsl.expected.hlsl | 2 +- .../7f1937.wgsl.expected.hlsl | 2 +- .../85f980.wgsl.expected.hlsl | 2 +- .../87953e.wgsl.expected.hlsl | 2 +- .../893e7c.wgsl.expected.hlsl | 2 +- .../9700fb.wgsl.expected.hlsl | 2 +- .../a216d2.wgsl.expected.hlsl | 2 +- .../cd5dc8.wgsl.expected.hlsl | 2 +- .../d5b228.wgsl.expected.hlsl | 2 +- .../e31be1.wgsl.expected.hlsl | 2 +- .../e653c0.wgsl.expected.hlsl | 2 +- .../ee942f.wgsl.expected.hlsl | 2 +- .../f33005.wgsl.expected.hlsl | 2 +- .../fcec98.wgsl.expected.hlsl | 2 +- .../ff5e89.wgsl.expected.hlsl | 2 +- .../076cb5.wgsl.expected.hlsl | 2 +- .../080d95.wgsl.expected.hlsl | 2 +- .../09ddd0.wgsl.expected.hlsl | 2 +- .../105988.wgsl.expected.hlsl | 2 +- .../1e6f3b.wgsl.expected.hlsl | 2 +- .../23f750.wgsl.expected.hlsl | 2 +- .../2c3575.wgsl.expected.hlsl | 2 +- .../32a0ae.wgsl.expected.hlsl | 2 +- .../5101cf.wgsl.expected.hlsl | 2 +- .../51b5bb.wgsl.expected.hlsl | 2 +- .../897aaf.wgsl.expected.hlsl | 2 +- .../9da7a5.wgsl.expected.hlsl | 2 +- .../a91c03.wgsl.expected.hlsl | 2 +- .../aee7c8.wgsl.expected.hlsl | 2 +- .../b1b12b.wgsl.expected.hlsl | 2 +- .../b4f5ea.wgsl.expected.hlsl | 2 +- .../d004a9.wgsl.expected.hlsl | 2 +- .../dca09e.wgsl.expected.hlsl | 2 +- .../e67231.wgsl.expected.hlsl | 2 +- .../ed078b.wgsl.expected.hlsl | 2 +- .../f46ec6.wgsl.expected.hlsl | 2 +- .../f5828d.wgsl.expected.hlsl | 2 +- .../2c6f14.wgsl.expected.hlsl | 2 +- .../42f8bb.wgsl.expected.hlsl | 2 +- .../449d23.wgsl.expected.hlsl | 2 +- .../a3c8a0.wgsl.expected.hlsl | 2 +- .../textureSample/02aa9b.wgsl.expected.hlsl | 2 +- .../textureSample/100dc0.wgsl.expected.hlsl | 2 +- .../textureSample/38bbb9.wgsl.expected.hlsl | 2 +- .../textureSample/3b50bd.wgsl.expected.hlsl | 2 +- .../textureSample/51b514.wgsl.expected.hlsl | 2 +- .../textureSample/667d76.wgsl.expected.hlsl | 2 +- .../textureSample/7c3baa.wgsl.expected.hlsl | 2 +- .../textureSample/8522e7.wgsl.expected.hlsl | 2 +- .../textureSample/e53267.wgsl.expected.hlsl | 2 +- .../textureSample/ea7030.wgsl.expected.hlsl | 2 +- .../53b9f7.wgsl.expected.hlsl | 2 +- .../65ac50.wgsl.expected.hlsl | 2 +- .../6a9113.wgsl.expected.hlsl | 2 +- .../81c19a.wgsl.expected.hlsl | 2 +- .../d3fa1b.wgsl.expected.hlsl | 2 +- .../df91bb.wgsl.expected.hlsl | 2 +- .../25fcd1.wgsl.expected.hlsl | 2 +- .../3a5923.wgsl.expected.hlsl | 2 +- .../63fb83.wgsl.expected.hlsl | 2 +- .../98b85c.wgsl.expected.hlsl | 2 +- .../011a8f.wgsl.expected.hlsl | 4 +- .../1116ed.wgsl.expected.hlsl | 2 +- .../1568e3.wgsl.expected.hlsl | 4 +- .../2ad2b1.wgsl.expected.hlsl | 4 +- .../4cf3a2.wgsl.expected.hlsl | 2 +- .../f8121c.wgsl.expected.hlsl | 4 +- .../21402b.wgsl.expected.hlsl | 4 +- .../2ecd8f.wgsl.expected.hlsl | 4 +- .../468f88.wgsl.expected.hlsl | 4 +- .../521263.wgsl.expected.hlsl | 4 +- .../5312f4.wgsl.expected.hlsl | 4 +- .../872f00.wgsl.expected.hlsl | 4 +- .../e383db.wgsl.expected.hlsl | 4 +- .../e9a2f7.wgsl.expected.hlsl | 4 +- .../02be59.wgsl.expected.hlsl | 4 +- .../0bdd9a.wgsl.expected.hlsl | 2 +- .../1b0291.wgsl.expected.hlsl | 4 +- .../1bf73e.wgsl.expected.hlsl | 2 +- .../302be4.wgsl.expected.hlsl | 2 +- .../47daa4.wgsl.expected.hlsl | 4 +- .../690d95.wgsl.expected.hlsl | 4 +- .../979816.wgsl.expected.hlsl | 4 +- .../9bd37b.wgsl.expected.hlsl | 4 +- .../a4af26.wgsl.expected.hlsl | 4 +- .../abfcc0.wgsl.expected.hlsl | 4 +- .../ae5e39.wgsl.expected.hlsl | 2 +- .../ba93b3.wgsl.expected.hlsl | 4 +- .../c32df7.wgsl.expected.hlsl | 4 +- .../c6aca6.wgsl.expected.hlsl | 4 +- .../textureStore/05ce15.wgsl.expected.hlsl | 4 +- .../textureStore/064c7f.wgsl.expected.hlsl | 4 +- .../textureStore/068641.wgsl.expected.hlsl | 4 +- .../textureStore/0af6b5.wgsl.expected.hlsl | 4 +- .../textureStore/0c3dff.wgsl.expected.hlsl | 4 +- .../textureStore/102722.wgsl.expected.hlsl | 4 +- .../textureStore/1bbd08.wgsl.expected.hlsl | 4 +- .../textureStore/1c02e7.wgsl.expected.hlsl | 4 +- .../textureStore/22d955.wgsl.expected.hlsl | 4 +- .../textureStore/26bf70.wgsl.expected.hlsl | 4 +- .../textureStore/2796b4.wgsl.expected.hlsl | 4 +- .../textureStore/2ac6c7.wgsl.expected.hlsl | 4 +- .../textureStore/2eb2a4.wgsl.expected.hlsl | 4 +- .../textureStore/2ed2a3.wgsl.expected.hlsl | 4 +- .../textureStore/31745b.wgsl.expected.hlsl | 4 +- .../textureStore/32f368.wgsl.expected.hlsl | 4 +- .../textureStore/331aee.wgsl.expected.hlsl | 4 +- .../textureStore/38e8d7.wgsl.expected.hlsl | 4 +- .../textureStore/3a52ac.wgsl.expected.hlsl | 4 +- .../textureStore/3bb7a1.wgsl.expected.hlsl | 4 +- .../textureStore/3bec15.wgsl.expected.hlsl | 4 +- .../textureStore/441ba8.wgsl.expected.hlsl | 4 +- .../textureStore/4fc057.wgsl.expected.hlsl | 4 +- .../textureStore/5a2f8f.wgsl.expected.hlsl | 4 +- .../textureStore/60975f.wgsl.expected.hlsl | 4 +- .../textureStore/682fd6.wgsl.expected.hlsl | 4 +- .../textureStore/6b75c3.wgsl.expected.hlsl | 4 +- .../textureStore/6b80d2.wgsl.expected.hlsl | 4 +- .../textureStore/6cff2e.wgsl.expected.hlsl | 4 +- .../textureStore/6da692.wgsl.expected.hlsl | 4 +- .../textureStore/731349.wgsl.expected.hlsl | 4 +- .../textureStore/752da6.wgsl.expected.hlsl | 4 +- .../textureStore/77c0ae.wgsl.expected.hlsl | 4 +- .../textureStore/7cec8d.wgsl.expected.hlsl | 4 +- .../textureStore/7f7fae.wgsl.expected.hlsl | 4 +- .../textureStore/804942.wgsl.expected.hlsl | 4 +- .../textureStore/805dae.wgsl.expected.hlsl | 4 +- .../textureStore/83bcc1.wgsl.expected.hlsl | 4 +- .../textureStore/872747.wgsl.expected.hlsl | 4 +- .../textureStore/8e0479.wgsl.expected.hlsl | 4 +- .../textureStore/8f71a1.wgsl.expected.hlsl | 4 +- .../textureStore/969534.wgsl.expected.hlsl | 4 +- .../textureStore/9a3ecc.wgsl.expected.hlsl | 4 +- .../textureStore/9d9cd5.wgsl.expected.hlsl | 4 +- .../textureStore/9e3ec5.wgsl.expected.hlsl | 4 +- .../textureStore/ac67aa.wgsl.expected.hlsl | 4 +- .../textureStore/b706b1.wgsl.expected.hlsl | 4 +- .../textureStore/bbcb7f.wgsl.expected.hlsl | 4 +- .../textureStore/be6e30.wgsl.expected.hlsl | 4 +- .../textureStore/bf775c.wgsl.expected.hlsl | 4 +- .../textureStore/c5af1e.wgsl.expected.hlsl | 4 +- .../textureStore/c863be.wgsl.expected.hlsl | 4 +- .../textureStore/d73b5c.wgsl.expected.hlsl | 4 +- .../textureStore/dd7d81.wgsl.expected.hlsl | 4 +- .../textureStore/dde364.wgsl.expected.hlsl | 4 +- .../textureStore/e885e8.wgsl.expected.hlsl | 4 +- .../textureStore/eb702f.wgsl.expected.hlsl | 4 +- .../textureStore/eb78b9.wgsl.expected.hlsl | 4 +- .../textureStore/ee6acc.wgsl.expected.hlsl | 4 +- .../textureStore/ef9f2f.wgsl.expected.hlsl | 4 +- .../textureStore/f8dead.wgsl.expected.hlsl | 4 +- .../textureStore/f9be83.wgsl.expected.hlsl | 4 +- .../textureStore/fb9a8f.wgsl.expected.hlsl | 4 +- .../textureStore/fbf53f.wgsl.expected.hlsl | 4 +- .../gen/transpose/2585cd.wgsl.expected.hlsl | 4 +- .../gen/transpose/31d679.wgsl.expected.hlsl | 4 +- .../gen/transpose/31e37e.wgsl.expected.hlsl | 4 +- .../gen/transpose/4ce359.wgsl.expected.hlsl | 4 +- .../gen/transpose/4dc9a1.wgsl.expected.hlsl | 4 +- .../gen/transpose/854336.wgsl.expected.hlsl | 4 +- .../gen/transpose/c1b600.wgsl.expected.hlsl | 4 +- .../gen/transpose/d8f8ba.wgsl.expected.hlsl | 4 +- .../gen/transpose/ed4bdc.wgsl.expected.hlsl | 4 +- .../gen/trunc/562d05.wgsl.expected.hlsl | 4 +- .../gen/trunc/e183aa.wgsl.expected.hlsl | 4 +- .../gen/trunc/eb83df.wgsl.expected.hlsl | 2 +- .../gen/trunc/f370d3.wgsl.expected.hlsl | 4 +- .../unpack2x16float/32a5cf.wgsl.expected.hlsl | 2 +- .../unpack2x16snorm/b4aea6.wgsl.expected.hlsl | 2 +- .../unpack2x16unorm/7699c0.wgsl.expected.hlsl | 2 +- .../unpack4x8snorm/523fb3.wgsl.expected.hlsl | 2 +- .../unpack4x8unorm/750c74.wgsl.expected.hlsl | 2 +- .../insertBits/vec3/i32.spvasm.expected.hlsl | 4 +- .../insertBits/vec3/u32.spvasm.expected.hlsl | 4 +- .../builtins/repeated_use.wgsl.expected.hlsl | 12 +- .../depth_ms.spvasm.expected.hlsl | 6 +- .../f32/alpha.wgsl.expected.hlsl | 2 +- .../textureGather/f32/blue.wgsl.expected.hlsl | 2 +- .../f32/green.wgsl.expected.hlsl | 2 +- .../textureGather/f32/red.wgsl.expected.hlsl | 2 +- .../i32/alpha.wgsl.expected.hlsl | 2 +- .../textureGather/i32/blue.wgsl.expected.hlsl | 2 +- .../i32/green.wgsl.expected.hlsl | 2 +- .../textureGather/i32/red.wgsl.expected.hlsl | 2 +- .../u32/alpha.wgsl.expected.hlsl | 2 +- .../textureGather/u32/blue.wgsl.expected.hlsl | 2 +- .../u32/green.wgsl.expected.hlsl | 2 +- .../textureGather/u32/red.wgsl.expected.hlsl | 2 +- .../textureLoad/depth_ms.spvasm.expected.hlsl | 4 +- .../texture_external_param.wgsl.expected.hlsl | 4 +- .../texture_param.wgsl.expected.hlsl | 4 +- .../depth_ms.spvasm.expected.hlsl | 4 +- .../add/mat3x3-mat3x3/f32.wgsl.expected.hlsl | 2 +- .../add/scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../add/scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../add/scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../add/vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../add/vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../add/vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../add/vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../add/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../add/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../bit-and/vec3-vec3/bool.wgsl.expected.hlsl | 2 +- .../bit-and/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../bit-and/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../bit-or/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../bit-or/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../bit-xor/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../bit-xor/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../div/scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../div/scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../div/scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../div/vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../div/vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../div/vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../div/vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../div/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../div/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../vector-vector/i32.wgsl.expected.hlsl | 2 +- .../vector-vector/u32.wgsl.expected.hlsl | 2 +- .../mod/scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../mod/scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../mod/scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../mod/vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../mod/vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../mod/vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../mod/vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../mod/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../mod/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl | 2 +- .../mul/mat3x3-mat3x3/f32.wgsl.expected.hlsl | 2 +- .../mul/mat4x2-mat2x4/f32.wgsl.expected.hlsl | 2 +- .../mul/scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../mul/scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../mul/scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../mul/vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../mul/vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../mul/vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../mul/vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../mul/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../mul/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../vector-vector/i32.wgsl.expected.hlsl | 2 +- .../vector-vector/u32.wgsl.expected.hlsl | 2 +- .../sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl | 2 +- .../sub/scalar-vec3/f32.wgsl.expected.hlsl | 2 +- .../sub/scalar-vec3/i32.wgsl.expected.hlsl | 2 +- .../sub/scalar-vec3/u32.wgsl.expected.hlsl | 2 +- .../sub/vec3-scalar/f32.wgsl.expected.hlsl | 2 +- .../sub/vec3-scalar/i32.wgsl.expected.hlsl | 2 +- .../sub/vec3-scalar/u32.wgsl.expected.hlsl | 2 +- .../sub/vec3-vec3/f32.wgsl.expected.hlsl | 2 +- .../sub/vec3-vec3/i32.wgsl.expected.hlsl | 2 +- .../sub/vec3-vec3/u32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/f32-f32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/f32-i32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/f32-u32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/i32-f32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/i32-i32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/i32-u32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/u32-f32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/u32-i32.wgsl.expected.hlsl | 2 +- .../bitcast/vector/u32-u32.wgsl.expected.hlsl | 2 +- .../let/let/literal/matrix.wgsl.expected.hlsl | 2 +- .../let/let/literal/vector.wgsl.expected.hlsl | 2 +- .../let/let/param/matrix.wgsl.expected.hlsl | 2 +- .../let/let/param/vector.wgsl.expected.hlsl | 2 +- .../let/literal/matrix.wgsl.expected.hlsl | 2 +- .../let/literal/vector.wgsl.expected.hlsl | 2 +- .../index/let/param/matrix.wgsl.expected.hlsl | 2 +- .../index/let/param/vector.wgsl.expected.hlsl | 2 +- .../literals/-inf.spvasm.expected.hlsl | 2 +- .../literals/inf.spvasm.expected.hlsl | 2 +- .../splat/immediate/bool.wgsl.expected.hlsl | 6 +- .../splat/immediate/f32.wgsl.expected.hlsl | 6 +- .../splat/immediate/i32.wgsl.expected.hlsl | 6 +- .../splat/immediate/u32.wgsl.expected.hlsl | 6 +- .../splat/with_swizzle/f32.wgsl.expected.hlsl | 6 +- .../explicit/identity/f32.wgsl.expected.hlsl | 2 +- .../mat2x3/identity/f32.wgsl.expected.hlsl | 2 +- .../mat2x4/identity/f32.wgsl.expected.hlsl | 2 +- .../mat3x2/identity/f32.wgsl.expected.hlsl | 2 +- .../mat3x3/identity/f32.wgsl.expected.hlsl | 2 +- .../mat3x4/identity/f32.wgsl.expected.hlsl | 2 +- .../mat4x2/identity/f32.wgsl.expected.hlsl | 2 +- .../mat4x3/identity/f32.wgsl.expected.hlsl | 2 +- .../mat4x4/identity/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat2x2/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat2x3/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat2x4/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat3x2/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat3x3/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat3x4/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat4x2/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat4x3/f32.wgsl.expected.hlsl | 2 +- .../zero_init/mat4x4/f32.wgsl.expected.hlsl | 2 +- .../zero_init/vec2/bool.wgsl.expected.hlsl | 2 +- .../zero_init/vec2/f32.wgsl.expected.hlsl | 2 +- .../zero_init/vec2/i32.wgsl.expected.hlsl | 2 +- .../zero_init/vec2/u32.wgsl.expected.hlsl | 2 +- .../zero_init/vec3/bool.wgsl.expected.hlsl | 2 +- .../zero_init/vec3/f32.wgsl.expected.hlsl | 2 +- .../zero_init/vec3/i32.wgsl.expected.hlsl | 2 +- .../zero_init/vec3/u32.wgsl.expected.hlsl | 2 +- .../zero_init/vec4/bool.wgsl.expected.hlsl | 2 +- .../zero_init/vec4/f32.wgsl.expected.hlsl | 2 +- .../zero_init/vec4/i32.wgsl.expected.hlsl | 2 +- .../zero_init/vec4/u32.wgsl.expected.hlsl | 2 +- .../underscore/double/let.wgsl.expected.hlsl | 4 +- .../prefix/lower/let.wgsl.expected.hlsl | 4 +- .../prefix/upper/let.wgsl.expected.hlsl | 4 +- .../tint/let/global/global.wgsl.expected.hlsl | 10 +- .../let/inferred/function.wgsl.expected.hlsl | 10 +- .../func/let.wgsl.expected.hlsl | 2 +- .../access/matrix.spvasm.expected.hlsl | 4 +- .../ptr_ref/access/matrix.wgsl.expected.hlsl | 2 +- .../samples/compute_boids.wgsl.expected.hlsl | 8 +- test/tint/samples/simple.wgsl.expected.hlsl | 2 +- .../simple_vertex.spvasm.expected.hlsl | 2 +- test/tint/samples/triangle.wgsl.expected.hlsl | 2 +- .../shader_io/invariant.wgsl.expected.hlsl | 2 +- ...struct_different_stages.wgsl.expected.hlsl | 2 +- .../vertex_input_builtins.wgsl.expected.hlsl | 2 +- ...x_input_builtins_struct.wgsl.expected.hlsl | 2 +- .../vertex_input_locations.wgsl.expected.hlsl | 2 +- ..._input_locations_struct.wgsl.expected.hlsl | 2 +- .../vertex_input_mixed.wgsl.expected.hlsl | 2 +- ...output_locations_struct.wgsl.expected.hlsl | 2 +- .../shadowing/alias/let.wgsl.expected.hlsl | 4 +- .../struct_matrix.wgsl.expected.hlsl | 2 +- .../function.wgsl.expected.hlsl | 2 +- .../matrix/minus.wgsl.expected.hlsl | 2 +- .../matrix/plus.wgsl.expected.hlsl | 2 +- .../matrix/times.wgsl.expected.hlsl | 2 +- .../private.wgsl.expected.hlsl | 2 +- .../vector/and.wgsl.expected.hlsl | 2 +- .../vector/divide.wgsl.expected.hlsl | 2 +- .../vector/minus.wgsl.expected.hlsl | 2 +- .../vector/modulo.wgsl.expected.hlsl | 2 +- .../vector/or.wgsl.expected.hlsl | 2 +- .../vector/plus.wgsl.expected.hlsl | 2 +- .../vector/times-matrix.wgsl.expected.hlsl | 2 +- .../vector/times.wgsl.expected.hlsl | 2 +- .../vector/xor.wgsl.expected.hlsl | 2 +- .../workgroup.wgsl.expected.hlsl | 2 +- .../vector_component.wgsl.expected.hlsl | 2 +- .../vector_component.wgsl.expected.hlsl | 2 +- .../type_constructor.wgsl.expected.hlsl | 8 +- ...tion_scope_declarations.wgsl.expected.hlsl | 16 +- ...n_scope_var_conversions.wgsl.expected.hlsl | 44 ++-- .../types/module_scope_let.wgsl.expected.hlsl | 8 +- .../types/module_scope_var.wgsl.expected.hlsl | 8 +- ...e_scope_var_conversions.wgsl.expected.hlsl | 62 +++--- ..._scope_var_initializers.wgsl.expected.hlsl | 16 +- .../types/return_types.wgsl.expected.hlsl | 8 +- .../var/inferred/function.wgsl.expected.hlsl | 8 +- .../workgroup/matrix.wgsl.expected.hlsl | 2 +- .../workgroup/vector.wgsl.expected.hlsl | 2 +- .../many_workgroup_vars.wgsl.expected.hlsl | 200 +++++++++--------- 951 files changed, 1976 insertions(+), 1865 deletions(-) diff --git a/src/tint/writer/hlsl/generator_impl.cc b/src/tint/writer/hlsl/generator_impl.cc index a2cac0f8a9..137c4667dd 100644 --- a/src/tint/writer/hlsl/generator_impl.cc +++ b/src/tint/writer/hlsl/generator_impl.cc @@ -33,10 +33,10 @@ #include "src/tint/sem/atomic.h" #include "src/tint/sem/block_statement.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/function.h" -#include "src/tint/sem/materialize.h" #include "src/tint/sem/member_accessor_expression.h" #include "src/tint/sem/module.h" #include "src/tint/sem/multisampled_texture.h" @@ -110,6 +110,18 @@ const char* image_format_to_rwtexture_type(ast::TexelFormat image_format) { } } +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 ? "asfloat(0x7f800000u)" : "asfloat(0xff800000u)"); + } else if (std::isnan(value)) { + out << "asfloat(0x7fc00000u)"; + } else { + out << FloatToString(value) << "f"; + } +} + // Helper for writing " : register(RX, spaceY)", where R is the register, X is // the binding point binding value, and Y is the binding point group value. struct RegisterAndSpace { @@ -802,8 +814,7 @@ bool GeneratorImpl::EmitBinary(std::ostream& out, const ast::BinaryExpression* e return true; } - out << "("; - TINT_DEFER(out << ")"); + ScopedParen sp(out); if (!EmitExpression(out, expr->lhs)) { return false; @@ -924,12 +935,7 @@ bool GeneratorImpl::EmitBreak(const ast::BreakStatement*) { } bool GeneratorImpl::EmitCall(std::ostream& out, const ast::CallExpression* expr) { - auto* sem = builder_.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 = builder_.Sem().Get(expr); auto* target = call->Target(); return Switch( target, [&](const sem::Function* func) { return EmitFunctionCall(out, call, func); }, @@ -2644,6 +2650,11 @@ bool GeneratorImpl::EmitDiscard(const ast::DiscardStatement*) { } 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) { // @@ -3119,6 +3130,111 @@ bool GeneratorImpl::EmitEntryPointFunction(const ast::Function* func) { return true; } +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) { + out << 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 (constant.AllEqual(start, end)) { + { + ScopedParen sp(out); + bool ok = Switch( + vec_ty->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); } // + ); + if (!ok) { + return false; + } + } + out << "."; + for (size_t i = start; i < end; i++) { + out << "x"; + } + return true; + } + + if (!EmitType(out, vec_ty, ast::StorageClass::kNone, ast::Access::kUndefined, "")) { + return false; + } + + ScopedParen sp(out); + + auto emit_els = [&](auto emit_el) { + 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(), ast::StorageClass::kNone, ast::Access::kUndefined, + "")) { + 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, @@ -3127,14 +3243,7 @@ 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 ? "asfloat(0x7f800000u)" : "asfloat(0xff800000u)"); - } else if (std::isnan(f32)) { - out << "asfloat(0x7fc00000u)"; - } else { - out << FloatToString(f32) << "f"; - } + PrintF32(out, static_cast(l->value)); return true; }, [&](const ast::IntLiteralExpression* i) { diff --git a/src/tint/writer/hlsl/generator_impl.h b/src/tint/writer/hlsl/generator_impl.h index 0e8ca4c2be..c58d004edf 100644 --- a/src/tint/writer/hlsl/generator_impl.h +++ b/src/tint/writer/hlsl/generator_impl.h @@ -43,6 +43,7 @@ // Forward declarations namespace tint::sem { class Call; +class Constant; class Builtin; class TypeConstructor; class TypeConversion; @@ -334,6 +335,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 stream /// @param lit the literal to emit diff --git a/src/tint/writer/hlsl/generator_impl_assign_test.cc b/src/tint/writer/hlsl/generator_impl_assign_test.cc index 5e5f031666..c69cbdf919 100644 --- a/src/tint/writer/hlsl/generator_impl_assign_test.cc +++ b/src/tint/writer/hlsl/generator_impl_assign_test.cc @@ -58,7 +58,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Vector_Assign_ConstantIndex) { float3 lhs = float3(0.0f, 0.0f, 0.0f); float rhs = 0.0f; const uint index = 0u; - lhs[index] = rhs; + lhs[0u] = rhs; } )"); } @@ -106,7 +106,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Matrix_Assign_Vector_ConstantIndex) { float4x2 lhs = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float2 rhs = float2(0.0f, 0.0f); const uint index = 0u; - lhs[index] = rhs; + lhs[0u] = rhs; } )"); } @@ -159,7 +159,7 @@ TEST_F(HlslGeneratorImplTest_Assign, Emit_Matrix_Assign_Scalar_ConstantIndex) { float4x2 lhs = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); float rhs = 0.0f; const uint index = 0u; - lhs[index][index] = rhs; + lhs[0u][0u] = rhs; } )"); } diff --git a/src/tint/writer/hlsl/generator_impl_binary_test.cc b/src/tint/writer/hlsl/generator_impl_binary_test.cc index 446a5a8162..58255368bb 100644 --- a/src/tint/writer/hlsl/generator_impl_binary_test.cc +++ b/src/tint/writer/hlsl/generator_impl_binary_test.cc @@ -152,9 +152,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorScalar) { std::stringstream out; EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); - EXPECT_EQ(out.str(), - "(float3(1.0f, 1.0f, 1.0f) * " - "1.0f)"); + EXPECT_EQ(out.str(), "((1.0f).xxx * 1.0f)"); } TEST_F(HlslGeneratorImplTest_Binary, Multiply_ScalarVector) { @@ -169,9 +167,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_ScalarVector) { std::stringstream out; EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); - EXPECT_EQ(out.str(), - "(1.0f * float3(1.0f, 1.0f, " - "1.0f))"); + EXPECT_EQ(out.str(), "(1.0f * (1.0f).xxx)"); } TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixScalar) { @@ -216,7 +212,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixVector) { std::stringstream out; EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); - EXPECT_EQ(out.str(), "mul(float3(1.0f, 1.0f, 1.0f), mat)"); + EXPECT_EQ(out.str(), "mul((1.0f).xxx, mat)"); } TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorMatrix) { @@ -231,7 +227,7 @@ TEST_F(HlslGeneratorImplTest_Binary, Multiply_VectorMatrix) { std::stringstream out; EXPECT_TRUE(gen.EmitExpression(out, expr)) << gen.error(); - EXPECT_EQ(out.str(), "mul(mat, float3(1.0f, 1.0f, 1.0f))"); + EXPECT_EQ(out.str(), "mul(mat, (1.0f).xxx)"); } TEST_F(HlslGeneratorImplTest_Binary, Multiply_MatrixMatrix) { @@ -576,7 +572,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByLiteralZero_vec_by_vec_i32) { ASSERT_TRUE(gen.Generate()); EXPECT_EQ(gen.result(), R"(void fn() { - int4 a = int4(100, 100, 100, 100); + int4 a = (100).xxxx; const int4 r = (a )" + Token() + R"( int4(50, 1, 25, 1)); } @@ -594,7 +590,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByLiteralZero_vec_by_scalar_i32) { ASSERT_TRUE(gen.Generate()); EXPECT_EQ(gen.result(), R"(void fn() { - int4 a = int4(100, 100, 100, 100); + int4 a = (100).xxxx; const int4 r = (a )" + Token() + R"( 1); } @@ -755,7 +751,7 @@ TEST_P(HlslGeneratorDivModTest, DivOrModByExpression_vec_by_vec_i32) { } int3 zero() { - return int3(0, 0, 0); + return (0).xxx; } void fn() { diff --git a/src/tint/writer/hlsl/generator_impl_builtin_test.cc b/src/tint/writer/hlsl/generator_impl_builtin_test.cc index 40f550be52..b356ccd21e 100644 --- a/src/tint/writer/hlsl/generator_impl_builtin_test.cc +++ b/src/tint/writer/hlsl/generator_impl_builtin_test.cc @@ -324,7 +324,7 @@ modf_result_vec3 tint_modf(float3 param_0) { [numthreads(1, 1, 1)] void test_function() { - tint_modf(float3(0.0f, 0.0f, 0.0f)); + tint_modf((0.0f).xxx); return; } )"); @@ -376,7 +376,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) { [numthreads(1, 1, 1)] void test_function() { - tint_frexp(float3(0.0f, 0.0f, 0.0f)); + tint_frexp((0.0f).xxx); return; } )"); diff --git a/src/tint/writer/hlsl/generator_impl_builtin_texture_test.cc b/src/tint/writer/hlsl/generator_impl_builtin_texture_test.cc index 60bd303d94..371cc1df61 100644 --- a/src/tint/writer/hlsl/generator_impl_builtin_texture_test.cc +++ b/src/tint/writer/hlsl/generator_impl_builtin_texture_test.cc @@ -285,7 +285,7 @@ ExpectedResult expected_texture_overload(ast::builtin::test::ValidTextureOverloa case ValidTextureOverload::kSampleGrad2dF32: return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f));)"; case ValidTextureOverload::kSampleGrad2dOffsetF32: - return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f), int2(7, 7));)"; + return R"(tint_symbol.SampleGrad(tint_symbol_1, float2(1.0f, 2.0f), float2(3.0f, 4.0f), float2(5.0f, 6.0f), (7).xx);)"; case ValidTextureOverload::kSampleGrad2dArrayF32: return R"(tint_symbol.SampleGrad(tint_symbol_1, float3(1.0f, 2.0f, float(3)), float2(4.0f, 5.0f), float2(6.0f, 7.0f));)"; case ValidTextureOverload::kSampleGrad2dArrayOffsetF32: diff --git a/src/tint/writer/hlsl/generator_impl_cast_test.cc b/src/tint/writer/hlsl/generator_impl_cast_test.cc index 458f07d109..2c4690a718 100644 --- a/src/tint/writer/hlsl/generator_impl_cast_test.cc +++ b/src/tint/writer/hlsl/generator_impl_cast_test.cc @@ -29,7 +29,7 @@ TEST_F(HlslGeneratorImplTest_Cast, 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(HlslGeneratorImplTest_Cast, EmitExpression_Cast_Vector) { @@ -40,7 +40,7 @@ TEST_F(HlslGeneratorImplTest_Cast, 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)"); } } // namespace diff --git a/src/tint/writer/hlsl/generator_impl_constructor_test.cc b/src/tint/writer/hlsl/generator_impl_constructor_test.cc index b44dc69076..fbcc79b693 100644 --- a/src/tint/writer/hlsl/generator_impl_constructor_test.cc +++ b/src/tint/writer/hlsl/generator_impl_constructor_test.cc @@ -67,7 +67,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, 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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Bool) { @@ -76,7 +76,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, 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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Int) { @@ -85,7 +85,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, 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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Uint) { @@ -94,7 +94,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, 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(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec) { @@ -112,7 +112,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_Empty) { GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float3(0.0f, 0.0f, 0.0f)")); + EXPECT_THAT(gen.result(), HasSubstr("0.0f).xxx")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Float_Literal) { @@ -121,7 +121,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_ GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float3((2.0f).xxx)")); + EXPECT_THAT(gen.result(), HasSubstr("2.0f).xxx")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Float_Var) { @@ -142,7 +142,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_ GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("bool3((true).xxx)")); + EXPECT_THAT(gen.result(), HasSubstr("(true).xxx")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_Bool_Var) { @@ -163,7 +163,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_ GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("int3((2).xxx)")); + EXPECT_THAT(gen.result(), HasSubstr("2).xxx")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_UInt) { @@ -172,7 +172,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Vec_SingleScalar_ GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("uint3((2u).xxx)")); + EXPECT_THAT(gen.result(), HasSubstr("2u).xxx")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Mat) { @@ -193,7 +193,7 @@ TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Mat_Empty) { ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_THAT(gen.result(), HasSubstr("float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)")); + EXPECT_THAT(gen.result(), HasSubstr("float2x3 tint_symbol = float2x3((0.0f).xxx, (0.0f).xxx)")); } TEST_F(HlslGeneratorImplTest_Constructor, EmitConstructor_Type_Array) { diff --git a/src/tint/writer/hlsl/generator_impl_function_test.cc b/src/tint/writer/hlsl/generator_impl_function_test.cc index 6a1c5664fb..cbd95ec1e4 100644 --- a/src/tint/writer/hlsl/generator_impl_function_test.cc +++ b/src/tint/writer/hlsl/generator_impl_function_test.cc @@ -219,7 +219,7 @@ struct tint_symbol { }; Interface vert_main_inner() { - const Interface tint_symbol_3 = {float4(0.0f, 0.0f, 0.0f, 0.0f), 0.5f, 0.25f}; + const Interface tint_symbol_3 = {(0.0f).xxxx, 0.5f, 0.25f}; return tint_symbol_3; } @@ -689,9 +689,9 @@ TEST_F(HlslGeneratorImplTest_Function, Emit_Attribute_EntryPoint_Compute_WithWor GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.Generate()) << gen.error(); - EXPECT_EQ(gen.result(), R"(static const int width = int(2); -static const int height = int(3); -static const int depth = int(4); + EXPECT_EQ(gen.result(), R"(static const int width = 2; +static const int height = 3; +static const int depth = 4; [numthreads(2, 3, 4)] void main() { @@ -715,15 +715,15 @@ TEST_F(HlslGeneratorImplTest_Function, ASSERT_TRUE(gen.Generate()) << gen.error(); EXPECT_EQ(gen.result(), R"(#ifndef WGSL_SPEC_CONSTANT_7 -#define WGSL_SPEC_CONSTANT_7 int(2) +#define WGSL_SPEC_CONSTANT_7 2 #endif static const int width = WGSL_SPEC_CONSTANT_7; #ifndef WGSL_SPEC_CONSTANT_8 -#define WGSL_SPEC_CONSTANT_8 int(3) +#define WGSL_SPEC_CONSTANT_8 3 #endif static const int height = WGSL_SPEC_CONSTANT_8; #ifndef WGSL_SPEC_CONSTANT_9 -#define WGSL_SPEC_CONSTANT_9 int(4) +#define WGSL_SPEC_CONSTANT_9 4 #endif static const int depth = WGSL_SPEC_CONSTANT_9; diff --git a/src/tint/writer/hlsl/generator_impl_member_accessor_test.cc b/src/tint/writer/hlsl/generator_impl_member_accessor_test.cc index 7f2933a97b..10e9f1096f 100644 --- a/src/tint/writer/hlsl/generator_impl_member_accessor_test.cc +++ b/src/tint/writer/hlsl/generator_impl_member_accessor_test.cc @@ -337,7 +337,7 @@ void tint_symbol(RWByteAddressBuffer buffer, uint offset, float2x3 value) { } void main() { - tint_symbol(data, 16u, float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol(data, 16u, float2x3((0.0f).xxx, (0.0f).xxx)); return; } )"; diff --git a/src/tint/writer/hlsl/generator_impl_variable_decl_statement_test.cc b/src/tint/writer/hlsl/generator_impl_variable_decl_statement_test.cc index 580ad468bb..5ed85f3a74 100644 --- a/src/tint/writer/hlsl/generator_impl_variable_decl_statement_test.cc +++ b/src/tint/writer/hlsl/generator_impl_variable_decl_statement_test.cc @@ -97,7 +97,7 @@ TEST_F(HlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize GeneratorImpl& gen = Build(); ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error(); - EXPECT_EQ(gen.result(), R"(float3 a = float3(0.0f, 0.0f, 0.0f); + EXPECT_EQ(gen.result(), R"(float3 a = (0.0f).xxx; )"); } @@ -111,7 +111,7 @@ TEST_F(HlslGeneratorImplTest_VariableDecl, Emit_VariableDeclStatement_Initialize ASSERT_TRUE(gen.EmitStatement(stmt)) << gen.error(); EXPECT_EQ(gen.result(), - R"(float2x3 a = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + R"(float2x3 a = float2x3((0.0f).xxx, (0.0f).xxx); )"); } diff --git a/test/tint/access/let/matrix.wgsl.expected.hlsl b/test/tint/access/let/matrix.wgsl.expected.hlsl index 38129cf901..8b6bb55591 100644 --- a/test/tint/access/let/matrix.wgsl.expected.hlsl +++ b/test/tint/access/let/matrix.wgsl.expected.hlsl @@ -1,7 +1,7 @@ [numthreads(1, 1, 1)] void main() { const float3x3 m = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); - const float3 v = m[1]; + const float3 v = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[1]; const float f = v[1]; return; } diff --git a/test/tint/access/let/vector.wgsl.expected.hlsl b/test/tint/access/let/vector.wgsl.expected.hlsl index d86c8eda34..b31972be5f 100644 --- a/test/tint/access/let/vector.wgsl.expected.hlsl +++ b/test/tint/access/let/vector.wgsl.expected.hlsl @@ -1,8 +1,8 @@ [numthreads(1, 1, 1)] void main() { const float3 v = float3(1.0f, 2.0f, 3.0f); - const float scalar = v.y; - const float2 swizzle2 = v.xz; - const float3 swizzle3 = v.xzy; + const float scalar = float3(1.0f, 2.0f, 3.0f).y; + const float2 swizzle2 = float3(1.0f, 2.0f, 3.0f).xz; + const float3 swizzle3 = float3(1.0f, 2.0f, 3.0f).xzy; return; } diff --git a/test/tint/access/var/matrix.spvasm.expected.hlsl b/test/tint/access/var/matrix.spvasm.expected.hlsl index 4770aeaf14..375ea5377c 100644 --- a/test/tint/access/var/matrix.spvasm.expected.hlsl +++ b/test/tint/access/var/matrix.spvasm.expected.hlsl @@ -1,5 +1,5 @@ void main_1() { - float3x3 m = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); const float3 x_15 = m[1]; const float x_16 = x_15.y; return; diff --git a/test/tint/access/var/vector.spvasm.expected.hlsl b/test/tint/access/var/vector.spvasm.expected.hlsl index eac892152b..cc8ef6b895 100644 --- a/test/tint/access/var/vector.spvasm.expected.hlsl +++ b/test/tint/access/var/vector.spvasm.expected.hlsl @@ -1,5 +1,5 @@ void main_1() { - float3 v = float3(0.0f, 0.0f, 0.0f); + float3 v = (0.0f).xxx; const float x_14 = v.y; const float3 x_16 = v; const float2 x_17 = float2(x_16.x, x_16.z); diff --git a/test/tint/array/assign_to_function_var.wgsl.expected.hlsl b/test/tint/array/assign_to_function_var.wgsl.expected.hlsl index caa64fd05b..c6720324e1 100644 --- a/test/tint/array/assign_to_function_var.wgsl.expected.hlsl +++ b/test/tint/array/assign_to_function_var.wgsl.expected.hlsl @@ -51,7 +51,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { void foo(int4 src_param[4]) { int4 src_function[4] = (int4[4])0; int4 tint_symbol[4] = (int4[4])0; - const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)}; + const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx}; tint_symbol = tint_symbol_8; tint_symbol = src_param; tint_symbol = ret_arr(); diff --git a/test/tint/array/assign_to_private_var.wgsl.expected.hlsl b/test/tint/array/assign_to_private_var.wgsl.expected.hlsl index 38b175907d..49525420d7 100644 --- a/test/tint/array/assign_to_private_var.wgsl.expected.hlsl +++ b/test/tint/array/assign_to_private_var.wgsl.expected.hlsl @@ -52,7 +52,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { void foo(int4 src_param[4]) { int4 src_function[4] = (int4[4])0; - const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)}; + const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx}; tint_symbol = tint_symbol_8; tint_symbol = src_param; tint_symbol = ret_arr(); diff --git a/test/tint/array/assign_to_storage_var.wgsl.expected.hlsl b/test/tint/array/assign_to_storage_var.wgsl.expected.hlsl index fa5b2d882a..1455343334 100644 --- a/test/tint/array/assign_to_storage_var.wgsl.expected.hlsl +++ b/test/tint/array/assign_to_storage_var.wgsl.expected.hlsl @@ -88,7 +88,7 @@ void tint_symbol_9(RWByteAddressBuffer buffer, uint offset, int value[4][3][2]) void foo(int4 src_param[4]) { int4 src_function[4] = (int4[4])0; - const int4 tint_symbol_15[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)}; + const int4 tint_symbol_15[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx}; tint_symbol_3(tint_symbol, 0u, tint_symbol_15); tint_symbol_3(tint_symbol, 0u, src_param); const int4 tint_symbol_1[4] = ret_arr(); diff --git a/test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl b/test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl index 82bac27a65..f55b619ea3 100644 --- a/test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl +++ b/test/tint/array/assign_to_workgroup_var.wgsl.expected.hlsl @@ -52,7 +52,7 @@ tint_symbol_4_ret tint_symbol_4(RWByteAddressBuffer buffer, uint offset) { void foo(int4 src_param[4]) { int4 src_function[4] = (int4[4])0; - const int4 tint_symbol_8[4] = {int4((1).xxxx), int4((2).xxxx), int4((3).xxxx), int4((3).xxxx)}; + const int4 tint_symbol_8[4] = {(1).xxxx, (2).xxxx, (3).xxxx, (3).xxxx}; tint_symbol = tint_symbol_8; tint_symbol = src_param; tint_symbol = ret_arr(); diff --git a/test/tint/array/type_constructor.wgsl.expected.hlsl b/test/tint/array/type_constructor.wgsl.expected.hlsl index 8640324cbc..e64b6ee148 100644 --- a/test/tint/array/type_constructor.wgsl.expected.hlsl +++ b/test/tint/array/type_constructor.wgsl.expected.hlsl @@ -3,7 +3,7 @@ void main() { const int x = 42; const int empty[4] = (int[4])0; const int nonempty[4] = {1, 2, 3, 4}; - const int nonempty_with_expr[4] = {1, x, (x + 1), nonempty[3]}; + const int nonempty_with_expr[4] = {1, 42, (42 + 1), nonempty[3]}; const int nested_empty[2][3][4] = (int[2][3][4])0; const int tint_symbol[4] = {1, 2, 3, 4}; const int tint_symbol_1[4] = {5, 6, 7, 8}; @@ -14,7 +14,7 @@ void main() { const int tint_symbol_6[4] = {21, 22, 23, 24}; const int tint_symbol_7[3][4] = {tint_symbol_4, tint_symbol_5, tint_symbol_6}; const int nested_nonempty[2][3][4] = {tint_symbol_3, tint_symbol_7}; - const int tint_symbol_8[4] = {1, 2, x, (x + 1)}; + const int tint_symbol_8[4] = {1, 2, 42, (42 + 1)}; const int tint_symbol_9[4] = {5, 6, nonempty[2], (nonempty[3] + 1)}; const int tint_symbol_10[3][4] = {tint_symbol_8, tint_symbol_9, nonempty}; const int nested_nonempty_with_expr[2][3][4] = {tint_symbol_10, nested_nonempty[1]}; @@ -22,7 +22,7 @@ void main() { const int subexpr_empty = tint_symbol_11[1]; const int tint_symbol_12[4] = {1, 2, 3, 4}; const int subexpr_nonempty = tint_symbol_12[2]; - const int tint_symbol_13[4] = {1, x, (x + 1), nonempty[3]}; + const int tint_symbol_13[4] = {1, 42, (42 + 1), nonempty[3]}; const int subexpr_nonempty_with_expr = tint_symbol_13[2]; const int tint_symbol_14[2][4] = (int[2][4])0; const int subexpr_nested_empty[4] = tint_symbol_14[1]; @@ -30,7 +30,7 @@ void main() { const int tint_symbol_16[4] = {5, 6, 7, 8}; const int tint_symbol_17[2][4] = {tint_symbol_15, tint_symbol_16}; const int subexpr_nested_nonempty[4] = tint_symbol_17[1]; - const int tint_symbol_18[4] = {1, x, (x + 1), nonempty[3]}; + const int tint_symbol_18[4] = {1, 42, (42 + 1), nonempty[3]}; const int tint_symbol_19[2][4] = {tint_symbol_18, nested_nonempty[1][2]}; const int subexpr_nested_nonempty_with_expr[4] = tint_symbol_19[1]; return; diff --git a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl index 3fb60a25d5..34275cff78 100644 --- a/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl +++ b/test/tint/buffer/storage/dynamic_index/write.wgsl.expected.hlsl @@ -25,14 +25,14 @@ void tint_symbol_11(RWByteAddressBuffer buffer, uint offset, int4 value[4]) { } void main_inner(uint idx) { - s.Store3((176u * idx), asuint(int3(0, 0, 0))); + s.Store3((176u * idx), asuint((0).xxx)); s.Store(((176u * idx) + 12u), asuint(0)); - s.Store3(((176u * idx) + 16u), asuint(uint3(0u, 0u, 0u))); + s.Store3(((176u * idx) + 16u), asuint((0u).xxx)); s.Store(((176u * idx) + 28u), asuint(0u)); - s.Store3(((176u * idx) + 32u), asuint(float3(0.0f, 0.0f, 0.0f))); + s.Store3(((176u * idx) + 32u), asuint((0.0f).xxx)); s.Store(((176u * idx) + 44u), asuint(0.0f)); - tint_symbol_8(s, ((176u * idx) + 48u), float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); - tint_symbol_9(s, ((176u * idx) + 80u), float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol_8(s, ((176u * idx) + 48u), float2x3((0.0f).xxx, (0.0f).xxx)); + tint_symbol_9(s, ((176u * idx) + 80u), float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx)); const int4 tint_symbol_13[4] = (int4[4])0; tint_symbol_11(s, ((176u * idx) + 112u), tint_symbol_13); } diff --git a/test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl b/test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl index f4d174547f..2917dcf865 100644 --- a/test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl +++ b/test/tint/buffer/storage/static_index/write.wgsl.expected.hlsl @@ -30,14 +30,14 @@ void tint_symbol_10(RWByteAddressBuffer buffer, uint offset, Inner value[4]) { [numthreads(1, 1, 1)] void main() { - s.Store3(0u, asuint(int3(0, 0, 0))); + s.Store3(0u, asuint((0).xxx)); s.Store(12u, asuint(0)); - s.Store3(16u, asuint(uint3(0u, 0u, 0u))); + s.Store3(16u, asuint((0u).xxx)); s.Store(28u, asuint(0u)); - s.Store3(32u, asuint(float3(0.0f, 0.0f, 0.0f))); + s.Store3(32u, asuint((0.0f).xxx)); s.Store(44u, asuint(0.0f)); - tint_symbol_6(s, 48u, float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); - tint_symbol_7(s, 80u, float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol_6(s, 48u, float2x3((0.0f).xxx, (0.0f).xxx)); + tint_symbol_7(s, 80u, float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx)); const Inner tint_symbol_11 = (Inner)0; tint_symbol_9(s, 104u, tint_symbol_11); const Inner tint_symbol_12[4] = (Inner[4])0; diff --git a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl index 035878ad15..c105c627a9 100644 --- a/test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl +++ b/test/tint/buffer/storage/types/runtime_array.wgsl.expected.hlsl @@ -16,6 +16,6 @@ S tint_symbol_4(ByteAddressBuffer buffer, uint offset) { [numthreads(1, 1, 1)] void main() { - tint_symbol_2(tint_symbol_1, (4u * uint(0)), tint_symbol_4(tint_symbol, (4u * uint(0)))); + tint_symbol_2(tint_symbol_1, (4u * 0u), tint_symbol_4(tint_symbol, (4u * 0u))); return; } diff --git a/test/tint/bug/chromium/1251009.wgsl.expected.hlsl b/test/tint/bug/chromium/1251009.wgsl.expected.hlsl index d0c8230887..6531385ca6 100644 --- a/test/tint/bug/chromium/1251009.wgsl.expected.hlsl +++ b/test/tint/bug/chromium/1251009.wgsl.expected.hlsl @@ -20,7 +20,7 @@ struct tint_symbol_2 { float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexInputs1 inputs1) { const uint foo = (inputs0.vertex_index + instance_index); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/bug/chromium/1273230.wgsl.expected.hlsl b/test/tint/bug/chromium/1273230.wgsl.expected.hlsl index 05d4fe035b..52f58595fe 100644 --- a/test/tint/bug/chromium/1273230.wgsl.expected.hlsl +++ b/test/tint/bug/chromium/1273230.wgsl.expected.hlsl @@ -60,10 +60,10 @@ int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) { void doIgnore() { uint g43 = uniforms[0].x; uint kj6 = dbg.Load(20u); - uint b53 = tint_atomicLoad(counters, (4u * uint(0))); - uint rwg = indices.Load((4u * uint(0))); - float rb5 = asfloat(positions.Load((4u * uint(0)))); - int g55 = tint_atomicLoad_1(LUT, (4u * uint(0))); + uint b53 = tint_atomicLoad(counters, (4u * 0u)); + uint rwg = indices.Load((4u * 0u)); + float rb5 = asfloat(positions.Load((4u * 0u))); + int g55 = tint_atomicLoad_1(LUT, (4u * 0u)); } struct tint_symbol_1 { diff --git a/test/tint/bug/dawn/947.wgsl.expected.hlsl b/test/tint/bug/dawn/947.wgsl.expected.hlsl index 5af445633b..be587b091d 100644 --- a/test/tint/bug/dawn/947.wgsl.expected.hlsl +++ b/test/tint/bug/dawn/947.wgsl.expected.hlsl @@ -29,7 +29,7 @@ struct tint_symbol_2 { VertexOutputs vs_main_inner(uint VertexIndex) { float2 texcoord[3] = {float2(-0.5f, 0.0f), float2(1.5f, 0.0f), float2(0.5f, 2.0f)}; VertexOutputs output = (VertexOutputs)0; - output.position = float4(((texcoord[VertexIndex] * 2.0f) - float2(1.0f, 1.0f)), 0.0f, 1.0f); + output.position = float4(((texcoord[VertexIndex] * 2.0f) - (1.0f).xx), 0.0f, 1.0f); bool flipY = (asfloat(uniforms[0].y) < 0.0f); if (flipY) { output.texcoords = ((((texcoord[VertexIndex] * asfloat(uniforms[0].xy)) + asfloat(uniforms[0].zw)) * float2(1.0f, -1.0f)) + float2(0.0f, 1.0f)); @@ -60,10 +60,10 @@ struct tint_symbol_5 { static bool tint_discard = false; float4 fs_main_inner(float2 texcoord) { - float2 clampedTexcoord = clamp(texcoord, float2(0.0f, 0.0f), float2(1.0f, 1.0f)); + float2 clampedTexcoord = clamp(texcoord, (0.0f).xx, (1.0f).xx); if (!(all((clampedTexcoord == texcoord)))) { tint_discard = true; - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } float4 srcColor = myTexture.Sample(mySampler, texcoord); return srcColor; diff --git a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl index a8bfb2bf3a..d8ef362ca9 100644 --- a/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl +++ b/test/tint/bug/fxc/gradient_in_varying_loop/1112.wgsl.expected.hlsl @@ -49,7 +49,7 @@ float4 main_inner(float2 vUV) { const float sampleDepth = depthTexture.Sample(tint_symbol, offset.xy).r; i = (i + 1); } - return float4((1.0f).xxxx); + return (1.0f).xxxx; } tint_symbol_3 main(tint_symbol_2 tint_symbol_1) { diff --git a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.hlsl b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.hlsl index e1302946cf..b62d3ff263 100644 --- a/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.hlsl +++ b/test/tint/bug/fxc/indexed_assign_to_array_in_struct/1206.wgsl.expected.hlsl @@ -28,7 +28,7 @@ Particle tint_symbol_2(ByteAddressBuffer buffer, uint offset) { [numthreads(1, 1, 1)] void main() { - Particle particle = tint_symbol_2(particles, (176u * uint(0))); + Particle particle = tint_symbol_2(particles, (176u * 0u)); { float3 tint_symbol_1[8] = particle.position; tint_symbol_1[sim[0].x] = particle.position[sim[0].x]; diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.hlsl index 4b5af7190b..c4a4418bfa 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/local_assign_vector.wgsl.expected.hlsl @@ -12,6 +12,6 @@ cbuffer cbuffer_uniforms : register(b4, space1) { [numthreads(1, 1, 1)] void main() { float2x4 m1 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - set_vector_float2x4(m1, uniforms[0].x, float4((1.0f).xxxx)); + set_vector_float2x4(m1, uniforms[0].x, (1.0f).xxxx); return; } diff --git a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.hlsl b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.hlsl index bf033730c7..263c2bc023 100644 --- a/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.hlsl +++ b/test/tint/bug/fxc/matrix_assignment_dynamic_index/module_assign_vector.wgsl.expected.hlsl @@ -12,6 +12,6 @@ static float2x4 m1 = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); [numthreads(1, 1, 1)] void main() { - set_vector_float2x4(m1, uniforms[0].x, float4((1.0f).xxxx)); + set_vector_float2x4(m1, uniforms[0].x, (1.0f).xxxx); return; } diff --git a/test/tint/bug/tint/1088.spvasm.expected.hlsl b/test/tint/bug/tint/1088.spvasm.expected.hlsl index c2274dbc71..be4186ae9e 100644 --- a/test/tint/bug/tint/1088.spvasm.expected.hlsl +++ b/test/tint/bug/tint/1088.spvasm.expected.hlsl @@ -23,7 +23,7 @@ void main_1() { const float4 x_21 = q; p = float3(x_21.x, x_21.y, x_21.z); const float x_27 = p.x; - const uint scalar_offset_4 = ((208u + (16u * uint(0)))) / 4; + const uint scalar_offset_4 = ((208u + (16u * 0u))) / 4; const float x_41 = asfloat(x_14[scalar_offset_4 / 4][scalar_offset_4 % 4]); const float x_45 = position.y; const float x_49 = asfloat(x_14[4].x); diff --git a/test/tint/bug/tint/1113.wgsl.expected.hlsl b/test/tint/bug/tint/1113.wgsl.expected.hlsl index e201d4a83c..1069d2b811 100644 --- a/test/tint/bug/tint/1113.wgsl.expected.hlsl +++ b/test/tint/bug/tint/1113.wgsl.expected.hlsl @@ -57,10 +57,10 @@ int tint_atomicLoad_1(RWByteAddressBuffer buffer, uint offset) { void doIgnore() { uint g42 = uniforms[0].x; uint kj6 = dbg.Load(20u); - uint b53 = tint_atomicLoad(counters, (4u * uint(0))); - uint rwg = indices.Load((4u * uint(0))); - float rb5 = asfloat(positions.Load((4u * uint(0)))); - int g55 = tint_atomicLoad_1(LUT, (4u * uint(0))); + uint b53 = tint_atomicLoad(counters, (4u * 0u)); + uint rwg = indices.Load((4u * 0u)); + float rb5 = asfloat(positions.Load((4u * 0u))); + int g55 = tint_atomicLoad_1(LUT, (4u * 0u)); } struct tint_symbol_1 { diff --git a/test/tint/bug/tint/1118.wgsl.expected.hlsl b/test/tint/bug/tint/1118.wgsl.expected.hlsl index c83a18a8a3..715bfecb6d 100644 --- a/test/tint/bug/tint/1118.wgsl.expected.hlsl +++ b/test/tint/bug/tint/1118.wgsl.expected.hlsl @@ -50,24 +50,24 @@ void main_1() { return; } const float4 x_34 = asfloat(x_29[0]); - const float3 x_38 = float3(0.0f, 0.0f, 0.0f); - viewDirectionW = normalize((float3(x_34.x, x_34.y, x_34.z) - x_38)); - baseColor = float4(1.0f, 1.0f, 1.0f, 1.0f); + const float3 x_38 = (0.0f).xxx; + viewDirectionW = normalize((float3(x_34.x, x_34.y, x_34.z) - (0.0f).xxx)); + baseColor = (1.0f).xxxx; const float4 x_52 = asfloat(x_49[0]); diffuseColor = float3(x_52.x, x_52.y, x_52.z); const float x_60 = asfloat(x_49[0].w); alpha = x_60; - const float3 x_62 = float3(0.0f, 0.0f, 0.0f); - const float3 x_64 = float3(0.0f, 0.0f, 0.0f); - normalW = normalize(-(cross(ddx(x_62), ddy(x_64)))); - uvOffset = float2(0.0f, 0.0f); - const float4 x_74 = float4(0.0f, 0.0f, 0.0f, 0.0f); + const float3 x_62 = (0.0f).xxx; + const float3 x_64 = (0.0f).xxx; + normalW = normalize(-(cross(ddx((0.0f).xxx), ddy((0.0f).xxx)))); + uvOffset = (0.0f).xx; + const float4 x_74 = (0.0f).xxxx; const float4 x_76 = baseColor; - const float3 x_78 = (float3(x_76.x, x_76.y, x_76.z) * float3(x_74.x, x_74.y, x_74.z)); + const float3 x_78 = (float3(x_76.x, x_76.y, x_76.z) * float3((0.0f).xxxx.x, (0.0f).xxxx.y, (0.0f).xxxx.z)); baseColor = float4(x_78.x, x_78.y, x_78.z, baseColor.w); - baseAmbientColor = float3(1.0f, 1.0f, 1.0f); + baseAmbientColor = (1.0f).xxx; glossiness = 0.0f; - diffuseBase = float3(0.0f, 0.0f, 0.0f); + diffuseBase = (0.0f).xxx; shadow = 1.0f; refractionColor = float4(0.0f, 0.0f, 0.0f, 1.0f); reflectionColor = float4(0.0f, 0.0f, 0.0f, 1.0f); @@ -78,14 +78,14 @@ void main_1() { const float3 x_99 = emissiveColor; const float3 x_103 = asfloat(x_49[1].xyz); const float4 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.x, x_108.y, x_108.z)); - finalSpecular = float3(0.0f, 0.0f, 0.0f); + finalDiffuse = (clamp((((x_96 * x_97) + x_99) + x_103), (0.0f).xxx, (1.0f).xxx) * float3(x_108.x, x_108.y, x_108.z)); + finalSpecular = (0.0f).xxx; const float4 x_118 = reflectionColor; const float4 x_121 = refractionColor; const float3 x_123 = ((((finalDiffuse * baseAmbientColor) + finalSpecular) + float3(x_118.x, x_118.y, x_118.z)) + float3(x_121.x, x_121.y, x_121.z)); color = float4(x_123.x, x_123.y, x_123.z, alpha); const float4 x_129 = color; - const float3 x_132 = max(float3(x_129.x, x_129.y, x_129.z), float3(0.0f, 0.0f, 0.0f)); + const float3 x_132 = max(float3(x_129.x, x_129.y, x_129.z), (0.0f).xxx); color = float4(x_132.x, x_132.y, x_132.z, color.w); const float x_140 = asfloat(x_137[0].x); const float x_142 = color.w; diff --git a/test/tint/bug/tint/1121.wgsl.expected.hlsl b/test/tint/bug/tint/1121.wgsl.expected.hlsl index 82a2ef64ea..6945bbfc2c 100644 --- a/test/tint/bug/tint/1121.wgsl.expected.hlsl +++ b/test/tint/bug/tint/1121.wgsl.expected.hlsl @@ -55,10 +55,10 @@ void main_inner(uint3 GlobalInvocationID) { { [loop] for(int y_1 = 0; (y_1 < 2); y_1 = (y_1 + 1)) { { - [loop] for(int x_1 = 0; (x_1 < TILE_COUNT_X); x_1 = (x_1 + 1)) { - int2 tilePixel0Idx = int2((x_1 * TILE_SIZE), (y_1 * TILE_SIZE)); - float2 floorCoord = (((2.0f * float2(tilePixel0Idx)) / asfloat(uniforms[10]).xy) - float2((1.0f).xx)); - float2 ceilCoord = (((2.0f * float2((tilePixel0Idx + int2((TILE_SIZE).xx)))) / asfloat(uniforms[10]).xy) - float2((1.0f).xx)); + [loop] for(int x_1 = 0; (x_1 < 2); x_1 = (x_1 + 1)) { + int2 tilePixel0Idx = int2((x_1 * 16), (y_1 * 16)); + float2 floorCoord = (((2.0f * float2(tilePixel0Idx)) / asfloat(uniforms[10]).xy) - (1.0f).xx); + float2 ceilCoord = (((2.0f * float2((tilePixel0Idx + (16).xx))) / asfloat(uniforms[10]).xy) - (1.0f).xx); float2 viewFloorCoord = float2((((-(viewNear) * floorCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * floorCoord.y) - (M[2][1] * viewNear)) / M[1][1])); float2 viewCeilCoord = float2((((-(viewNear) * ceilCoord.x) - (M[2][0] * viewNear)) / M[0][0]), (((-(viewNear) * ceilCoord.y) - (M[2][1] * viewNear)) / M[1][1])); frustumPlanes[0] = float4(1.0f, 0.0f, (-(viewFloorCoord.x) / viewNear), 0.0f); @@ -89,7 +89,7 @@ void main_inner(uint3 GlobalInvocationID) { } } if ((dp >= 0.0f)) { - uint tileId = uint((x_1 + (y_1 * TILE_COUNT_X))); + uint tileId = uint((x_1 + (y_1 * 2))); bool tint_tmp = (tileId < 0u); if (!tint_tmp) { tint_tmp = (tileId >= config[0].y); diff --git a/test/tint/bug/tint/1385.wgsl.expected.hlsl b/test/tint/bug/tint/1385.wgsl.expected.hlsl index 40ccc12542..1a0021807c 100644 --- a/test/tint/bug/tint/1385.wgsl.expected.hlsl +++ b/test/tint/bug/tint/1385.wgsl.expected.hlsl @@ -1,7 +1,7 @@ ByteAddressBuffer data : register(t1, space0); int foo() { - return asint(data.Load((4u * uint(0)))); + return asint(data.Load((4u * 0u))); } [numthreads(16, 16, 1)] diff --git a/test/tint/bug/tint/1520.spvasm.expected.hlsl b/test/tint/bug/tint/1520.spvasm.expected.hlsl index 052cd99b88..3e2d65fd8c 100644 --- a/test/tint/bug/tint/1520.spvasm.expected.hlsl +++ b/test/tint/bug/tint/1520.spvasm.expected.hlsl @@ -25,20 +25,20 @@ bool test_int_S1_c0_b() { ok = true; x_41_phi = false; if (true) { - x_40 = all(((int4(0, 0, 0, 0) / value_or_one_if_zero_int4(int4(x_27, x_27, x_27, x_27))) == int4(0, 0, 0, 0))); + x_40 = all((((0).xxxx / value_or_one_if_zero_int4(int4(x_27, x_27, x_27, x_27))) == (0).xxxx)); x_41_phi = x_40; } const bool x_41 = x_41_phi; ok = x_41; const int4 x_44 = int4(x_27, x_27, x_27, x_27); val = x_44; - const int4 x_47 = (x_44 + int4(1, 1, 1, 1)); + const int4 x_47 = (x_44 + (1).xxxx); val = x_47; - const int4 x_48 = (x_47 - int4(1, 1, 1, 1)); + const int4 x_48 = (x_47 - (1).xxxx); val = x_48; - const int4 x_49 = (x_48 + int4(1, 1, 1, 1)); + const int4 x_49 = (x_48 + (1).xxxx); val = x_49; - const int4 x_50 = (x_49 - int4(1, 1, 1, 1)); + const int4 x_50 = (x_49 - (1).xxxx); val = x_50; x_55_phi = false; if (x_41) { @@ -47,13 +47,13 @@ bool test_int_S1_c0_b() { } const bool x_55 = x_55_phi; ok = x_55; - const int4 x_58 = (x_50 * int4(2, 2, 2, 2)); + const int4 x_58 = (x_50 * (2).xxxx); val = x_58; - const int4 x_59 = (x_58 / int4(2, 2, 2, 2)); + const int4 x_59 = (x_58 / (2).xxxx); val = x_59; - const int4 x_60 = (x_59 * int4(2, 2, 2, 2)); + const int4 x_60 = (x_59 * (2).xxxx); val = x_60; - const int4 x_61 = (x_60 / int4(2, 2, 2, 2)); + const int4 x_61 = (x_60 / (2).xxxx); val = x_61; x_66_phi = false; if (x_55) { @@ -86,20 +86,20 @@ void main_1() { 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((((0.0f).xxxx / float4(x_77, x_77, x_77, x_77)) == (0.0f).xxxx)); x_87_phi = x_86; } const bool x_87 = x_87_phi; x_9_ok = x_87; const float4 x_89 = float4(x_77, x_77, x_77, x_77); x_10_val = x_89; - const float4 x_92 = (x_89 + float4(1.0f, 1.0f, 1.0f, 1.0f)); + const float4 x_92 = (x_89 + (1.0f).xxxx); x_10_val = x_92; - const float4 x_93 = (x_92 - float4(1.0f, 1.0f, 1.0f, 1.0f)); + const float4 x_93 = (x_92 - (1.0f).xxxx); x_10_val = x_93; - const float4 x_94 = (x_93 + float4(1.0f, 1.0f, 1.0f, 1.0f)); + const float4 x_94 = (x_93 + (1.0f).xxxx); x_10_val = x_94; - const float4 x_95 = (x_94 - float4(1.0f, 1.0f, 1.0f, 1.0f)); + const float4 x_95 = (x_94 - (1.0f).xxxx); x_10_val = x_95; x_100_phi = false; if (x_87) { @@ -108,13 +108,13 @@ void main_1() { } const bool x_100 = x_100_phi; x_9_ok = x_100; - const float4 x_103 = (x_95 * float4(2.0f, 2.0f, 2.0f, 2.0f)); + const float4 x_103 = (x_95 * (2.0f).xxxx); x_10_val = x_103; - const float4 x_104 = (x_103 / float4(2.0f, 2.0f, 2.0f, 2.0f)); + const float4 x_104 = (x_103 / (2.0f).xxxx); x_10_val = x_104; - const float4 x_105 = (x_104 * float4(2.0f, 2.0f, 2.0f, 2.0f)); + const float4 x_105 = (x_104 * (2.0f).xxxx); x_10_val = x_105; - const float4 x_106 = (x_105 / float4(2.0f, 2.0f, 2.0f, 2.0f)); + const float4 x_106 = (x_105 / (2.0f).xxxx); x_10_val = x_106; x_111_phi = false; if (x_100) { diff --git a/test/tint/bug/tint/292.wgsl.expected.hlsl b/test/tint/bug/tint/292.wgsl.expected.hlsl index 37debaef76..bb6e936f9d 100644 --- a/test/tint/bug/tint/292.wgsl.expected.hlsl +++ b/test/tint/bug/tint/292.wgsl.expected.hlsl @@ -5,7 +5,7 @@ struct tint_symbol { float4 main_inner() { float3 light = float3(1.200000048f, 1.0f, 2.0f); float3 negative_light = -(light); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol main() { diff --git a/test/tint/bug/tint/403.wgsl.expected.hlsl b/test/tint/bug/tint/403.wgsl.expected.hlsl index 69c48bed02..de76d9e16a 100644 --- a/test/tint/bug/tint/403.wgsl.expected.hlsl +++ b/test/tint/bug/tint/403.wgsl.expected.hlsl @@ -33,7 +33,7 @@ float4 main_inner(uint gl_VertexIndex) { const float2x2 x_23 = tint_symbol_3(x_20, 0u); const float2x2 x_28 = tint_symbol_5(x_26, 0u); const uint x_46 = gl_VertexIndex; - const float2 tint_symbol_7[3] = {float2(-1.0f, 1.0f), float2(1.0f, 1.0f), float2(-1.0f, -1.0f)}; + const float2 tint_symbol_7[3] = {float2(-1.0f, 1.0f), (1.0f).xx, (-1.0f).xx}; indexable = tint_symbol_7; const float2 x_51 = indexable[x_46]; const float2 x_52 = mul(x_51, float2x2((x_23[0u] + x_28[0u]), (x_23[1u] + x_28[1u]))); diff --git a/test/tint/bug/tint/413.spvasm.expected.hlsl b/test/tint/bug/tint/413.spvasm.expected.hlsl index 8b5111a2f5..309ad000ad 100644 --- a/test/tint/bug/tint/413.spvasm.expected.hlsl +++ b/test/tint/bug/tint/413.spvasm.expected.hlsl @@ -7,7 +7,7 @@ void main_1() { srcValue = x_18; const uint x_22 = srcValue.x; srcValue.x = (x_22 + asuint(1)); - Dst[int2(0, 0)] = srcValue; + Dst[(0).xx] = srcValue; return; } diff --git a/test/tint/bug/tint/453.wgsl.expected.hlsl b/test/tint/bug/tint/453.wgsl.expected.hlsl index 3dcf77f4a8..4e9260ee9e 100644 --- a/test/tint/bug/tint/453.wgsl.expected.hlsl +++ b/test/tint/bug/tint/453.wgsl.expected.hlsl @@ -8,6 +8,6 @@ void main() { srcValue = x_22; const uint x_24 = srcValue.x; const uint x_25 = (x_24 + 1u); - Dst[int2(0, 0)] = srcValue.xxxx; + Dst[(0).xx] = srcValue.xxxx; return; } diff --git a/test/tint/bug/tint/534.wgsl.expected.hlsl b/test/tint/bug/tint/534.wgsl.expected.hlsl index ecd26aa54b..801fe6ed34 100644 --- a/test/tint/bug/tint/534.wgsl.expected.hlsl +++ b/test/tint/bug/tint/534.wgsl.expected.hlsl @@ -44,9 +44,9 @@ void main_inner(uint3 GlobalInvocationID) { } uint outputIndex = ((GlobalInvocationID.y * uint(size.x)) + GlobalInvocationID.x); if (success) { - output.Store((4u * outputIndex), asuint(uint(1))); + output.Store((4u * outputIndex), asuint(1u)); } else { - output.Store((4u * outputIndex), asuint(uint(0))); + output.Store((4u * outputIndex), asuint(0u)); } } diff --git a/test/tint/bug/tint/749.spvasm.expected.hlsl b/test/tint/bug/tint/749.spvasm.expected.hlsl index d6f801a9cf..feecebfdb4 100644 --- a/test/tint/bug/tint/749.spvasm.expected.hlsl +++ b/test/tint/bug/tint/749.spvasm.expected.hlsl @@ -895,7 +895,7 @@ void main_1() { int i_2 = 0; float2 uv = float2(0.0f, 0.0f); const float2 x_717 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_717; i_2 = 0; const QuicksortObject x_721 = obj; @@ -912,10 +912,10 @@ void main_1() { const float2 x_431 = float2(float3(1.0f, 2.0f, 3.0f).x, float3(1.0f, 2.0f, 3.0f).x); const int x_158 = i_2; const float2 x_723 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_723; const float3 x_725 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_725; const float2 x_432 = float2(x_431.y, x_431.y); const QuicksortObject x_726 = obj; @@ -929,7 +929,7 @@ void main_1() { const QuicksortObject tint_symbol_93 = {tint_symbol_92}; obj = tint_symbol_93; obj = x_756; - const float2 x_446 = float2(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).x); + const float2 x_446 = float2((0.0f).xx.x, (0.0f).xx.x); const int x_757 = i_2; i_2 = 0; i_2 = x_757; @@ -941,11 +941,11 @@ void main_1() { obj = x_758; const float4 x_184 = gl_FragCoord; const float2 x_759 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_759; - const float2 x_447 = float2(float2(0.0f, 0.0f).y, float2(0.0f, 0.0f).y); + const float2 x_447 = float2((0.0f).xx.y, (0.0f).xx.y); const float2 x_760 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_760; const float2 x_185 = float2(x_184.x, x_184.y); const float3 x_448 = float3(x_185.y, x_446.y, x_446.y); @@ -955,7 +955,7 @@ void main_1() { obj = tint_symbol_97; obj = x_761; const float2 x_762 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_762; const float2 x_191 = asfloat(x_188[0].xy); const QuicksortObject x_763 = obj; @@ -965,7 +965,7 @@ void main_1() { obj = x_763; const float3 x_449 = float3(x_184.y, float3(1.0f, 2.0f, 3.0f).z, x_184.w); const float3 x_764 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_764; const float2 x_192 = (x_185 / x_191); const QuicksortObject x_765 = obj; @@ -975,15 +975,15 @@ void main_1() { obj = x_765; const float2 x_450 = float2(x_447.x, x_185.y); const float3 x_766 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; const float3 x_767 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_767; color = x_766; uv = x_192; color = float3(1.0f, 2.0f, 3.0f); const float3 x_768 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_768; const float3 x_451 = float3(x_185.x, x_185.y, x_446.y); const QuicksortObject x_769 = obj; @@ -1019,10 +1019,10 @@ void main_1() { const float3 x_453 = float3(x_451.x, x_450.x, x_450.y); color.x = (x_206 + float(x_201)); const float2 x_776 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_776; const float2 x_777 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_777; const float2 x_454 = float2(x_184.y, x_184.y); const float x_210 = uv.x; @@ -1042,7 +1042,7 @@ void main_1() { const int x_781 = obj.numbers[0u]; obj.numbers[0u] = 0; obj.numbers[0u] = x_781; - const float3 x_456 = float3(float2(0.0f, 0.0f).y, x_448.y, x_448.y); + const float3 x_456 = float3((0.0f).xx.y, x_448.y, x_448.y); const float x_782 = uv.x; uv.x = 0.0f; uv.x = x_782; @@ -1054,14 +1054,14 @@ void main_1() { obj = x_783; const float2 x_457 = float2(x_454.x, x_454.x); const float2 x_784 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_784; const QuicksortObject x_785 = obj; const int tint_symbol_112[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; const QuicksortObject tint_symbol_113 = {tint_symbol_112}; obj = tint_symbol_113; obj = x_785; - const float2 x_458 = float2(float3(1.0f, 2.0f, 3.0f).z, float2(0.0f, 0.0f).y); + const float2 x_458 = float2(float3(1.0f, 2.0f, 3.0f).z, (0.0f).xx.y); const int x_786 = i_2; i_2 = 0; i_2 = x_786; @@ -1070,10 +1070,10 @@ void main_1() { color[0] = 0.0f; color[0] = x_787; const float3 x_788 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_788; const float3 x_789 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_789; const float3 x_459 = float3(x_454.y, x_454.y, x_447.y); const float x_790 = color[0]; @@ -1096,12 +1096,12 @@ void main_1() { uv.x = x_794; const float3 x_460 = float3(x_453.z, x_453.y, x_453.y); const float2 x_795 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_795; const float x_796 = uv.x; uv.x = 0.0f; uv.x = x_796; - const float2 x_461 = float2(float2(0.0f, 0.0f).y, float2(0.0f, 0.0f).y); + const float2 x_461 = float2((0.0f).xx.y, (0.0f).xx.y); const float x_797 = uv.x; uv.x = 0.0f; uv.x = x_797; @@ -1145,7 +1145,7 @@ void main_1() { const int x_808 = i_2; i_2 = 0; i_2 = x_808; - const float2 x_466 = float2(x_455.y, float2(0.0f, 0.0f).y); + const float2 x_466 = float2(x_455.y, (0.0f).xx.y); const int x_809 = i_2; i_2 = 0; i_2 = x_809; @@ -1163,7 +1163,7 @@ void main_1() { uv.x = x_812; const float x_238 = uv[0]; const float3 x_813 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_813; const float x_814 = color.x; color.x = 0.0f; @@ -1190,7 +1190,7 @@ void main_1() { uv.x = x_819; const float x_249 = color.z; const float3 x_820 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_820; const float3 x_469 = float3(x_467.x, x_191.y, x_467.y); const float x_821 = color.z; @@ -1199,13 +1199,13 @@ void main_1() { const int x_822 = obj.numbers[0u]; obj.numbers[0u] = 0; obj.numbers[0u] = x_822; - const float2 x_470 = float2(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).y); + const float2 x_470 = float2((0.0f).xx.x, (0.0f).xx.y); const float x_823 = color.z; color.z = 0.0f; color.z = x_823; color.z = (x_249 + float(x_245)); const float2 x_824 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_824; const float2 x_471 = float2(x_470.y, x_470.y); } @@ -1218,7 +1218,7 @@ void main_1() { uv[0] = 0.0f; uv[0] = x_826; const float3 x_827 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_827; const float3 x_473 = float3(x_446.y, x_453.x, x_453.x); const int x_828 = obj.numbers[4]; @@ -1241,7 +1241,7 @@ void main_1() { color.x = x_832; const float2 x_476 = float2(x_451.z, x_460.y); color.y = (x_257 + float(x_254)); - const float3 x_477 = float3(float2(0.0f, 0.0f).x, x_472.x, float2(0.0f, 0.0f).y); + const float3 x_477 = float3((0.0f).xx.x, x_472.x, (0.0f).xx.y); const float x_833 = uv.x; uv.x = 0.0f; uv.x = x_833; @@ -1256,21 +1256,21 @@ void main_1() { const int x_836 = i_2; i_2 = 0; i_2 = x_836; - const float3 x_479 = float3(float2(0.0f, 0.0f).y, x_454.y, float2(0.0f, 0.0f).x); + const float3 x_479 = float3((0.0f).xx.y, x_454.y, (0.0f).xx.x); const int x_837 = obj.numbers[0u]; obj.numbers[0u] = 0; obj.numbers[0u] = x_837; const float x_838 = color.y; color.y = 0.0f; color.y = x_838; - const float3 x_480 = float3(x_446.x, x_446.x, float2(0.0f, 0.0f).y); + const float3 x_480 = float3(x_446.x, x_446.x, (0.0f).xx.y); const float x_839 = uv.x; uv.x = 0.0f; uv.x = x_839; if ((x_261 > 0.25f)) { const float2 x_481 = float2(x_447.x, x_480.z); const float3 x_840 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_840; const int x_267 = obj.numbers[5u]; const float x_841 = color.x; @@ -1347,7 +1347,7 @@ void main_1() { const float2 x_488 = float2(x_473.z, x_473.y); const float x_283 = color.y; const float2 x_860 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_860; const float x_861 = color.x; color.x = 0.0f; @@ -1397,14 +1397,14 @@ void main_1() { obj.numbers[4] = x_871; if ((x_287 > 0.75f)) { const float3 x_872 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_872; const float x_873 = color.x; color.x = 0.0f; color.x = x_873; const float3 x_495 = float3(x_192.y, x_192.x, x_192.y); const float3 x_874 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_874; const int x_293 = obj.numbers[7]; const float x_875 = uv.x; @@ -1457,7 +1457,7 @@ void main_1() { i_2 = x_887; const float2 x_502 = float2(x_451.y, x_192.y); const float2 x_888 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_888; const int x_301 = obj.numbers[8]; const int x_889 = i_2; @@ -1470,7 +1470,7 @@ void main_1() { const float x_891 = color.y; color.y = 0.0f; color.y = x_891; - const float2 x_504 = float2(x_453.y, float2(0.0f, 0.0f).x); + const float2 x_504 = float2(x_453.y, (0.0f).xx.x); const float x_892 = color.x; color.x = 0.0f; color.x = x_892; @@ -1495,7 +1495,7 @@ void main_1() { color.y = x_897; color.z = (x_304 + float(x_301)); const float2 x_898 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_898; const float x_899 = uv.x; uv.x = 0.0f; @@ -1528,7 +1528,7 @@ void main_1() { i_2 = x_906; const float2 x_511 = float2(x_485.z, x_485.y); const float3 x_907 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_907; const float x_908 = uv.y; uv.y = 0.0f; @@ -1564,16 +1564,16 @@ void main_1() { color.x = 0.0f; color.x = x_915; const float3 x_916 = color; - color = float3(0.0f, 0.0f, 0.0f); + color = (0.0f).xxx; color = x_916; const float2 x_516 = float2(x_452.x, x_452.x); const float2 x_917 = uv; - uv = float2(0.0f, 0.0f); + uv = (0.0f).xx; uv = x_917; const float x_918 = uv.x; uv.x = 0.0f; uv.x = x_918; - const float3 x_517 = float3(float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).x, float2(0.0f, 0.0f).y); + const float3 x_517 = float3((0.0f).xx.x, (0.0f).xx.x, (0.0f).xx.y); color.x = (float(x_317) + x_320); const float x_919 = color.x; color.x = 0.0f; diff --git a/test/tint/bug/tint/764.wgsl.expected.hlsl b/test/tint/bug/tint/764.wgsl.expected.hlsl index 592c30903b..236bed1eb8 100644 --- a/test/tint/bug/tint/764.wgsl.expected.hlsl +++ b/test/tint/bug/tint/764.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - const float4x4 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)); - const float4 v1 = m[0]; + const float4x4 m = float4x4((1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx); + const float4 v1 = float4x4((1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx, (1.0f).xxxx)[0]; const float a = v1[0]; } diff --git a/test/tint/bug/tint/824.wgsl.expected.hlsl b/test/tint/bug/tint/824.wgsl.expected.hlsl index 71b1f38230..d565814d44 100644 --- a/test/tint/bug/tint/824.wgsl.expected.hlsl +++ b/test/tint/bug/tint/824.wgsl.expected.hlsl @@ -12,11 +12,11 @@ struct tint_symbol_2 { }; Output main_inner(uint VertexIndex, uint InstanceIndex) { - const float2 zv[4] = {float2(0.200000003f, 0.200000003f), float2(0.300000012f, 0.300000012f), float2(-0.100000001f, -0.100000001f), float2(1.100000024f, 1.100000024f)}; + const float2 zv[4] = {(0.200000003f).xx, (0.300000012f).xx, (-0.100000001f).xx, (1.100000024f).xx}; const float z = zv[InstanceIndex].x; Output output = (Output)0; output.Position = float4(0.5f, 0.5f, z, 1.0f); - const float4 colors[4] = {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)}; + const float4 colors[4] = {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), (1.0f).xxxx}; output.color = colors[InstanceIndex]; return output; } diff --git a/test/tint/bug/tint/825.wgsl.expected.hlsl b/test/tint/bug/tint/825.wgsl.expected.hlsl index f38475dc0a..534207a5b9 100644 --- a/test/tint/bug/tint/825.wgsl.expected.hlsl +++ b/test/tint/bug/tint/825.wgsl.expected.hlsl @@ -7,5 +7,5 @@ void f() { int i = 0; int j = 0; const float2x2 m = float2x2(float2(1.0f, 2.0f), float2(3.0f, 4.0f)); - const float f_1 = m[i][j]; + const float 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.hlsl b/test/tint/bug/tint/827.wgsl.expected.hlsl index 3ad514823a..89de07bccb 100644 --- a/test/tint/bug/tint/827.wgsl.expected.hlsl +++ b/test/tint/bug/tint/827.wgsl.expected.hlsl @@ -7,7 +7,7 @@ struct tint_symbol_1 { }; void main_inner(uint3 GlobalInvocationId) { - result.Store((4u * ((GlobalInvocationId.y * width) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x)); + result.Store((4u * ((GlobalInvocationId.y * 128u) + GlobalInvocationId.x)), asuint(tex.Load(int3(int(GlobalInvocationId.x), int(GlobalInvocationId.y), 0)).x)); } [numthreads(1, 1, 1)] diff --git a/test/tint/bug/tint/913.wgsl.expected.hlsl b/test/tint/bug/tint/913.wgsl.expected.hlsl index 2c8eb01dac..a6943bbc03 100644 --- a/test/tint/bug/tint/913.wgsl.expected.hlsl +++ b/test/tint/bug/tint/913.wgsl.expected.hlsl @@ -38,7 +38,7 @@ void main_inner(uint3 GlobalInvocationID) { if ((tint_tmp_2)) { bool tint_tmp_5 = success; if (tint_tmp_5) { - tint_tmp_5 = all((tint_symbol.Load(int3(int2(dstTexCoord), 0)) == nonCoveredColor)); + tint_tmp_5 = all((tint_symbol.Load(int3(int2(dstTexCoord), 0)) == float4(0.0f, 1.0f, 0.0f, 1.0f))); } success = (tint_tmp_5); } else { diff --git a/test/tint/bug/tint/914.wgsl.expected.hlsl b/test/tint/bug/tint/914.wgsl.expected.hlsl index 6e88dc08d7..0baa6c69b6 100644 --- a/test/tint/bug/tint/914.wgsl.expected.hlsl +++ b/test/tint/bug/tint/914.wgsl.expected.hlsl @@ -64,32 +64,32 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) { } } GroupMemoryBarrierWithGroupSync(); - const uint tileRow = (local_id.y * RowPerThread); - const uint tileCol = (local_id.x * ColPerThread); - const uint globalRow = (global_id.y * RowPerThread); - const uint globalCol = (global_id.x * ColPerThread); - const uint numTiles = (((uniforms[0].y - 1u) / TileInner) + 1u); + const uint tileRow = (local_id.y * 4u); + const uint tileCol = (local_id.x * 4u); + const uint globalRow = (global_id.y * 4u); + const uint globalCol = (global_id.x * 4u); + const uint numTiles = (((uniforms[0].y - 1u) / 64u) + 1u); float acc[16] = (float[16])0; float ACached = 0.0f; float BCached[4] = (float[4])0; { - [loop] for(uint index = 0u; (index < (RowPerThread * ColPerThread)); index = (index + 1u)) { + [loop] for(uint index = 0u; (index < (4u * 4u)); index = (index + 1u)) { acc[index] = 0.0f; } } - const uint ColPerThreadA = (TileInner / 16u); + const uint ColPerThreadA = (64u / 16u); const uint tileColA = (local_id.x * ColPerThreadA); - const uint RowPerThreadB = (TileInner / 16u); + const uint RowPerThreadB = (64u / 16u); const uint tileRowB = (local_id.y * RowPerThreadB); { [loop] for(uint t = 0u; (t < numTiles); t = (t + 1u)) { { - [loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { + [loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { { [loop] for(uint innerCol = 0u; (innerCol < ColPerThreadA); innerCol = (innerCol + 1u)) { const uint inputRow = (tileRow + innerRow); const uint inputCol = (tileColA + innerCol); - const float tint_symbol_2 = mm_readA((globalRow + innerRow), ((t * TileInner) + inputCol)); + const float tint_symbol_2 = mm_readA((globalRow + innerRow), ((t * 64u) + inputCol)); mm_Asub[inputRow][inputCol] = tint_symbol_2; } } @@ -98,10 +98,10 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) { { [loop] for(uint innerRow = 0u; (innerRow < RowPerThreadB); innerRow = (innerRow + 1u)) { { - [loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { + [loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { const uint inputRow = (tileRowB + innerRow); const uint inputCol = (tileCol + innerCol); - const float tint_symbol_3 = mm_readB(((t * TileInner) + inputRow), (globalCol + innerCol)); + const float tint_symbol_3 = mm_readB(((t * 64u) + inputRow), (globalCol + innerCol)); mm_Bsub[innerCol][inputCol] = tint_symbol_3; } } @@ -109,18 +109,18 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) { } GroupMemoryBarrierWithGroupSync(); { - [loop] for(uint k = 0u; (k < TileInner); k = (k + 1u)) { + [loop] for(uint k = 0u; (k < 64u); k = (k + 1u)) { { - [loop] for(uint inner = 0u; (inner < ColPerThread); inner = (inner + 1u)) { + [loop] for(uint inner = 0u; (inner < 4u); inner = (inner + 1u)) { BCached[inner] = mm_Bsub[k][(tileCol + inner)]; } } { - [loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { + [loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { ACached = mm_Asub[(tileRow + innerRow)][k]; { - [loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { - const uint index = ((innerRow * ColPerThread) + innerCol); + [loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + const uint index = ((innerRow * 4u) + innerCol); acc[index] = (acc[index] + (ACached * BCached[innerCol])); } } @@ -132,10 +132,10 @@ void main_inner(uint3 local_id, uint3 global_id, uint local_invocation_index) { } } { - [loop] for(uint innerRow = 0u; (innerRow < RowPerThread); innerRow = (innerRow + 1u)) { + [loop] for(uint innerRow = 0u; (innerRow < 4u); innerRow = (innerRow + 1u)) { { - [loop] for(uint innerCol = 0u; (innerCol < ColPerThread); innerCol = (innerCol + 1u)) { - const uint index = ((innerRow * ColPerThread) + innerCol); + [loop] for(uint innerCol = 0u; (innerCol < 4u); innerCol = (innerCol + 1u)) { + const uint index = ((innerRow * 4u) + innerCol); mm_write((globalRow + innerRow), (globalCol + innerCol), acc[index]); } } diff --git a/test/tint/bug/tint/922.wgsl.expected.hlsl b/test/tint/bug/tint/922.wgsl.expected.hlsl index 70437678d2..d3cf5a3686 100644 --- a/test/tint/bug/tint/922.wgsl.expected.hlsl +++ b/test/tint/bug/tint/922.wgsl.expected.hlsl @@ -199,7 +199,7 @@ void main1() { if ((x_e52.x == 2.0f)) { { const float3 x_e59 = a_Normal1; - const Mat4x2_ x_e64 = tint_symbol_8(global1, (32u * uint(0))); + const Mat4x2_ x_e64 = tint_symbol_8(global1, (32u * 0u)); const float2 x_e68 = Mul2(x_e64, float4(a_Normal1, 1.0f)); v_TexCoord = x_e68.xy; return; @@ -207,7 +207,7 @@ void main1() { } else { { const float2 x_e73 = a_UV1; - const Mat4x2_ x_e79 = tint_symbol_8(global1, (32u * uint(0))); + const Mat4x2_ x_e79 = tint_symbol_8(global1, (32u * 0u)); const float2 x_e84 = Mul2(x_e79, float4(a_UV1, 1.0f, 1.0f)); v_TexCoord = x_e84.xy; return; diff --git a/test/tint/bug/tint/942.wgsl.expected.hlsl b/test/tint/bug/tint/942.wgsl.expected.hlsl index 7c38bdcd3d..26a04416f9 100644 --- a/test/tint/bug/tint/942.wgsl.expected.hlsl +++ b/test/tint/bug/tint/942.wgsl.expected.hlsl @@ -21,7 +21,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio [loop] for(uint idx = local_invocation_index; (idx < 1024u); idx = (idx + 64u)) { const uint i_1 = (idx / 256u); const uint i_2 = (idx % 256u); - tile[i_1][i_2] = float3(0.0f, 0.0f, 0.0f); + tile[i_1][i_2] = (0.0f).xxx; } } GroupMemoryBarrierWithGroupSync(); @@ -38,7 +38,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio if ((flip[0].x != 0u)) { loadIndex = loadIndex.yx; } - tile[r][((4u * LocalInvocationID.x) + c)] = inputTex.SampleLevel(samp, ((float2(loadIndex) + float2(0.25f, 0.25f)) / float2(dims)), 0.0f).rgb; + tile[r][((4u * LocalInvocationID.x) + c)] = inputTex.SampleLevel(samp, ((float2(loadIndex) + (0.25f).xx) / float2(dims)), 0.0f).rgb; } } } @@ -62,7 +62,7 @@ void main_inner(uint3 WorkGroupID, uint3 LocalInvocationID, uint local_invocatio tint_tmp_1 = all((writeIndex < dims)); } if ((tint_tmp_1)) { - float3 acc = float3(0.0f, 0.0f, 0.0f); + float3 acc = (0.0f).xxx; { [loop] for(uint f = 0u; (f < params[0].x); f = (f + 1u)) { uint i = ((center + f) - filterOffset); diff --git a/test/tint/bug/tint/943.spvasm.expected.hlsl b/test/tint/bug/tint/943.spvasm.expected.hlsl index b3aa90bd9c..ae58a78045 100644 --- a/test/tint/bug/tint/943.spvasm.expected.hlsl +++ b/test/tint/bug/tint/943.spvasm.expected.hlsl @@ -20,7 +20,7 @@ bool coordsInBounds_vi2_vi2_(inout int2 coord, inout int2 shape) { bool x_87 = false; bool x_88_phi = false; const int2 x_76 = coord; - const bool x_81 = all((x_76 >= int2(0, 0))); + const bool x_81 = all((x_76 >= (0).xx)); x_88_phi = x_81; if (x_81) { const int2 x_84 = coord; diff --git a/test/tint/bug/tint/948.wgsl.expected.hlsl b/test/tint/bug/tint/948.wgsl.expected.hlsl index 8c8978ed1d..02a6716dee 100644 --- a/test/tint/bug/tint/948.wgsl.expected.hlsl +++ b/test/tint/bug/tint/948.wgsl.expected.hlsl @@ -39,7 +39,7 @@ float4x4 getFrameData_f1_(inout float frameID) { const float4 x_40 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.0f), 0.0f); const float4 x_47 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.25f), 0.0f); const float4 x_54 = frameMapTexture.SampleBias(frameMapSampler, float2(fX, 0.5f), 0.0f); - return float4x4(float4(x_40.x, x_40.y, x_40.z, x_40.w), float4(x_47.x, x_47.y, x_47.z, x_47.w), float4(x_54.x, x_54.y, x_54.z, x_54.w), float4(float4(0.0f, 0.0f, 0.0f, 0.0f).x, float4(0.0f, 0.0f, 0.0f, 0.0f).y, float4(0.0f, 0.0f, 0.0f, 0.0f).z, float4(0.0f, 0.0f, 0.0f, 0.0f).w)); + return float4x4(float4(x_40.x, x_40.y, x_40.z, x_40.w), float4(x_47.x, x_47.y, x_47.z, x_47.w), float4(x_54.x, x_54.y, x_54.z, x_54.w), float4((0.0f).xxxx.x, (0.0f).xxxx.y, (0.0f).xxxx.z, (0.0f).xxxx.w)); } void main_1() { @@ -61,17 +61,17 @@ void main_1() { float4 nc = float4(0.0f, 0.0f, 0.0f, 0.0f); float alpha = 0.0f; float3 mixed = float3(0.0f, 0.0f, 0.0f); - color = float4(0.0f, 0.0f, 0.0f, 0.0f); + color = (0.0f).xxxx; tileUV = frac(tUV); const float x_91 = tileUV.y; tileUV.y = (1.0f - x_91); tileID = floor(tUV); const float2 x_101 = asfloat(x_20[6].xy); - sheetUnits = (float2(1.0f, 1.0f) / x_101); + sheetUnits = ((1.0f).xx / x_101); const float x_106 = asfloat(x_20[6].w); spriteUnits = (1.0f / x_106); const float2 x_111 = asfloat(x_20[5].zw); - stageUnits = (float2(1.0f, 1.0f) / x_111); + stageUnits = ((1.0f).xx / x_111); i = 0; { [loop] for(; (i < 2); i = (i + 1)) { @@ -79,14 +79,14 @@ void main_1() { case 1: { const float2 x_150 = tileID; const float2 x_154 = asfloat(x_20[5].zw); - const float4 x_156 = tileMapsTexture1.SampleBias(tileMapsSampler, ((x_150 + float2(0.5f, 0.5f)) / x_154), 0.0f); + const float4 x_156 = tileMapsTexture1.SampleBias(tileMapsSampler, ((x_150 + (0.5f).xx) / x_154), 0.0f); frameID_1 = x_156.x; break; } case 0: { const float2 x_136 = tileID; const float2 x_140 = asfloat(x_20[5].zw); - const float4 x_142 = tileMapsTexture0.SampleBias(tileMapsSampler, ((x_136 + float2(0.5f, 0.5f)) / x_140), 0.0f); + const float4 x_142 = tileMapsTexture0.SampleBias(tileMapsSampler, ((x_136 + (0.5f).xx) / x_140), 0.0f); frameID_1 = x_142.x; break; } diff --git a/test/tint/bug/tint/949.wgsl.expected.hlsl b/test/tint/bug/tint/949.wgsl.expected.hlsl index a8d51b13b2..e29a611252 100644 --- a/test/tint/bug/tint/949.wgsl.expected.hlsl +++ b/test/tint/bug/tint/949.wgsl.expected.hlsl @@ -120,7 +120,7 @@ float3 perturbNormal_mf33_vf3_f1_(inout float3x3 cotangentFrame_1, inout float3 const float3 x_119 = textureSample; const float3x3 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) - (1.0f).xxx); const float x_128 = scale_1; param_2 = x_128; const float3 x_129 = perturbNormalBase_mf33_vf3_f1_(param, param_1, param_2); @@ -208,7 +208,7 @@ void main_1() { float3 specularOutput = float3(0.0f, 0.0f, 0.0f); float3 output3 = float3(0.0f, 0.0f, 0.0f); u_Float = 100.0f; - u_Color = float3(0.5f, 0.5f, 0.5f); + u_Color = (0.5f).xxx; const float4 x_262 = TextureSamplerTexture.Sample(TextureSamplerSampler, vMainuv); tempTextureRead = x_262; const float4 x_264 = tempTextureRead; @@ -217,8 +217,8 @@ void main_1() { const float3 x_279 = asfloat(x_269[9].xyz); const float4 x_282 = v_output1; output5 = normalize((x_279 - float3(x_282.x, x_282.y, x_282.z))); - output4 = float4(0.0f, 0.0f, 0.0f, 0.0f); - uvOffset = float2(0.0f, 0.0f); + output4 = (0.0f).xxxx; + uvOffset = (0.0f).xx; const float x_292 = asfloat(x_269[8].x); normalScale = (1.0f / x_292); if (gl_FrontFacing) { @@ -250,8 +250,8 @@ void main_1() { numSamples = (15.0f + (dot(mul(-(output5), invTBN), mul(float3(x_366.x, x_366.y, x_366.z), invTBN)) * -11.0f)); stepSize = (1.0f / numSamples); currRayHeight = 1.0f; - vCurrOffset = float2(0.0f, 0.0f); - vLastOffset = float2(0.0f, 0.0f); + vCurrOffset = (0.0f).xx; + vLastOffset = (0.0f).xx; lastSampledHeight = 1.0f; currSampledHeight = 1.0f; i = 0; @@ -292,8 +292,8 @@ void main_1() { viewDirectionW_1 = normalize((x_481 - float3(x_482.x, x_482.y, x_482.z))); shadow = 1.0f; glossiness_1 = (1.0f * u_Float); - diffuseBase = float3(0.0f, 0.0f, 0.0f); - specularBase = float3(0.0f, 0.0f, 0.0f); + diffuseBase = (0.0f).xxx; + specularBase = (0.0f).xxx; const float4 x_494 = output4; normalW = float3(x_494.x, x_494.y, x_494.z); param_11 = viewDirectionW_1; diff --git a/test/tint/bug/tint/980.wgsl.expected.hlsl b/test/tint/bug/tint/980.wgsl.expected.hlsl index 300688cb68..bcec5f7aaa 100644 --- a/test/tint/bug/tint/980.wgsl.expected.hlsl +++ b/test/tint/bug/tint/980.wgsl.expected.hlsl @@ -3,7 +3,7 @@ void set_float3(inout float3 vec, int idx, float val) { } float3 Bad(uint index, float3 rd) { - float3 normal = float3((0.0f).xxx); + float3 normal = (0.0f).xxx; set_float3(normal, index, -(sign(rd[index]))); return normalize(normal); } diff --git a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl index ba7c0ad9b6..99dbb8891b 100644 --- a/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl +++ b/test/tint/builtins/extractBits/vec3/i32.spvasm.expected.hlsl @@ -7,7 +7,7 @@ int3 tint_extract_bits(int3 v, uint offset, uint count) { } void f_1() { - int3 v = int3(0, 0, 0); + int3 v = (0).xxx; uint offset_1 = 0u; uint count = 0u; const int3 x_15 = tint_extract_bits(v, offset_1, count); diff --git a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl index ed7936a708..5c0b0cbca2 100644 --- a/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl +++ b/test/tint/builtins/extractBits/vec3/u32.spvasm.expected.hlsl @@ -7,7 +7,7 @@ uint3 tint_extract_bits(uint3 v, uint offset, uint count) { } void f_1() { - uint3 v = uint3(0u, 0u, 0u); + uint3 v = (0u).xxx; uint offset_1 = 0u; uint count = 0u; const uint3 x_14 = tint_extract_bits(v, offset_1, count); diff --git a/test/tint/builtins/gen/abs/002533.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/002533.wgsl.expected.hlsl index f145efd5e1..40198e072e 100644 --- a/test/tint/builtins/gen/abs/002533.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/002533.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_002533() { - float4 res = abs(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = abs((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_002533(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/005174.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/005174.wgsl.expected.hlsl index 9dc600cef7..c439a7de41 100644 --- a/test/tint/builtins/gen/abs/005174.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/005174.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_005174() { - float3 res = abs(float3(0.0f, 0.0f, 0.0f)); + float3 res = abs((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_005174(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/1ce782.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/1ce782.wgsl.expected.hlsl index 76857d7af1..2d34282891 100644 --- a/test/tint/builtins/gen/abs/1ce782.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/1ce782.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_1ce782() { - uint4 res = abs(uint4(0u, 0u, 0u, 0u)); + uint4 res = abs((0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_1ce782(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.hlsl index 7668024349..602c31aae0 100644 --- a/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/1e9d53.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_1e9d53() { - float2 res = abs(float2(0.0f, 0.0f)); + float2 res = abs((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_1e9d53(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/467cd1.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/467cd1.wgsl.expected.hlsl index 8e2a89111b..b2deec6710 100644 --- a/test/tint/builtins/gen/abs/467cd1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/467cd1.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_467cd1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/4ad288.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/4ad288.wgsl.expected.hlsl index 686c82c0b0..44825b3f56 100644 --- a/test/tint/builtins/gen/abs/4ad288.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/4ad288.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_4ad288(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.hlsl index 0a43ef6026..b2487339f2 100644 --- a/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/5ad50a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_5ad50a() { - int3 res = abs(int3(0, 0, 0)); + int3 res = abs((0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_5ad50a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7326de.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/7326de.wgsl.expected.hlsl index 4be3799fcd..2e994a2725 100644 --- a/test/tint/builtins/gen/abs/7326de.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/7326de.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_7326de() { - uint3 res = abs(uint3(0u, 0u, 0u)); + uint3 res = abs((0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7326de(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.hlsl index a3c8098e9d..82c82ee31c 100644 --- a/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/7f28e6.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_7f28e6() { - uint2 res = abs(uint2(0u, 0u)); + uint2 res = abs((0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7f28e6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.hlsl index 137d120fd5..a9575ee6e7 100644 --- a/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/7faa9e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_7faa9e() { - int2 res = abs(int2(0, 0)); + int2 res = abs((0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_7faa9e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.hlsl index d53818e600..0beb965a4c 100644 --- a/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/9c80a6.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void abs_9c80a6() { - int4 res = abs(int4(0, 0, 0, 0)); + int4 res = abs((0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_9c80a6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/abs/b96037.wgsl.expected.hlsl b/test/tint/builtins/gen/abs/b96037.wgsl.expected.hlsl index 4d302e4751..a4c7c03d4d 100644 --- a/test/tint/builtins/gen/abs/b96037.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/abs/b96037.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { abs_b96037(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/489247.wgsl.expected.hlsl b/test/tint/builtins/gen/acos/489247.wgsl.expected.hlsl index c10f0ee457..d370fc469a 100644 --- a/test/tint/builtins/gen/acos/489247.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/acos/489247.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_489247(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.hlsl b/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.hlsl index eee957e4fb..cb76fd6d75 100644 --- a/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/acos/8e2acf.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void acos_8e2acf() { - float4 res = acos(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = acos((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_8e2acf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/a610c4.wgsl.expected.hlsl b/test/tint/builtins/gen/acos/a610c4.wgsl.expected.hlsl index 13d02ef20e..f76f3e9582 100644 --- a/test/tint/builtins/gen/acos/a610c4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/acos/a610c4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void acos_a610c4() { - float3 res = acos(float3(0.0f, 0.0f, 0.0f)); + float3 res = acos((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_a610c4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/acos/dfc915.wgsl.expected.hlsl b/test/tint/builtins/gen/acos/dfc915.wgsl.expected.hlsl index be3e380b16..785cef0d0f 100644 --- a/test/tint/builtins/gen/acos/dfc915.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/acos/dfc915.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void acos_dfc915() { - float2 res = acos(float2(0.0f, 0.0f)); + float2 res = acos((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { acos_dfc915(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/353d6a.wgsl.expected.hlsl b/test/tint/builtins/gen/all/353d6a.wgsl.expected.hlsl index f8143baff5..30f57aa976 100644 --- a/test/tint/builtins/gen/all/353d6a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/all/353d6a.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_353d6a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/986c7b.wgsl.expected.hlsl b/test/tint/builtins/gen/all/986c7b.wgsl.expected.hlsl index 9afde8c555..a5132c87a6 100644 --- a/test/tint/builtins/gen/all/986c7b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/all/986c7b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void all_986c7b() { - bool res = all(bool4(false, false, false, false)); + bool res = all((false).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_986c7b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/bd2dba.wgsl.expected.hlsl b/test/tint/builtins/gen/all/bd2dba.wgsl.expected.hlsl index 0650c248e3..15cdeeff5b 100644 --- a/test/tint/builtins/gen/all/bd2dba.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/all/bd2dba.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void all_bd2dba() { - bool res = all(bool3(false, false, false)); + bool res = all((false).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_bd2dba(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/all/f46790.wgsl.expected.hlsl b/test/tint/builtins/gen/all/f46790.wgsl.expected.hlsl index 57120d6d7c..6bfb9a7030 100644 --- a/test/tint/builtins/gen/all/f46790.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/all/f46790.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void all_f46790() { - bool res = all(bool2(false, false)); + bool res = all((false).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { all_f46790(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/083428.wgsl.expected.hlsl b/test/tint/builtins/gen/any/083428.wgsl.expected.hlsl index 5a6ed63fee..386fe95349 100644 --- a/test/tint/builtins/gen/any/083428.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/any/083428.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void any_083428() { - bool res = any(bool4(false, false, false, false)); + bool res = any((false).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_083428(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/0e3e58.wgsl.expected.hlsl b/test/tint/builtins/gen/any/0e3e58.wgsl.expected.hlsl index ba726f0e15..4ed4c65aab 100644 --- a/test/tint/builtins/gen/any/0e3e58.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/any/0e3e58.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void any_0e3e58() { - bool res = any(bool2(false, false)); + bool res = any((false).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_0e3e58(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/2ab91a.wgsl.expected.hlsl b/test/tint/builtins/gen/any/2ab91a.wgsl.expected.hlsl index 5e7556e1b1..9c108e7b00 100644 --- a/test/tint/builtins/gen/any/2ab91a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/any/2ab91a.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_2ab91a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/any/e755c1.wgsl.expected.hlsl b/test/tint/builtins/gen/any/e755c1.wgsl.expected.hlsl index ab1a57aec6..4ca729eb2c 100644 --- a/test/tint/builtins/gen/any/e755c1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/any/e755c1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void any_e755c1() { - bool res = any(bool3(false, false, false)); + bool res = any((false).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { any_e755c1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl index 5eb91da8a0..fabbad5078 100644 --- a/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/1588cd.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_1588cd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl index 77b4a1ea9a..ba47339e36 100644 --- a/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/61b1c7.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_61b1c7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl index f5167fa5a7..cee7ff20e5 100644 --- a/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/a0f5ca.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_a0f5ca(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl index e20cd105e8..2156844065 100644 --- a/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/cdd123.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_cdd123(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl index 78f5396ac1..a6cf72ccdb 100644 --- a/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/cfca0a.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_cfca0a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl b/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl index 1191d0cab7..4b05a0fc83 100644 --- a/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/arrayLength/eb510f.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { arrayLength_eb510f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/064953.wgsl.expected.hlsl b/test/tint/builtins/gen/asin/064953.wgsl.expected.hlsl index 41624bd112..6014e668f4 100644 --- a/test/tint/builtins/gen/asin/064953.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/asin/064953.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void asin_064953() { - float4 res = asin(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = asin((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_064953(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.hlsl b/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.hlsl index c48dceaf48..bd20f3d568 100644 --- a/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/asin/7b6a44.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void asin_7b6a44() { - float2 res = asin(float2(0.0f, 0.0f)); + float2 res = asin((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_7b6a44(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl b/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl index f99b94a01e..7e56518c47 100644 --- a/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/asin/8cd9c9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void asin_8cd9c9() { - float3 res = asin(float3(0.0f, 0.0f, 0.0f)); + float3 res = asin((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_8cd9c9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/asin/c0c272.wgsl.expected.hlsl b/test/tint/builtins/gen/asin/c0c272.wgsl.expected.hlsl index 94ae3b92e3..b5d3eb53d7 100644 --- a/test/tint/builtins/gen/asin/c0c272.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/asin/c0c272.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { asin_c0c272(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/02979a.wgsl.expected.hlsl b/test/tint/builtins/gen/atan/02979a.wgsl.expected.hlsl index 4dce6ec284..4ef60d4a98 100644 --- a/test/tint/builtins/gen/atan/02979a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan/02979a.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_02979a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/331e6d.wgsl.expected.hlsl b/test/tint/builtins/gen/atan/331e6d.wgsl.expected.hlsl index 3dd8341c13..121c738db1 100644 --- a/test/tint/builtins/gen/atan/331e6d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan/331e6d.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan_331e6d() { - float3 res = atan(float3(0.0f, 0.0f, 0.0f)); + float3 res = atan((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_331e6d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/a8b696.wgsl.expected.hlsl b/test/tint/builtins/gen/atan/a8b696.wgsl.expected.hlsl index b014aec5df..1e5177666f 100644 --- a/test/tint/builtins/gen/atan/a8b696.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan/a8b696.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan_a8b696() { - float4 res = atan(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = atan((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_a8b696(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.hlsl b/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.hlsl index dd5218a341..d4fcc10e44 100644 --- a/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan/ad96e4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan_ad96e4() { - float2 res = atan(float2(0.0f, 0.0f)); + float2 res = atan((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan_ad96e4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.hlsl b/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.hlsl index ff961418cc..e851d81c41 100644 --- a/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan2/57fb13.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan2_57fb13() { - float2 res = atan2(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = atan2((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_57fb13(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/96057c.wgsl.expected.hlsl b/test/tint/builtins/gen/atan2/96057c.wgsl.expected.hlsl index 3794036205..1a7ff4717d 100644 --- a/test/tint/builtins/gen/atan2/96057c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan2/96057c.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_96057c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl b/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl index 69320bdb65..78e97ccd0b 100644 --- a/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan2/a70d0d.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan2_a70d0d() { - float3 res = atan2(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = atan2((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_a70d0d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.hlsl b/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.hlsl index d91396df71..90f0e5fc1d 100644 --- a/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/atan2/ae713e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void atan2_ae713e() { - float4 res = atan2(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = atan2((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { atan2_ae713e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/34064b.wgsl.expected.hlsl b/test/tint/builtins/gen/ceil/34064b.wgsl.expected.hlsl index 9a253c5dc9..289f83b9a3 100644 --- a/test/tint/builtins/gen/ceil/34064b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ceil/34064b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ceil_34064b() { - float3 res = ceil(float3(0.0f, 0.0f, 0.0f)); + float3 res = ceil((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_34064b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/678655.wgsl.expected.hlsl b/test/tint/builtins/gen/ceil/678655.wgsl.expected.hlsl index 8d93979520..27adeb94b3 100644 --- a/test/tint/builtins/gen/ceil/678655.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ceil/678655.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_678655(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/96f597.wgsl.expected.hlsl b/test/tint/builtins/gen/ceil/96f597.wgsl.expected.hlsl index a95f5570fa..2672a8954d 100644 --- a/test/tint/builtins/gen/ceil/96f597.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ceil/96f597.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ceil_96f597() { - float2 res = ceil(float2(0.0f, 0.0f)); + float2 res = ceil((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_96f597(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.hlsl b/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.hlsl index b16ec0eff9..9aa50a436b 100644 --- a/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ceil/b74c16.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ceil_b74c16() { - float4 res = ceil(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ceil((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ceil_b74c16(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl index 03bdbec37b..09bbd56edf 100644 --- a/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/0acf8f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_0acf8f() { - float2 res = clamp(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = clamp((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_0acf8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl index 0d631481d9..8d30b440db 100644 --- a/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/1a32e3.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_1a32e3() { - int4 res = clamp(int4(0, 0, 0, 0), int4(0, 0, 0, 0), int4(0, 0, 0, 0)); + int4 res = clamp((0).xxxx, (0).xxxx, (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_1a32e3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.hlsl index 3301ab9fc7..7a02612ae6 100644 --- a/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/2bd567.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_2bd567(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.hlsl index b30c1b8605..91b78407dc 100644 --- a/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/2bde41.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_2bde41() { - float4 res = clamp(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = clamp((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_2bde41(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.hlsl index b5181d1717..1c88b562ea 100644 --- a/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/548fc7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_548fc7() { - uint3 res = clamp(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u), uint3(0u, 0u, 0u)); + uint3 res = clamp((0u).xxx, (0u).xxx, (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_548fc7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.hlsl index ec1b9e05db..e0946cf0aa 100644 --- a/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/5f0819.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_5f0819() { - int3 res = clamp(int3(0, 0, 0), int3(0, 0, 0), int3(0, 0, 0)); + int3 res = clamp((0).xxx, (0).xxx, (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_5f0819(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.hlsl index f8c15941de..66724c6a17 100644 --- a/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/6c1749.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_6c1749() { - int2 res = clamp(int2(0, 0), int2(0, 0), int2(0, 0)); + int2 res = clamp((0).xx, (0).xx, (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_6c1749(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.hlsl index a074f8da84..57649dd986 100644 --- a/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/7706d7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_7706d7() { - uint2 res = clamp(uint2(0u, 0u), uint2(0u, 0u), uint2(0u, 0u)); + uint2 res = clamp((0u).xx, (0u).xx, (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_7706d7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/867397.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/867397.wgsl.expected.hlsl index 867c1570a3..686dced891 100644 --- a/test/tint/builtins/gen/clamp/867397.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/867397.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_867397() { - float3 res = clamp(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = clamp((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_867397(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.hlsl index 34672d3c98..e0e3c6d9bd 100644 --- a/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/a2de25.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_a2de25(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.hlsl index b04222ab2d..cecad0a8d6 100644 --- a/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/b07c65.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_b07c65(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl b/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl index 05addc7b23..c3f2aea07a 100644 --- a/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/clamp/bd43ce.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void clamp_bd43ce() { - uint4 res = clamp(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u)); + uint4 res = clamp((0u).xxxx, (0u).xxxx, (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { clamp_bd43ce(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/16dc15.wgsl.expected.hlsl b/test/tint/builtins/gen/cos/16dc15.wgsl.expected.hlsl index e084a63752..611ff73e84 100644 --- a/test/tint/builtins/gen/cos/16dc15.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cos/16dc15.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cos_16dc15() { - float3 res = cos(float3(0.0f, 0.0f, 0.0f)); + float3 res = cos((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_16dc15(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/29d66d.wgsl.expected.hlsl b/test/tint/builtins/gen/cos/29d66d.wgsl.expected.hlsl index 533d022aa0..ebb04a4d39 100644 --- a/test/tint/builtins/gen/cos/29d66d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cos/29d66d.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cos_29d66d() { - float4 res = cos(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = cos((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_29d66d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/c3b486.wgsl.expected.hlsl b/test/tint/builtins/gen/cos/c3b486.wgsl.expected.hlsl index 9f1eb43a9b..6704985256 100644 --- a/test/tint/builtins/gen/cos/c3b486.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cos/c3b486.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cos_c3b486() { - float2 res = cos(float2(0.0f, 0.0f)); + float2 res = cos((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_c3b486(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.hlsl b/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.hlsl index 71a6612cb3..46c1272145 100644 --- a/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cos/c5c28e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cos_c5c28e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/377652.wgsl.expected.hlsl b/test/tint/builtins/gen/cosh/377652.wgsl.expected.hlsl index d9713757ba..ca3e141e0c 100644 --- a/test/tint/builtins/gen/cosh/377652.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cosh/377652.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cosh_377652() { - float3 res = cosh(float3(0.0f, 0.0f, 0.0f)); + float3 res = cosh((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_377652(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/c13756.wgsl.expected.hlsl b/test/tint/builtins/gen/cosh/c13756.wgsl.expected.hlsl index 0274e95d9e..6f536857e8 100644 --- a/test/tint/builtins/gen/cosh/c13756.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cosh/c13756.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cosh_c13756() { - float2 res = cosh(float2(0.0f, 0.0f)); + float2 res = cosh((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_c13756(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.hlsl b/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.hlsl index 3e1ede3a75..1b4f6c8d25 100644 --- a/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cosh/da92dd.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_da92dd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl b/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl index 6701aa04b3..abed30ea44 100644 --- a/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cosh/e0c1de.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cosh_e0c1de() { - float4 res = cosh(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = cosh((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cosh_e0c1de(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.hlsl index 6d1cdd6e4e..297947f9c6 100644 --- a/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/208d46.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_208d46(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.hlsl index c34761655a..c31a77cf2e 100644 --- a/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/6d4656.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_6d4656(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.hlsl index a61241a042..917c08ed2f 100644 --- a/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/70783f.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint2 tint_count_leading_zeros(uint2 v) { uint2 x = uint2(v); - const uint2 b16 = ((x <= uint2((65535u).xx)) ? uint2((16u).xx) : uint2((0u).xx)); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); x = (x << b16); - const uint2 b8 = ((x <= uint2((16777215u).xx)) ? uint2((8u).xx) : uint2((0u).xx)); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); x = (x << b8); - const uint2 b4 = ((x <= uint2((268435455u).xx)) ? uint2((4u).xx) : uint2((0u).xx)); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); x = (x << b4); - const uint2 b2 = ((x <= uint2((1073741823u).xx)) ? uint2((2u).xx) : uint2((0u).xx)); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); x = (x << b2); - const uint2 b1 = ((x <= uint2((2147483647u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); + const uint2 b1 = ((x <= (2147483647u).xx) ? (1u).xx : (0u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (1u).xx : (0u).xx); return uint2((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_70783f() { - uint2 res = tint_count_leading_zeros(uint2(0u, 0u)); + uint2 res = tint_count_leading_zeros((0u).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_70783f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.hlsl index c1c241780e..fa2102da87 100644 --- a/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/7c38a6.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int3 tint_count_leading_zeros(int3 v) { uint3 x = uint3(v); - const uint3 b16 = ((x <= uint3((65535u).xxx)) ? uint3((16u).xxx) : uint3((0u).xxx)); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); x = (x << b16); - const uint3 b8 = ((x <= uint3((16777215u).xxx)) ? uint3((8u).xxx) : uint3((0u).xxx)); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); x = (x << b8); - const uint3 b4 = ((x <= uint3((268435455u).xxx)) ? uint3((4u).xxx) : uint3((0u).xxx)); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); x = (x << b4); - const uint3 b2 = ((x <= uint3((1073741823u).xxx)) ? uint3((2u).xxx) : uint3((0u).xxx)); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); x = (x << b2); - const uint3 b1 = ((x <= uint3((2147483647u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); + const uint3 b1 = ((x <= (2147483647u).xxx) ? (1u).xxx : (0u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (1u).xxx : (0u).xxx); return int3((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_7c38a6() { - int3 res = tint_count_leading_zeros(int3(0, 0, 0)); + int3 res = tint_count_leading_zeros((0).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_7c38a6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.hlsl index e04f6cfade..dd780a09e4 100644 --- a/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/858d40.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int2 tint_count_leading_zeros(int2 v) { uint2 x = uint2(v); - const uint2 b16 = ((x <= uint2((65535u).xx)) ? uint2((16u).xx) : uint2((0u).xx)); + const uint2 b16 = ((x <= (65535u).xx) ? (16u).xx : (0u).xx); x = (x << b16); - const uint2 b8 = ((x <= uint2((16777215u).xx)) ? uint2((8u).xx) : uint2((0u).xx)); + const uint2 b8 = ((x <= (16777215u).xx) ? (8u).xx : (0u).xx); x = (x << b8); - const uint2 b4 = ((x <= uint2((268435455u).xx)) ? uint2((4u).xx) : uint2((0u).xx)); + const uint2 b4 = ((x <= (268435455u).xx) ? (4u).xx : (0u).xx); x = (x << b4); - const uint2 b2 = ((x <= uint2((1073741823u).xx)) ? uint2((2u).xx) : uint2((0u).xx)); + const uint2 b2 = ((x <= (1073741823u).xx) ? (2u).xx : (0u).xx); x = (x << b2); - const uint2 b1 = ((x <= uint2((2147483647u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); + const uint2 b1 = ((x <= (2147483647u).xx) ? (1u).xx : (0u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (1u).xx : (0u).xx); return int2((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_858d40() { - int2 res = tint_count_leading_zeros(int2(0, 0)); + int2 res = tint_count_leading_zeros((0).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_858d40(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.hlsl index b33cc9a4a3..1d7e5ff7da 100644 --- a/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/ab6345.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint3 tint_count_leading_zeros(uint3 v) { uint3 x = uint3(v); - const uint3 b16 = ((x <= uint3((65535u).xxx)) ? uint3((16u).xxx) : uint3((0u).xxx)); + const uint3 b16 = ((x <= (65535u).xxx) ? (16u).xxx : (0u).xxx); x = (x << b16); - const uint3 b8 = ((x <= uint3((16777215u).xxx)) ? uint3((8u).xxx) : uint3((0u).xxx)); + const uint3 b8 = ((x <= (16777215u).xxx) ? (8u).xxx : (0u).xxx); x = (x << b8); - const uint3 b4 = ((x <= uint3((268435455u).xxx)) ? uint3((4u).xxx) : uint3((0u).xxx)); + const uint3 b4 = ((x <= (268435455u).xxx) ? (4u).xxx : (0u).xxx); x = (x << b4); - const uint3 b2 = ((x <= uint3((1073741823u).xxx)) ? uint3((2u).xxx) : uint3((0u).xxx)); + const uint3 b2 = ((x <= (1073741823u).xxx) ? (2u).xxx : (0u).xxx); x = (x << b2); - const uint3 b1 = ((x <= uint3((2147483647u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); + const uint3 b1 = ((x <= (2147483647u).xxx) ? (1u).xxx : (0u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (1u).xxx : (0u).xxx); return uint3((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_ab6345() { - uint3 res = tint_count_leading_zeros(uint3(0u, 0u, 0u)); + uint3 res = tint_count_leading_zeros((0u).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_ab6345(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.hlsl index 6113bc8673..14484d6aff 100644 --- a/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/eab32b.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int4 tint_count_leading_zeros(int4 v) { uint4 x = uint4(v); - const uint4 b16 = ((x <= uint4((65535u).xxxx)) ? uint4((16u).xxxx) : uint4((0u).xxxx)); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); x = (x << b16); - const uint4 b8 = ((x <= uint4((16777215u).xxxx)) ? uint4((8u).xxxx) : uint4((0u).xxxx)); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); x = (x << b8); - const uint4 b4 = ((x <= uint4((268435455u).xxxx)) ? uint4((4u).xxxx) : uint4((0u).xxxx)); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); x = (x << b4); - const uint4 b2 = ((x <= uint4((1073741823u).xxxx)) ? uint4((2u).xxxx) : uint4((0u).xxxx)); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); x = (x << b2); - const uint4 b1 = ((x <= uint4((2147483647u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = ((x <= (2147483647u).xxxx) ? (1u).xxxx : (0u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (1u).xxxx : (0u).xxxx); return int4((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_eab32b() { - int4 res = tint_count_leading_zeros(int4(0, 0, 0, 0)); + int4 res = tint_count_leading_zeros((0).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_eab32b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.hlsl b/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.hlsl index c9e88f3ae3..a486ea0227 100644 --- a/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countLeadingZeros/f70103.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint4 tint_count_leading_zeros(uint4 v) { uint4 x = uint4(v); - const uint4 b16 = ((x <= uint4((65535u).xxxx)) ? uint4((16u).xxxx) : uint4((0u).xxxx)); + const uint4 b16 = ((x <= (65535u).xxxx) ? (16u).xxxx : (0u).xxxx); x = (x << b16); - const uint4 b8 = ((x <= uint4((16777215u).xxxx)) ? uint4((8u).xxxx) : uint4((0u).xxxx)); + const uint4 b8 = ((x <= (16777215u).xxxx) ? (8u).xxxx : (0u).xxxx); x = (x << b8); - const uint4 b4 = ((x <= uint4((268435455u).xxxx)) ? uint4((4u).xxxx) : uint4((0u).xxxx)); + const uint4 b4 = ((x <= (268435455u).xxxx) ? (4u).xxxx : (0u).xxxx); x = (x << b4); - const uint4 b2 = ((x <= uint4((1073741823u).xxxx)) ? uint4((2u).xxxx) : uint4((0u).xxxx)); + const uint4 b2 = ((x <= (1073741823u).xxxx) ? (2u).xxxx : (0u).xxxx); x = (x << b2); - const uint4 b1 = ((x <= uint4((2147483647u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = ((x <= (2147483647u).xxxx) ? (1u).xxxx : (0u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (1u).xxxx : (0u).xxxx); return uint4((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countLeadingZeros_f70103() { - uint4 res = tint_count_leading_zeros(uint4(0u, 0u, 0u, 0u)); + uint4 res = tint_count_leading_zeros((0u).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countLeadingZeros_f70103(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl index f51aa8f7e9..6f716c3d0b 100644 --- a/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/0d0e46.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_0d0e46() { - uint4 res = countbits(uint4(0u, 0u, 0u, 0u)); + uint4 res = countbits((0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_0d0e46(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl index 4708642f9e..bd8fe9e0be 100644 --- a/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/0f7980.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_0f7980() { - int4 res = asint(countbits(asuint(int4(0, 0, 0, 0)))); + int4 res = asint(countbits(asuint((0).xxxx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_0f7980(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl index 38c2601ef7..769e38be7e 100644 --- a/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/65d2ae.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_65d2ae() { - int3 res = asint(countbits(asuint(int3(0, 0, 0)))); + int3 res = asint(countbits(asuint((0).xxx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_65d2ae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl index 14904397a4..987a6f20ee 100644 --- a/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/690cfc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_690cfc() { - uint3 res = countbits(uint3(0u, 0u, 0u)); + uint3 res = countbits((0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_690cfc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl index 9487612e2a..055ea5b432 100644 --- a/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/94fd81.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_94fd81() { - uint2 res = countbits(uint2(0u, 0u)); + uint2 res = countbits((0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_94fd81(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl index cbd96415e0..6b51b87d6d 100644 --- a/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/ae44f9.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_ae44f9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl index 7807f16ba8..6c1a431a02 100644 --- a/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/af90e2.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void countOneBits_af90e2() { - int2 res = asint(countbits(asuint(int2(0, 0)))); + int2 res = asint(countbits(asuint((0).xx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_af90e2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl b/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl index 2ba6e0fe7c..cc56ef3deb 100644 --- a/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countOneBits/fd88b2.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { countOneBits_fd88b2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.hlsl index 1363b0ca8b..41ea33276e 100644 --- a/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/1ad138.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint2 tint_count_trailing_zeros(uint2 v) { uint2 x = uint2(v); - const uint2 b16 = (bool2((x & uint2((65535u).xx))) ? uint2((0u).xx) : uint2((16u).xx)); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((255u).xx))) ? uint2((0u).xx) : uint2((8u).xx)); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((15u).xx))) ? uint2((0u).xx) : uint2((4u).xx)); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((3u).xx))) ? uint2((0u).xx) : uint2((2u).xx)); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((1u).xx))) ? uint2((0u).xx) : uint2((1u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (1u).xx)) ? (0u).xx : (1u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (1u).xx : (0u).xx); return uint2((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_1ad138() { - uint2 res = tint_count_trailing_zeros(uint2(0u, 0u)); + uint2 res = tint_count_trailing_zeros((0u).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_1ad138(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.hlsl index 6808031f08..4acdebb75d 100644 --- a/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/1dc84a.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int4 tint_count_trailing_zeros(int4 v) { uint4 x = uint4(v); - const uint4 b16 = (bool4((x & uint4((65535u).xxxx))) ? uint4((0u).xxxx) : uint4((16u).xxxx)); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((255u).xxxx))) ? uint4((0u).xxxx) : uint4((8u).xxxx)); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((15u).xxxx))) ? uint4((0u).xxxx) : uint4((4u).xxxx)); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((3u).xxxx))) ? uint4((0u).xxxx) : uint4((2u).xxxx)); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((1u).xxxx))) ? uint4((0u).xxxx) : uint4((1u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (1u).xxxx)) ? (0u).xxxx : (1u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (1u).xxxx : (0u).xxxx); return int4((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_1dc84a() { - int4 res = tint_count_trailing_zeros(int4(0, 0, 0, 0)); + int4 res = tint_count_trailing_zeros((0).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_1dc84a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.hlsl index ab5a62f133..edace4972c 100644 --- a/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/21e394.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_21e394(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.hlsl index c448cca713..55bb1c3cbf 100644 --- a/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/327c37.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int2 tint_count_trailing_zeros(int2 v) { uint2 x = uint2(v); - const uint2 b16 = (bool2((x & uint2((65535u).xx))) ? uint2((0u).xx) : uint2((16u).xx)); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((255u).xx))) ? uint2((0u).xx) : uint2((8u).xx)); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((15u).xx))) ? uint2((0u).xx) : uint2((4u).xx)); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((3u).xx))) ? uint2((0u).xx) : uint2((2u).xx)); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((1u).xx))) ? uint2((0u).xx) : uint2((1u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((1u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (1u).xx)) ? (0u).xx : (1u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (1u).xx : (0u).xx); return int2((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_327c37() { - int2 res = tint_count_trailing_zeros(int2(0, 0)); + int2 res = tint_count_trailing_zeros((0).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_327c37(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.hlsl index b885337265..b5eacaaf90 100644 --- a/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/42fed6.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_42fed6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.hlsl index 5226a394c2..b1c882cf1c 100644 --- a/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/8ed26f.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint3 tint_count_trailing_zeros(uint3 v) { uint3 x = uint3(v); - const uint3 b16 = (bool3((x & uint3((65535u).xxx))) ? uint3((0u).xxx) : uint3((16u).xxx)); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((255u).xxx))) ? uint3((0u).xxx) : uint3((8u).xxx)); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((15u).xxx))) ? uint3((0u).xxx) : uint3((4u).xxx)); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((3u).xxx))) ? uint3((0u).xxx) : uint3((2u).xxx)); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((1u).xxx))) ? uint3((0u).xxx) : uint3((1u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (1u).xxx)) ? (0u).xxx : (1u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (1u).xxx : (0u).xxx); return uint3((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_8ed26f() { - uint3 res = tint_count_trailing_zeros(uint3(0u, 0u, 0u)); + uint3 res = tint_count_trailing_zeros((0u).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_8ed26f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.hlsl index 857896763b..4518caff7d 100644 --- a/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/acfacb.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int3 tint_count_trailing_zeros(int3 v) { uint3 x = uint3(v); - const uint3 b16 = (bool3((x & uint3((65535u).xxx))) ? uint3((0u).xxx) : uint3((16u).xxx)); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((255u).xxx))) ? uint3((0u).xxx) : uint3((8u).xxx)); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((15u).xxx))) ? uint3((0u).xxx) : uint3((4u).xxx)); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((3u).xxx))) ? uint3((0u).xxx) : uint3((2u).xxx)); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((1u).xxx))) ? uint3((0u).xxx) : uint3((1u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((1u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (1u).xxx)) ? (0u).xxx : (1u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (1u).xxx : (0u).xxx); return int3((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_acfacb() { - int3 res = tint_count_trailing_zeros(int3(0, 0, 0)); + int3 res = tint_count_trailing_zeros((0).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_acfacb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.hlsl b/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.hlsl index 5a2d9a965e..aed23ef744 100644 --- a/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/countTrailingZeros/d2b4a0.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint4 tint_count_trailing_zeros(uint4 v) { uint4 x = uint4(v); - const uint4 b16 = (bool4((x & uint4((65535u).xxxx))) ? uint4((0u).xxxx) : uint4((16u).xxxx)); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((255u).xxxx))) ? uint4((0u).xxxx) : uint4((8u).xxxx)); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((15u).xxxx))) ? uint4((0u).xxxx) : uint4((4u).xxxx)); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((3u).xxxx))) ? uint4((0u).xxxx) : uint4((2u).xxxx)); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((1u).xxxx))) ? uint4((0u).xxxx) : uint4((1u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((1u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (1u).xxxx)) ? (0u).xxxx : (1u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (1u).xxxx : (0u).xxxx); return uint4((((((b16 | b8) | b4) | b2) | b1) + is_zero)); } void countTrailingZeros_d2b4a0() { - uint4 res = tint_count_trailing_zeros(uint4(0u, 0u, 0u, 0u)); + uint4 res = tint_count_trailing_zeros((0u).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { countTrailingZeros_d2b4a0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/cross/041cb0.wgsl.expected.hlsl b/test/tint/builtins/gen/cross/041cb0.wgsl.expected.hlsl index a4c63fbc99..36e4194fb1 100644 --- a/test/tint/builtins/gen/cross/041cb0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/cross/041cb0.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void cross_041cb0() { - float3 res = cross(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = cross((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { cross_041cb0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.hlsl b/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.hlsl index cc75fd7a6d..70e9a6f3d1 100644 --- a/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/degrees/0d170c.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float4 tint_degrees(float4 param_0) { } void degrees_0d170c() { - float4 res = tint_degrees(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = tint_degrees((0.0f).xxxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_0d170c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl b/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl index 577df5a708..334d00091c 100644 --- a/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/degrees/1ad5df.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float2 tint_degrees(float2 param_0) { } void degrees_1ad5df() { - float2 res = tint_degrees(float2(0.0f, 0.0f)); + float2 res = tint_degrees((0.0f).xx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_1ad5df(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/2af623.wgsl.expected.hlsl b/test/tint/builtins/gen/degrees/2af623.wgsl.expected.hlsl index 686a79e6e4..f64923af6f 100644 --- a/test/tint/builtins/gen/degrees/2af623.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/degrees/2af623.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float3 tint_degrees(float3 param_0) { } void degrees_2af623() { - float3 res = tint_degrees(float3(0.0f, 0.0f, 0.0f)); + float3 res = tint_degrees((0.0f).xxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_2af623(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/degrees/51f705.wgsl.expected.hlsl b/test/tint/builtins/gen/degrees/51f705.wgsl.expected.hlsl index 056d58f6ce..feab0fbc91 100644 --- a/test/tint/builtins/gen/degrees/51f705.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/degrees/51f705.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { degrees_51f705(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl b/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl index 5f7441e152..a40e5cd145 100644 --- a/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/determinant/2b62ba.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void determinant_2b62ba() { - float res = determinant(float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float res = determinant(float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_2b62ba(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl b/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl index a1c3513f07..ece355fcfb 100644 --- a/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/determinant/a0a87c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void determinant_a0a87c() { - float res = determinant(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float res = determinant(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_a0a87c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/determinant/e19305.wgsl.expected.hlsl b/test/tint/builtins/gen/determinant/e19305.wgsl.expected.hlsl index ea91292cd1..6824b0d146 100644 --- a/test/tint/builtins/gen/determinant/e19305.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/determinant/e19305.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void determinant_e19305() { - float res = determinant(float2x2(0.0f, 0.0f, 0.0f, 0.0f)); + float res = determinant(float2x2((0.0f).xx, (0.0f).xx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { determinant_e19305(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/0657d4.wgsl.expected.hlsl b/test/tint/builtins/gen/distance/0657d4.wgsl.expected.hlsl index 42d05491dd..b33531d883 100644 --- a/test/tint/builtins/gen/distance/0657d4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/distance/0657d4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void distance_0657d4() { - float res = distance(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float res = distance((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_0657d4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/9646ea.wgsl.expected.hlsl b/test/tint/builtins/gen/distance/9646ea.wgsl.expected.hlsl index 7ed7793758..b1e093276e 100644 --- a/test/tint/builtins/gen/distance/9646ea.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/distance/9646ea.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void distance_9646ea() { - float res = distance(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float res = distance((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_9646ea(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/aa4055.wgsl.expected.hlsl b/test/tint/builtins/gen/distance/aa4055.wgsl.expected.hlsl index 2c2b43a8a7..cf9fc17b4b 100644 --- a/test/tint/builtins/gen/distance/aa4055.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/distance/aa4055.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void distance_aa4055() { - float res = distance(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float res = distance((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_aa4055(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/distance/cfed73.wgsl.expected.hlsl b/test/tint/builtins/gen/distance/cfed73.wgsl.expected.hlsl index 1d0c208408..277968e1b0 100644 --- a/test/tint/builtins/gen/distance/cfed73.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/distance/cfed73.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { distance_cfed73(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/0c577b.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/0c577b.wgsl.expected.hlsl index a563beec04..6bc8df3fec 100644 --- a/test/tint/builtins/gen/dot/0c577b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/0c577b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_0c577b() { - float res = dot(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float res = dot((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_0c577b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/7548a0.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/7548a0.wgsl.expected.hlsl index 87fc5aeedf..324b559b32 100644 --- a/test/tint/builtins/gen/dot/7548a0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/7548a0.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_7548a0() { - uint res = dot(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u)); + uint res = dot((0u).xxx, (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_7548a0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/883f0e.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/883f0e.wgsl.expected.hlsl index 23f4b8092e..508f9a4dc3 100644 --- a/test/tint/builtins/gen/dot/883f0e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/883f0e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_883f0e() { - float res = dot(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float res = dot((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_883f0e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.hlsl index b2623984bb..d98dc0ca3f 100644 --- a/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/97c7ee.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_97c7ee() { - uint res = dot(uint2(0u, 0u), uint2(0u, 0u)); + uint res = dot((0u).xx, (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_97c7ee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/ba4246.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/ba4246.wgsl.expected.hlsl index d34ad4d4fe..e5a4ddca10 100644 --- a/test/tint/builtins/gen/dot/ba4246.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/ba4246.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_ba4246() { - float res = dot(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float res = dot((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_ba4246(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/e994c7.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/e994c7.wgsl.expected.hlsl index 66f8a0dd59..bee04d1904 100644 --- a/test/tint/builtins/gen/dot/e994c7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/e994c7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_e994c7() { - uint res = dot(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u)); + uint res = dot((0u).xxxx, (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_e994c7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl index 90b3adb876..2dc8f5f837 100644 --- a/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/ef6b1d.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_ef6b1d() { - int res = dot(int4(0, 0, 0, 0), int4(0, 0, 0, 0)); + int res = dot((0).xxxx, (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_ef6b1d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/f1312c.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/f1312c.wgsl.expected.hlsl index 2c67fcce8a..b9157e7944 100644 --- a/test/tint/builtins/gen/dot/f1312c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/f1312c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_f1312c() { - int res = dot(int3(0, 0, 0), int3(0, 0, 0)); + int res = dot((0).xxx, (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_f1312c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl b/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl index 22ff835463..92c44d6c35 100644 --- a/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dot/fc5f7c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dot_fc5f7c() { - int res = dot(int2(0, 0), int2(0, 0)); + int res = dot((0).xx, (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { dot_fc5f7c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl index f9c5475b46..a9470fb750 100644 --- a/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdx/0763f7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdx_0763f7() { - float3 res = ddx(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddx((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl index 98dd75142a..798e539c42 100644 --- a/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdx/99edb1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdx_99edb1() { - float2 res = ddx(float2(0.0f, 0.0f)); + float2 res = ddx((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl index 12185e9fde..be71b6428c 100644 --- a/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdx/c487fa.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdx_c487fa() { - float4 res = ddx(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddx((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl index c716d0480a..7a1615c5dc 100644 --- a/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxCoarse/9581cf.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxCoarse_9581cf() { - float2 res = ddx_coarse(float2(0.0f, 0.0f)); + float2 res = ddx_coarse((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl index a4a21b6165..8a4c814aac 100644 --- a/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxCoarse/c28641.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxCoarse_c28641() { - float4 res = ddx_coarse(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddx_coarse((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl index dd67ed0c2d..a0a1d0373a 100644 --- a/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxCoarse/f64d7b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxCoarse_f64d7b() { - float3 res = ddx_coarse(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddx_coarse((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl index 7092cb843a..8904de8b0c 100644 --- a/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxFine/8c5069.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxFine_8c5069() { - float4 res = ddx_fine(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddx_fine((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl index 10efbb69ad..e6f149b5ba 100644 --- a/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxFine/9631de.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxFine_9631de() { - float2 res = ddx_fine(float2(0.0f, 0.0f)); + float2 res = ddx_fine((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl index cd55d245c5..2c026f700b 100644 --- a/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdxFine/f92fb6.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdxFine_f92fb6() { - float3 res = ddx_fine(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddx_fine((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.hlsl index 10f868cd5d..f1171a9e0c 100644 --- a/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdy/699a05.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdy_699a05() { - float4 res = ddy(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddy((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl index 34b2d3083c..f654b022b3 100644 --- a/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdy/a8b56e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdy_a8b56e() { - float2 res = ddy(float2(0.0f, 0.0f)); + float2 res = ddy((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl index bf81fe921e..e8c7005720 100644 --- a/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdy/feb40f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdy_feb40f() { - float3 res = ddy(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddy((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl index e8d6a21823..2791bdea4f 100644 --- a/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyCoarse/3e1ab4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyCoarse_3e1ab4() { - float2 res = ddy_coarse(float2(0.0f, 0.0f)); + float2 res = ddy_coarse((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl index 1b72a6ee74..c2bef3a7d0 100644 --- a/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyCoarse/445d24.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyCoarse_445d24() { - float4 res = ddy_coarse(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddy_coarse((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl index f2d2f8fd87..6c0aa14ac1 100644 --- a/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyCoarse/ae1873.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyCoarse_ae1873() { - float3 res = ddy_coarse(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddy_coarse((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl index 8a6d616bf7..3cc37ac286 100644 --- a/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyFine/1fb7ab.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyFine_1fb7ab() { - float3 res = ddy_fine(float3(0.0f, 0.0f, 0.0f)); + float3 res = ddy_fine((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl index def00ad751..b68dc61e92 100644 --- a/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyFine/d0a648.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyFine_d0a648() { - float4 res = ddy_fine(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ddy_fine((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl b/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl index 9e6610668c..d43f5599b4 100644 --- a/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/dpdyFine/df33aa.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void dpdyFine_df33aa() { - float2 res = ddy_fine(float2(0.0f, 0.0f)); + float2 res = ddy_fine((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.hlsl b/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.hlsl index 34e1937114..dea32eff40 100644 --- a/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp/0f70eb.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp_0f70eb() { - float4 res = exp(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = exp((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_0f70eb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/1951e7.wgsl.expected.hlsl b/test/tint/builtins/gen/exp/1951e7.wgsl.expected.hlsl index ec350a7e5e..73b3802362 100644 --- a/test/tint/builtins/gen/exp/1951e7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp/1951e7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp_1951e7() { - float2 res = exp(float2(0.0f, 0.0f)); + float2 res = exp((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_1951e7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/771fd2.wgsl.expected.hlsl b/test/tint/builtins/gen/exp/771fd2.wgsl.expected.hlsl index f8298b4069..06b4392850 100644 --- a/test/tint/builtins/gen/exp/771fd2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp/771fd2.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_771fd2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp/d98450.wgsl.expected.hlsl b/test/tint/builtins/gen/exp/d98450.wgsl.expected.hlsl index 0da884942e..a05e46aea0 100644 --- a/test/tint/builtins/gen/exp/d98450.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp/d98450.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp_d98450() { - float3 res = exp(float3(0.0f, 0.0f, 0.0f)); + float3 res = exp((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp_d98450(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.hlsl b/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.hlsl index 4277495dac..4f663ff254 100644 --- a/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp2/1f8680.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp2_1f8680() { - float3 res = exp2(float3(0.0f, 0.0f, 0.0f)); + float3 res = exp2((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_1f8680(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl b/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl index f1964dea16..6ce5cb0584 100644 --- a/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp2/a9d0a7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp2_a9d0a7() { - float4 res = exp2(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = exp2((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_a9d0a7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.hlsl b/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.hlsl index 77ec076618..005c9b6a4c 100644 --- a/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp2/d6777c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void exp2_d6777c() { - float2 res = exp2(float2(0.0f, 0.0f)); + float2 res = exp2((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_d6777c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/exp2/dea523.wgsl.expected.hlsl b/test/tint/builtins/gen/exp2/dea523.wgsl.expected.hlsl index 4c0dd533e1..0a9e48bd4e 100644 --- a/test/tint/builtins/gen/exp2/dea523.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/exp2/dea523.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { exp2_dea523(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.hlsl index 68c7d9e9a2..74bbe23dd5 100644 --- a/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/12b197.wgsl.expected.hlsl @@ -7,7 +7,7 @@ uint3 tint_extract_bits(uint3 v, uint offset, uint count) { } void extractBits_12b197() { - uint3 res = tint_extract_bits(uint3(0u, 0u, 0u), 1u, 1u); + uint3 res = tint_extract_bits((0u).xxx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_12b197(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/249874.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/249874.wgsl.expected.hlsl index c43da1df03..870063d1cf 100644 --- a/test/tint/builtins/gen/extractBits/249874.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/249874.wgsl.expected.hlsl @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_249874(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/631377.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/631377.wgsl.expected.hlsl index a78bfb42ea..151c7976cb 100644 --- a/test/tint/builtins/gen/extractBits/631377.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/631377.wgsl.expected.hlsl @@ -7,7 +7,7 @@ uint4 tint_extract_bits(uint4 v, uint offset, uint count) { } void extractBits_631377() { - uint4 res = tint_extract_bits(uint4(0u, 0u, 0u, 0u), 1u, 1u); + uint4 res = tint_extract_bits((0u).xxxx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_631377(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.hlsl index 28166af258..1030b22d76 100644 --- a/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/a99a8d.wgsl.expected.hlsl @@ -7,7 +7,7 @@ int2 tint_extract_bits(int2 v, uint offset, uint count) { } void extractBits_a99a8d() { - int2 res = tint_extract_bits(int2(0, 0), 1u, 1u); + int2 res = tint_extract_bits((0).xx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_a99a8d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.hlsl index 07f52bc451..95e631eb7e 100644 --- a/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/ce81f8.wgsl.expected.hlsl @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_ce81f8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.hlsl index b363dcd54d..f63a53ad3d 100644 --- a/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/e04f5d.wgsl.expected.hlsl @@ -7,7 +7,7 @@ int3 tint_extract_bits(int3 v, uint offset, uint count) { } void extractBits_e04f5d() { - int3 res = tint_extract_bits(int3(0, 0, 0), 1u, 1u); + int3 res = tint_extract_bits((0).xxx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_e04f5d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.hlsl index aa2cc010db..abae2bd188 100644 --- a/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/f28f69.wgsl.expected.hlsl @@ -7,7 +7,7 @@ uint2 tint_extract_bits(uint2 v, uint offset, uint count) { } void extractBits_f28f69() { - uint2 res = tint_extract_bits(uint2(0u, 0u), 1u, 1u); + uint2 res = tint_extract_bits((0u).xx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_f28f69(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.hlsl b/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.hlsl index bc152e4b78..4e1fce08fb 100644 --- a/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/extractBits/fb850f.wgsl.expected.hlsl @@ -7,7 +7,7 @@ int4 tint_extract_bits(int4 v, uint offset, uint count) { } void extractBits_fb850f() { - int4 res = tint_extract_bits(int4(0, 0, 0, 0), 1u, 1u); + int4 res = tint_extract_bits((0).xxxx, 1u, 1u); } struct tint_symbol { @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { extractBits_fb850f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl b/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl index 219cd7e1e7..207fd763b7 100644 --- a/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/faceForward/5afbd5.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void faceForward_5afbd5() { - float3 res = faceforward(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = faceforward((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_5afbd5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl b/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl index 4ffbf8f704..2b1e71d379 100644 --- a/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/faceForward/b316e5.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void faceForward_b316e5() { - float4 res = faceforward(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = faceforward((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_b316e5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl b/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl index 079aebec26..b29d9c4439 100644 --- a/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/faceForward/e6908b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void faceForward_e6908b() { - float2 res = faceforward(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = faceforward((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { faceForward_e6908b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.hlsl index 19e18a64a6..a5731bf916 100644 --- a/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/000ff3.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint4 tint_first_leading_bit(uint4 v) { uint4 x = v; - const uint4 b16 = (bool4((x & uint4((4294901760u).xxxx))) ? uint4((16u).xxxx) : uint4((0u).xxxx)); + const uint4 b16 = (bool4((x & (4294901760u).xxxx)) ? (16u).xxxx : (0u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((65280u).xxxx))) ? uint4((8u).xxxx) : uint4((0u).xxxx)); + const uint4 b8 = (bool4((x & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((240u).xxxx))) ? uint4((4u).xxxx) : uint4((0u).xxxx)); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((12u).xxxx))) ? uint4((2u).xxxx) : uint4((0u).xxxx)); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((2u).xxxx))) ? uint4((1u).xxxx) : uint4((0u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((4294967295u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (2u).xxxx)) ? (1u).xxxx : (0u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (4294967295u).xxxx : (0u).xxxx); return uint4((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_000ff3() { - uint4 res = tint_first_leading_bit(uint4(0u, 0u, 0u, 0u)); + uint4 res = tint_first_leading_bit((0u).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_000ff3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.hlsl index bf1d41d870..bf4b94d23c 100644 --- a/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/35053e.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int3 tint_first_leading_bit(int3 v) { - uint3 x = ((v < int3((0).xxx)) ? uint3(~(v)) : uint3(v)); - const uint3 b16 = (bool3((x & uint3((4294901760u).xxx))) ? uint3((16u).xxx) : uint3((0u).xxx)); + uint3 x = ((v < (0).xxx) ? uint3(~(v)) : uint3(v)); + const uint3 b16 = (bool3((x & (4294901760u).xxx)) ? (16u).xxx : (0u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((65280u).xxx))) ? uint3((8u).xxx) : uint3((0u).xxx)); + const uint3 b8 = (bool3((x & (65280u).xxx)) ? (8u).xxx : (0u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((240u).xxx))) ? uint3((4u).xxx) : uint3((0u).xxx)); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((12u).xxx))) ? uint3((2u).xxx) : uint3((0u).xxx)); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((2u).xxx))) ? uint3((1u).xxx) : uint3((0u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((4294967295u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (2u).xxx)) ? (1u).xxx : (0u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (4294967295u).xxx : (0u).xxx); return int3((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_35053e() { - int3 res = tint_first_leading_bit(int3(0, 0, 0)); + int3 res = tint_first_leading_bit((0).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_35053e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.hlsl index 0dff82ebd7..d7649e1e73 100644 --- a/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/3fd7d0.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint3 tint_first_leading_bit(uint3 v) { uint3 x = v; - const uint3 b16 = (bool3((x & uint3((4294901760u).xxx))) ? uint3((16u).xxx) : uint3((0u).xxx)); + const uint3 b16 = (bool3((x & (4294901760u).xxx)) ? (16u).xxx : (0u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((65280u).xxx))) ? uint3((8u).xxx) : uint3((0u).xxx)); + const uint3 b8 = (bool3((x & (65280u).xxx)) ? (8u).xxx : (0u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((240u).xxx))) ? uint3((4u).xxx) : uint3((0u).xxx)); + const uint3 b4 = (bool3((x & (240u).xxx)) ? (4u).xxx : (0u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((12u).xxx))) ? uint3((2u).xxx) : uint3((0u).xxx)); + const uint3 b2 = (bool3((x & (12u).xxx)) ? (2u).xxx : (0u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((2u).xxx))) ? uint3((1u).xxx) : uint3((0u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((4294967295u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (2u).xxx)) ? (1u).xxx : (0u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (4294967295u).xxx : (0u).xxx); return uint3((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_3fd7d0() { - uint3 res = tint_first_leading_bit(uint3(0u, 0u, 0u)); + uint3 res = tint_first_leading_bit((0u).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_3fd7d0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.hlsl index 59d3bb4991..01ee3e98c9 100644 --- a/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/57a1a3.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_57a1a3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.hlsl index 374977ab1c..3fce822956 100644 --- a/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/6fe804.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint2 tint_first_leading_bit(uint2 v) { uint2 x = v; - const uint2 b16 = (bool2((x & uint2((4294901760u).xx))) ? uint2((16u).xx) : uint2((0u).xx)); + const uint2 b16 = (bool2((x & (4294901760u).xx)) ? (16u).xx : (0u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((65280u).xx))) ? uint2((8u).xx) : uint2((0u).xx)); + const uint2 b8 = (bool2((x & (65280u).xx)) ? (8u).xx : (0u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((240u).xx))) ? uint2((4u).xx) : uint2((0u).xx)); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((12u).xx))) ? uint2((2u).xx) : uint2((0u).xx)); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((2u).xx))) ? uint2((1u).xx) : uint2((0u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((4294967295u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (2u).xx)) ? (1u).xx : (0u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (4294967295u).xx : (0u).xx); return uint2((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_6fe804() { - uint2 res = tint_first_leading_bit(uint2(0u, 0u)); + uint2 res = tint_first_leading_bit((0u).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_6fe804(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.hlsl index c660637cd5..0c970cf746 100644 --- a/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/a622c2.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int2 tint_first_leading_bit(int2 v) { - uint2 x = ((v < int2((0).xx)) ? uint2(~(v)) : uint2(v)); - const uint2 b16 = (bool2((x & uint2((4294901760u).xx))) ? uint2((16u).xx) : uint2((0u).xx)); + uint2 x = ((v < (0).xx) ? uint2(~(v)) : uint2(v)); + const uint2 b16 = (bool2((x & (4294901760u).xx)) ? (16u).xx : (0u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((65280u).xx))) ? uint2((8u).xx) : uint2((0u).xx)); + const uint2 b8 = (bool2((x & (65280u).xx)) ? (8u).xx : (0u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((240u).xx))) ? uint2((4u).xx) : uint2((0u).xx)); + const uint2 b4 = (bool2((x & (240u).xx)) ? (4u).xx : (0u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((12u).xx))) ? uint2((2u).xx) : uint2((0u).xx)); + const uint2 b2 = (bool2((x & (12u).xx)) ? (2u).xx : (0u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((2u).xx))) ? uint2((1u).xx) : uint2((0u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((4294967295u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (2u).xx)) ? (1u).xx : (0u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (4294967295u).xx : (0u).xx); return int2((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_a622c2() { - int2 res = tint_first_leading_bit(int2(0, 0)); + int2 res = tint_first_leading_bit((0).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_a622c2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.hlsl index bed5beda2c..01d41e24d9 100644 --- a/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/c1f940.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int4 tint_first_leading_bit(int4 v) { - uint4 x = ((v < int4((0).xxxx)) ? uint4(~(v)) : uint4(v)); - const uint4 b16 = (bool4((x & uint4((4294901760u).xxxx))) ? uint4((16u).xxxx) : uint4((0u).xxxx)); + uint4 x = ((v < (0).xxxx) ? uint4(~(v)) : uint4(v)); + const uint4 b16 = (bool4((x & (4294901760u).xxxx)) ? (16u).xxxx : (0u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((65280u).xxxx))) ? uint4((8u).xxxx) : uint4((0u).xxxx)); + const uint4 b8 = (bool4((x & (65280u).xxxx)) ? (8u).xxxx : (0u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((240u).xxxx))) ? uint4((4u).xxxx) : uint4((0u).xxxx)); + const uint4 b4 = (bool4((x & (240u).xxxx)) ? (4u).xxxx : (0u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((12u).xxxx))) ? uint4((2u).xxxx) : uint4((0u).xxxx)); + const uint4 b2 = (bool4((x & (12u).xxxx)) ? (2u).xxxx : (0u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((2u).xxxx))) ? uint4((1u).xxxx) : uint4((0u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((4294967295u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (2u).xxxx)) ? (1u).xxxx : (0u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (4294967295u).xxxx : (0u).xxxx); return int4((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstLeadingBit_c1f940() { - int4 res = tint_first_leading_bit(int4(0, 0, 0, 0)); + int4 res = tint_first_leading_bit((0).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_c1f940(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.hlsl b/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.hlsl index d89b4b3f9b..e289038037 100644 --- a/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstLeadingBit/f0779d.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstLeadingBit_f0779d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.hlsl index 34c1b662d7..0bc8172044 100644 --- a/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/110f2c.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint4 tint_first_trailing_bit(uint4 v) { uint4 x = uint4(v); - const uint4 b16 = (bool4((x & uint4((65535u).xxxx))) ? uint4((0u).xxxx) : uint4((16u).xxxx)); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((255u).xxxx))) ? uint4((0u).xxxx) : uint4((8u).xxxx)); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((15u).xxxx))) ? uint4((0u).xxxx) : uint4((4u).xxxx)); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((3u).xxxx))) ? uint4((0u).xxxx) : uint4((2u).xxxx)); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((1u).xxxx))) ? uint4((0u).xxxx) : uint4((1u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((4294967295u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (1u).xxxx)) ? (0u).xxxx : (1u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (4294967295u).xxxx : (0u).xxxx); return uint4((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_110f2c() { - uint4 res = tint_first_trailing_bit(uint4(0u, 0u, 0u, 0u)); + uint4 res = tint_first_trailing_bit((0u).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_110f2c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.hlsl index 4301d3cb5e..1e0c06eb4d 100644 --- a/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/3a2acc.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_3a2acc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.hlsl index 3a4e74d700..20ecb35441 100644 --- a/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/45eb10.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint2 tint_first_trailing_bit(uint2 v) { uint2 x = uint2(v); - const uint2 b16 = (bool2((x & uint2((65535u).xx))) ? uint2((0u).xx) : uint2((16u).xx)); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((255u).xx))) ? uint2((0u).xx) : uint2((8u).xx)); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((15u).xx))) ? uint2((0u).xx) : uint2((4u).xx)); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((3u).xx))) ? uint2((0u).xx) : uint2((2u).xx)); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((1u).xx))) ? uint2((0u).xx) : uint2((1u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((4294967295u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (1u).xx)) ? (0u).xx : (1u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (4294967295u).xx : (0u).xx); return uint2((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_45eb10() { - uint2 res = tint_first_trailing_bit(uint2(0u, 0u)); + uint2 res = tint_first_trailing_bit((0u).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_45eb10(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.hlsl index 95376f6354..3b50087bc9 100644 --- a/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/47d475.wgsl.expected.hlsl @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_47d475(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.hlsl index b0268d558b..a430becb23 100644 --- a/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/50c072.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int2 tint_first_trailing_bit(int2 v) { uint2 x = uint2(v); - const uint2 b16 = (bool2((x & uint2((65535u).xx))) ? uint2((0u).xx) : uint2((16u).xx)); + const uint2 b16 = (bool2((x & (65535u).xx)) ? (0u).xx : (16u).xx); x = (x >> b16); - const uint2 b8 = (bool2((x & uint2((255u).xx))) ? uint2((0u).xx) : uint2((8u).xx)); + const uint2 b8 = (bool2((x & (255u).xx)) ? (0u).xx : (8u).xx); x = (x >> b8); - const uint2 b4 = (bool2((x & uint2((15u).xx))) ? uint2((0u).xx) : uint2((4u).xx)); + const uint2 b4 = (bool2((x & (15u).xx)) ? (0u).xx : (4u).xx); x = (x >> b4); - const uint2 b2 = (bool2((x & uint2((3u).xx))) ? uint2((0u).xx) : uint2((2u).xx)); + const uint2 b2 = (bool2((x & (3u).xx)) ? (0u).xx : (2u).xx); x = (x >> b2); - const uint2 b1 = (bool2((x & uint2((1u).xx))) ? uint2((0u).xx) : uint2((1u).xx)); - const uint2 is_zero = ((x == uint2((0u).xx)) ? uint2((4294967295u).xx) : uint2((0u).xx)); + const uint2 b1 = (bool2((x & (1u).xx)) ? (0u).xx : (1u).xx); + const uint2 is_zero = ((x == (0u).xx) ? (4294967295u).xx : (0u).xx); return int2((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_50c072() { - int2 res = tint_first_trailing_bit(int2(0, 0)); + int2 res = tint_first_trailing_bit((0).xx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_50c072(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.hlsl index 137b82a858..426c09d08a 100644 --- a/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/7496d6.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int3 tint_first_trailing_bit(int3 v) { uint3 x = uint3(v); - const uint3 b16 = (bool3((x & uint3((65535u).xxx))) ? uint3((0u).xxx) : uint3((16u).xxx)); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((255u).xxx))) ? uint3((0u).xxx) : uint3((8u).xxx)); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((15u).xxx))) ? uint3((0u).xxx) : uint3((4u).xxx)); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((3u).xxx))) ? uint3((0u).xxx) : uint3((2u).xxx)); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((1u).xxx))) ? uint3((0u).xxx) : uint3((1u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((4294967295u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (1u).xxx)) ? (0u).xxx : (1u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (4294967295u).xxx : (0u).xxx); return int3((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_7496d6() { - int3 res = tint_first_trailing_bit(int3(0, 0, 0)); + int3 res = tint_first_trailing_bit((0).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_7496d6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.hlsl index 16fc616643..67fdee4d23 100644 --- a/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/86551b.wgsl.expected.hlsl @@ -1,20 +1,20 @@ int4 tint_first_trailing_bit(int4 v) { uint4 x = uint4(v); - const uint4 b16 = (bool4((x & uint4((65535u).xxxx))) ? uint4((0u).xxxx) : uint4((16u).xxxx)); + const uint4 b16 = (bool4((x & (65535u).xxxx)) ? (0u).xxxx : (16u).xxxx); x = (x >> b16); - const uint4 b8 = (bool4((x & uint4((255u).xxxx))) ? uint4((0u).xxxx) : uint4((8u).xxxx)); + const uint4 b8 = (bool4((x & (255u).xxxx)) ? (0u).xxxx : (8u).xxxx); x = (x >> b8); - const uint4 b4 = (bool4((x & uint4((15u).xxxx))) ? uint4((0u).xxxx) : uint4((4u).xxxx)); + const uint4 b4 = (bool4((x & (15u).xxxx)) ? (0u).xxxx : (4u).xxxx); x = (x >> b4); - const uint4 b2 = (bool4((x & uint4((3u).xxxx))) ? uint4((0u).xxxx) : uint4((2u).xxxx)); + const uint4 b2 = (bool4((x & (3u).xxxx)) ? (0u).xxxx : (2u).xxxx); x = (x >> b2); - const uint4 b1 = (bool4((x & uint4((1u).xxxx))) ? uint4((0u).xxxx) : uint4((1u).xxxx)); - const uint4 is_zero = ((x == uint4((0u).xxxx)) ? uint4((4294967295u).xxxx) : uint4((0u).xxxx)); + const uint4 b1 = (bool4((x & (1u).xxxx)) ? (0u).xxxx : (1u).xxxx); + const uint4 is_zero = ((x == (0u).xxxx) ? (4294967295u).xxxx : (0u).xxxx); return int4((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_86551b() { - int4 res = tint_first_trailing_bit(int4(0, 0, 0, 0)); + int4 res = tint_first_trailing_bit((0).xxxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_86551b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.hlsl b/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.hlsl index a5ad7f53e6..4828bc8d04 100644 --- a/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/firstTrailingBit/cb51ce.wgsl.expected.hlsl @@ -1,20 +1,20 @@ uint3 tint_first_trailing_bit(uint3 v) { uint3 x = uint3(v); - const uint3 b16 = (bool3((x & uint3((65535u).xxx))) ? uint3((0u).xxx) : uint3((16u).xxx)); + const uint3 b16 = (bool3((x & (65535u).xxx)) ? (0u).xxx : (16u).xxx); x = (x >> b16); - const uint3 b8 = (bool3((x & uint3((255u).xxx))) ? uint3((0u).xxx) : uint3((8u).xxx)); + const uint3 b8 = (bool3((x & (255u).xxx)) ? (0u).xxx : (8u).xxx); x = (x >> b8); - const uint3 b4 = (bool3((x & uint3((15u).xxx))) ? uint3((0u).xxx) : uint3((4u).xxx)); + const uint3 b4 = (bool3((x & (15u).xxx)) ? (0u).xxx : (4u).xxx); x = (x >> b4); - const uint3 b2 = (bool3((x & uint3((3u).xxx))) ? uint3((0u).xxx) : uint3((2u).xxx)); + const uint3 b2 = (bool3((x & (3u).xxx)) ? (0u).xxx : (2u).xxx); x = (x >> b2); - const uint3 b1 = (bool3((x & uint3((1u).xxx))) ? uint3((0u).xxx) : uint3((1u).xxx)); - const uint3 is_zero = ((x == uint3((0u).xxx)) ? uint3((4294967295u).xxx) : uint3((0u).xxx)); + const uint3 b1 = (bool3((x & (1u).xxx)) ? (0u).xxx : (1u).xxx); + const uint3 is_zero = ((x == (0u).xxx) ? (4294967295u).xxx : (0u).xxx); return uint3((((((b16 | b8) | b4) | b2) | b1) | is_zero)); } void firstTrailingBit_cb51ce() { - uint3 res = tint_first_trailing_bit(uint3(0u, 0u, 0u)); + uint3 res = tint_first_trailing_bit((0u).xxx); } struct tint_symbol { @@ -23,7 +23,7 @@ struct tint_symbol { float4 vertex_main_inner() { firstTrailingBit_cb51ce(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.hlsl b/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.hlsl index b3646e4385..5306bad2f8 100644 --- a/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/floor/3bccc4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void floor_3bccc4() { - float4 res = floor(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = floor((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_3bccc4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl b/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl index 8a10c2dbeb..4233cd41e9 100644 --- a/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/floor/5fc9ac.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void floor_5fc9ac() { - float2 res = floor(float2(0.0f, 0.0f)); + float2 res = floor((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_5fc9ac(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.hlsl b/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.hlsl index fd7578a820..6f46d2e386 100644 --- a/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/floor/60d7ea.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void floor_60d7ea() { - float3 res = floor(float3(0.0f, 0.0f, 0.0f)); + float3 res = floor((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_60d7ea(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/floor/66f154.wgsl.expected.hlsl b/test/tint/builtins/gen/floor/66f154.wgsl.expected.hlsl index 2809aff397..89b5a35bc4 100644 --- a/test/tint/builtins/gen/floor/66f154.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/floor/66f154.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { floor_66f154(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.hlsl b/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.hlsl index 534f1fbd77..f1c9865a3f 100644 --- a/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fma/26a7a9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fma_26a7a9() { - float2 res = mad(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = mad((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_26a7a9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/6a3283.wgsl.expected.hlsl b/test/tint/builtins/gen/fma/6a3283.wgsl.expected.hlsl index c550df4f22..b6d436f361 100644 --- a/test/tint/builtins/gen/fma/6a3283.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fma/6a3283.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fma_6a3283() { - float4 res = mad(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = mad((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_6a3283(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.hlsl b/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.hlsl index d4eb7cf6f3..88e5bb2cff 100644 --- a/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fma/c10ba3.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_c10ba3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.hlsl b/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.hlsl index 486a595f5b..ca6355783f 100644 --- a/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fma/e17c5c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fma_e17c5c() { - float3 res = mad(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = mad((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fma_e17c5c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl b/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl index f77b849473..ec690bca9d 100644 --- a/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fract/8bc1e9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fract_8bc1e9() { - float4 res = frac(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = frac((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_8bc1e9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/943cb1.wgsl.expected.hlsl b/test/tint/builtins/gen/fract/943cb1.wgsl.expected.hlsl index a5c4e2a6c3..625a0ec215 100644 --- a/test/tint/builtins/gen/fract/943cb1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fract/943cb1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fract_943cb1() { - float2 res = frac(float2(0.0f, 0.0f)); + float2 res = frac((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_943cb1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/a49758.wgsl.expected.hlsl b/test/tint/builtins/gen/fract/a49758.wgsl.expected.hlsl index 37f641a3b3..9a2ae28273 100644 --- a/test/tint/builtins/gen/fract/a49758.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fract/a49758.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fract_a49758() { - float3 res = frac(float3(0.0f, 0.0f, 0.0f)); + float3 res = frac((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_a49758(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.hlsl b/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.hlsl index f8d423da9d..dcf44fde3b 100644 --- a/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fract/fa5c71.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { fract_fa5c71(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/368997.wgsl.expected.hlsl b/test/tint/builtins/gen/frexp/368997.wgsl.expected.hlsl index aaf44a24e9..154eb56491 100644 --- a/test/tint/builtins/gen/frexp/368997.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/frexp/368997.wgsl.expected.hlsl @@ -10,7 +10,7 @@ frexp_result_vec3 tint_frexp(float3 param_0) { } void frexp_368997() { - frexp_result_vec3 res = tint_frexp(float3(0.0f, 0.0f, 0.0f)); + frexp_result_vec3 res = tint_frexp((0.0f).xxx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_368997(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl b/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl index a97e7b54d3..09e278a5e0 100644 --- a/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/frexp/3c4f48.wgsl.expected.hlsl @@ -10,7 +10,7 @@ frexp_result_vec4 tint_frexp(float4 param_0) { } void frexp_3c4f48() { - frexp_result_vec4 res = tint_frexp(float4(0.0f, 0.0f, 0.0f, 0.0f)); + frexp_result_vec4 res = tint_frexp((0.0f).xxxx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_3c4f48(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl b/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl index 8a62da45d9..9fec4761b4 100644 --- a/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/frexp/4bdfc7.wgsl.expected.hlsl @@ -10,7 +10,7 @@ frexp_result_vec2 tint_frexp(float2 param_0) { } void frexp_4bdfc7() { - frexp_result_vec2 res = tint_frexp(float2(0.0f, 0.0f)); + frexp_result_vec2 res = tint_frexp((0.0f).xx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_4bdfc7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.hlsl b/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.hlsl index 36b7826ef3..2519b252cc 100644 --- a/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/frexp/eabd40.wgsl.expected.hlsl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { frexp_eabd40(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl index 3d8020609d..d3ed334834 100644 --- a/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidth/5d1b39.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidth_5d1b39() { - float3 res = fwidth(float3(0.0f, 0.0f, 0.0f)); + float3 res = fwidth((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl index f1855264e7..54027bb580 100644 --- a/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidth/b83ebb.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidth_b83ebb() { - float2 res = fwidth(float2(0.0f, 0.0f)); + float2 res = fwidth((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl index 2de2b2b3aa..5afde3de40 100644 --- a/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidth/d2ab9a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidth_d2ab9a() { - float4 res = fwidth(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = fwidth((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl index 41cef2e018..25fa857db0 100644 --- a/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthCoarse/1e59d9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthCoarse_1e59d9() { - float3 res = fwidth(float3(0.0f, 0.0f, 0.0f)); + float3 res = fwidth((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl index 950401fe60..947d5cc14d 100644 --- a/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthCoarse/4e4fc4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthCoarse_4e4fc4() { - float4 res = fwidth(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = fwidth((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl index 08814d0875..5d0cc28a87 100644 --- a/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthCoarse/e653f7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthCoarse_e653f7() { - float2 res = fwidth(float2(0.0f, 0.0f)); + float2 res = fwidth((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl index 39a541e07f..43222afece 100644 --- a/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthFine/523fdc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthFine_523fdc() { - float3 res = fwidth(float3(0.0f, 0.0f, 0.0f)); + float3 res = fwidth((0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl index baa86f5700..7440cb0280 100644 --- a/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthFine/68f4ef.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthFine_68f4ef() { - float4 res = fwidth(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = fwidth((0.0f).xxxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl b/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl index bb6d7cfffe..28ff46d7e9 100644 --- a/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/fwidthFine/ff6aa0.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void fwidthFine_ff6aa0() { - float2 res = fwidth(float2(0.0f, 0.0f)); + float2 res = fwidth((0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.hlsl index 8cf5a7ccf3..78507ca88c 100644 --- a/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/3c7ba5.wgsl.expected.hlsl @@ -6,7 +6,7 @@ uint2 tint_insert_bits(uint2 v, uint2 n, uint offset, uint count) { } void insertBits_3c7ba5() { - uint2 res = tint_insert_bits(uint2(0u, 0u), uint2(0u, 0u), 1u, 1u); + uint2 res = tint_insert_bits((0u).xx, (0u).xx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_3c7ba5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.hlsl index 5d92f4b69f..1d8acd2b04 100644 --- a/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/428b0b.wgsl.expected.hlsl @@ -6,7 +6,7 @@ int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { } void insertBits_428b0b() { - int3 res = tint_insert_bits(int3(0, 0, 0), int3(0, 0, 0), 1u, 1u); + int3 res = tint_insert_bits((0).xxx, (0).xxx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_428b0b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.hlsl index b6c6bec78c..c0b0f503d2 100644 --- a/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/51ede1.wgsl.expected.hlsl @@ -6,7 +6,7 @@ uint4 tint_insert_bits(uint4 v, uint4 n, uint offset, uint count) { } void insertBits_51ede1() { - uint4 res = tint_insert_bits(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u), 1u, 1u); + uint4 res = tint_insert_bits((0u).xxxx, (0u).xxxx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_51ede1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.hlsl index c285500641..57a24ad06d 100644 --- a/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/65468b.wgsl.expected.hlsl @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_65468b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.hlsl index e43ffecdfa..76154887b3 100644 --- a/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/87826b.wgsl.expected.hlsl @@ -6,7 +6,7 @@ uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { } void insertBits_87826b() { - uint3 res = tint_insert_bits(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u), 1u, 1u); + uint3 res = tint_insert_bits((0u).xxx, (0u).xxx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_87826b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.hlsl index 8f2349062f..914e700f4d 100644 --- a/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/d86978.wgsl.expected.hlsl @@ -6,7 +6,7 @@ int4 tint_insert_bits(int4 v, int4 n, uint offset, uint count) { } void insertBits_d86978() { - int4 res = tint_insert_bits(int4(0, 0, 0, 0), int4(0, 0, 0, 0), 1u, 1u); + int4 res = tint_insert_bits((0).xxxx, (0).xxxx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_d86978(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.hlsl index 4f226ff6f6..014ba4a9b5 100644 --- a/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/e3e3a2.wgsl.expected.hlsl @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_e3e3a2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.hlsl b/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.hlsl index 20235d64ae..1122690934 100644 --- a/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/insertBits/fe6ba6.wgsl.expected.hlsl @@ -6,7 +6,7 @@ int2 tint_insert_bits(int2 v, int2 n, uint offset, uint count) { } void insertBits_fe6ba6() { - int2 res = tint_insert_bits(int2(0, 0), int2(0, 0), 1u, 1u); + int2 res = tint_insert_bits((0).xx, (0).xx, 1u, 1u); } struct tint_symbol { @@ -15,7 +15,7 @@ struct tint_symbol { float4 vertex_main_inner() { insertBits_fe6ba6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl b/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl index 7f8b61e339..4a3e57ec00 100644 --- a/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/inverseSqrt/84407e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_84407e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl b/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl index 35554d4c18..0b1c795562 100644 --- a/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/inverseSqrt/8f2bd2.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void inverseSqrt_8f2bd2() { - float2 res = rsqrt(float2(0.0f, 0.0f)); + float2 res = rsqrt((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_8f2bd2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl b/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl index 67c0a2f229..710a458ba7 100644 --- a/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/inverseSqrt/b197b1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void inverseSqrt_b197b1() { - float3 res = rsqrt(float3(0.0f, 0.0f, 0.0f)); + float3 res = rsqrt((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_b197b1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl b/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl index ee22cf1a5b..c2693bf506 100644 --- a/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/inverseSqrt/c22347.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void inverseSqrt_c22347() { - float4 res = rsqrt(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = rsqrt((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { inverseSqrt_c22347(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl b/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl index 6d596f830c..5e192f5eaf 100644 --- a/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ldexp/a31cdc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ldexp_a31cdc() { - float3 res = ldexp(float3(0.0f, 0.0f, 0.0f), int3(0, 0, 0)); + float3 res = ldexp((0.0f).xxx, (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_a31cdc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.hlsl b/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.hlsl index 57d331e9fc..52232d7b66 100644 --- a/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ldexp/abd718.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ldexp_abd718() { - float2 res = ldexp(float2(0.0f, 0.0f), int2(0, 0)); + float2 res = ldexp((0.0f).xx, (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_abd718(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl b/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl index 6e44999c4a..280dc6ddee 100644 --- a/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ldexp/cc9cde.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void ldexp_cc9cde() { - float4 res = ldexp(float4(0.0f, 0.0f, 0.0f, 0.0f), int4(0, 0, 0, 0)); + float4 res = ldexp((0.0f).xxxx, (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_cc9cde(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl b/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl index 7592faa503..43091d15b6 100644 --- a/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/ldexp/db8b49.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { ldexp_db8b49(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/056071.wgsl.expected.hlsl b/test/tint/builtins/gen/length/056071.wgsl.expected.hlsl index a3309a9a7d..e3fbb4c6fb 100644 --- a/test/tint/builtins/gen/length/056071.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/length/056071.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void length_056071() { - float res = length(float3(0.0f, 0.0f, 0.0f)); + float res = length((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_056071(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/602a17.wgsl.expected.hlsl b/test/tint/builtins/gen/length/602a17.wgsl.expected.hlsl index bee0d8849f..0c0ce3943d 100644 --- a/test/tint/builtins/gen/length/602a17.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/length/602a17.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_602a17(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/afde8b.wgsl.expected.hlsl b/test/tint/builtins/gen/length/afde8b.wgsl.expected.hlsl index 21ac4edfe1..136df03991 100644 --- a/test/tint/builtins/gen/length/afde8b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/length/afde8b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void length_afde8b() { - float res = length(float2(0.0f, 0.0f)); + float res = length((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_afde8b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/length/becebf.wgsl.expected.hlsl b/test/tint/builtins/gen/length/becebf.wgsl.expected.hlsl index 825e99cc66..dd68660b2d 100644 --- a/test/tint/builtins/gen/length/becebf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/length/becebf.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void length_becebf() { - float res = length(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float res = length((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { length_becebf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/3da25a.wgsl.expected.hlsl b/test/tint/builtins/gen/log/3da25a.wgsl.expected.hlsl index d406a40f65..1f575bcaf9 100644 --- a/test/tint/builtins/gen/log/3da25a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log/3da25a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log_3da25a() { - float4 res = log(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = log((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_3da25a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/7114a6.wgsl.expected.hlsl b/test/tint/builtins/gen/log/7114a6.wgsl.expected.hlsl index 3b786d27d2..8b9a62b68d 100644 --- a/test/tint/builtins/gen/log/7114a6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log/7114a6.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_7114a6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/b2ce28.wgsl.expected.hlsl b/test/tint/builtins/gen/log/b2ce28.wgsl.expected.hlsl index dc14337e5d..a68ac88d5e 100644 --- a/test/tint/builtins/gen/log/b2ce28.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log/b2ce28.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log_b2ce28() { - float2 res = log(float2(0.0f, 0.0f)); + float2 res = log((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_b2ce28(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log/f4c570.wgsl.expected.hlsl b/test/tint/builtins/gen/log/f4c570.wgsl.expected.hlsl index 5e8332f96f..fa99614b90 100644 --- a/test/tint/builtins/gen/log/f4c570.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log/f4c570.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log_f4c570() { - float3 res = log(float3(0.0f, 0.0f, 0.0f)); + float3 res = log((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log_f4c570(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/4036ed.wgsl.expected.hlsl b/test/tint/builtins/gen/log2/4036ed.wgsl.expected.hlsl index 2428a28406..1bea97c647 100644 --- a/test/tint/builtins/gen/log2/4036ed.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log2/4036ed.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_4036ed(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/902988.wgsl.expected.hlsl b/test/tint/builtins/gen/log2/902988.wgsl.expected.hlsl index ad66bdb1ae..9305d245a0 100644 --- a/test/tint/builtins/gen/log2/902988.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log2/902988.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log2_902988() { - float4 res = log2(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = log2((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_902988(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/adb233.wgsl.expected.hlsl b/test/tint/builtins/gen/log2/adb233.wgsl.expected.hlsl index 4d6cbf2da7..c4114cfa90 100644 --- a/test/tint/builtins/gen/log2/adb233.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log2/adb233.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log2_adb233() { - float3 res = log2(float3(0.0f, 0.0f, 0.0f)); + float3 res = log2((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_adb233(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/log2/aea659.wgsl.expected.hlsl b/test/tint/builtins/gen/log2/aea659.wgsl.expected.hlsl index ebc6208870..8a49c684ce 100644 --- a/test/tint/builtins/gen/log2/aea659.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/log2/aea659.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void log2_aea659() { - float2 res = log2(float2(0.0f, 0.0f)); + float2 res = log2((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { log2_aea659(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/0c0aae.wgsl.expected.hlsl b/test/tint/builtins/gen/max/0c0aae.wgsl.expected.hlsl index 4e9b6d2bca..3a5add7290 100644 --- a/test/tint/builtins/gen/max/0c0aae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/0c0aae.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_0c0aae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/25eafe.wgsl.expected.hlsl b/test/tint/builtins/gen/max/25eafe.wgsl.expected.hlsl index 69cb46623b..38813ca38b 100644 --- a/test/tint/builtins/gen/max/25eafe.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/25eafe.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_25eafe() { - int3 res = max(int3(0, 0, 0), int3(0, 0, 0)); + int3 res = max((0).xxx, (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_25eafe(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/320815.wgsl.expected.hlsl b/test/tint/builtins/gen/max/320815.wgsl.expected.hlsl index 5c38cdf1ea..2ba1102fb2 100644 --- a/test/tint/builtins/gen/max/320815.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/320815.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_320815() { - uint2 res = max(uint2(0u, 0u), uint2(0u, 0u)); + uint2 res = max((0u).xx, (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_320815(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/44a39d.wgsl.expected.hlsl b/test/tint/builtins/gen/max/44a39d.wgsl.expected.hlsl index 4dd34671a4..6f1024064d 100644 --- a/test/tint/builtins/gen/max/44a39d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/44a39d.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_44a39d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/453e04.wgsl.expected.hlsl b/test/tint/builtins/gen/max/453e04.wgsl.expected.hlsl index 6e0f3544c0..f85440056c 100644 --- a/test/tint/builtins/gen/max/453e04.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/453e04.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_453e04() { - uint4 res = max(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u)); + uint4 res = max((0u).xxxx, (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_453e04(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/462050.wgsl.expected.hlsl b/test/tint/builtins/gen/max/462050.wgsl.expected.hlsl index 4aa4f131ce..a2e1d751fa 100644 --- a/test/tint/builtins/gen/max/462050.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/462050.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_462050() { - float2 res = max(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = max((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_462050(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/4883ac.wgsl.expected.hlsl b/test/tint/builtins/gen/max/4883ac.wgsl.expected.hlsl index 1d7ec78b44..b58a744b97 100644 --- a/test/tint/builtins/gen/max/4883ac.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/4883ac.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_4883ac() { - float3 res = max(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = max((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_4883ac(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/85e6bc.wgsl.expected.hlsl b/test/tint/builtins/gen/max/85e6bc.wgsl.expected.hlsl index e2189eb4d8..d9f4ff7554 100644 --- a/test/tint/builtins/gen/max/85e6bc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/85e6bc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_85e6bc() { - int4 res = max(int4(0, 0, 0, 0), int4(0, 0, 0, 0)); + int4 res = max((0).xxxx, (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_85e6bc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/a93419.wgsl.expected.hlsl b/test/tint/builtins/gen/max/a93419.wgsl.expected.hlsl index 8d9526520d..9422412238 100644 --- a/test/tint/builtins/gen/max/a93419.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/a93419.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_a93419() { - float4 res = max(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = max((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_a93419(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/b1b73a.wgsl.expected.hlsl b/test/tint/builtins/gen/max/b1b73a.wgsl.expected.hlsl index 5cc620a7fd..078debdc5e 100644 --- a/test/tint/builtins/gen/max/b1b73a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/b1b73a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_b1b73a() { - uint3 res = max(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u)); + uint3 res = max((0u).xxx, (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_b1b73a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/ce7c30.wgsl.expected.hlsl b/test/tint/builtins/gen/max/ce7c30.wgsl.expected.hlsl index f348871aac..59fdfa020f 100644 --- a/test/tint/builtins/gen/max/ce7c30.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/ce7c30.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_ce7c30(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/max/e8192f.wgsl.expected.hlsl b/test/tint/builtins/gen/max/e8192f.wgsl.expected.hlsl index 9dd5a2215e..5a10dbe701 100644 --- a/test/tint/builtins/gen/max/e8192f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/max/e8192f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void max_e8192f() { - int2 res = max(int2(0, 0), int2(0, 0)); + int2 res = max((0).xx, (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { max_e8192f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/03c7e3.wgsl.expected.hlsl b/test/tint/builtins/gen/min/03c7e3.wgsl.expected.hlsl index 94f9c4be10..f24639879e 100644 --- a/test/tint/builtins/gen/min/03c7e3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/03c7e3.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_03c7e3() { - int2 res = min(int2(0, 0), int2(0, 0)); + int2 res = min((0).xx, (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_03c7e3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/0dc614.wgsl.expected.hlsl b/test/tint/builtins/gen/min/0dc614.wgsl.expected.hlsl index 3515079a79..00a483b8c0 100644 --- a/test/tint/builtins/gen/min/0dc614.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/0dc614.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_0dc614() { - uint4 res = min(uint4(0u, 0u, 0u, 0u), uint4(0u, 0u, 0u, 0u)); + uint4 res = min((0u).xxxx, (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_0dc614(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/3941e1.wgsl.expected.hlsl b/test/tint/builtins/gen/min/3941e1.wgsl.expected.hlsl index a629597084..f20c063b1c 100644 --- a/test/tint/builtins/gen/min/3941e1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/3941e1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_3941e1() { - int4 res = min(int4(0, 0, 0, 0), int4(0, 0, 0, 0)); + int4 res = min((0).xxxx, (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_3941e1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/46c5d3.wgsl.expected.hlsl b/test/tint/builtins/gen/min/46c5d3.wgsl.expected.hlsl index 53ca8c0200..c351f188d6 100644 --- a/test/tint/builtins/gen/min/46c5d3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/46c5d3.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_46c5d3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/82b28f.wgsl.expected.hlsl b/test/tint/builtins/gen/min/82b28f.wgsl.expected.hlsl index 70d28cbe54..c9d2b0ea2d 100644 --- a/test/tint/builtins/gen/min/82b28f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/82b28f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_82b28f() { - uint2 res = min(uint2(0u, 0u), uint2(0u, 0u)); + uint2 res = min((0u).xx, (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_82b28f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/93cfc4.wgsl.expected.hlsl b/test/tint/builtins/gen/min/93cfc4.wgsl.expected.hlsl index b6200c154e..4506d8a1f8 100644 --- a/test/tint/builtins/gen/min/93cfc4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/93cfc4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_93cfc4() { - float3 res = min(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = min((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_93cfc4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/a45171.wgsl.expected.hlsl b/test/tint/builtins/gen/min/a45171.wgsl.expected.hlsl index 7e5e1592c3..43e5449d4b 100644 --- a/test/tint/builtins/gen/min/a45171.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/a45171.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_a45171() { - int3 res = min(int3(0, 0, 0), int3(0, 0, 0)); + int3 res = min((0).xxx, (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_a45171(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/aa28ad.wgsl.expected.hlsl b/test/tint/builtins/gen/min/aa28ad.wgsl.expected.hlsl index cb437e2f20..a177f79c02 100644 --- a/test/tint/builtins/gen/min/aa28ad.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/aa28ad.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_aa28ad() { - float2 res = min(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = min((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_aa28ad(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/af326d.wgsl.expected.hlsl b/test/tint/builtins/gen/min/af326d.wgsl.expected.hlsl index 2ec6e9f821..c73080f9c5 100644 --- a/test/tint/builtins/gen/min/af326d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/af326d.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_af326d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c70bb7.wgsl.expected.hlsl b/test/tint/builtins/gen/min/c70bb7.wgsl.expected.hlsl index 5dbaff7575..774e77b411 100644 --- a/test/tint/builtins/gen/min/c70bb7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/c70bb7.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_c70bb7() { - uint3 res = min(uint3(0u, 0u, 0u), uint3(0u, 0u, 0u)); + uint3 res = min((0u).xxx, (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c70bb7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c73147.wgsl.expected.hlsl b/test/tint/builtins/gen/min/c73147.wgsl.expected.hlsl index f58afc812c..cb8ca07100 100644 --- a/test/tint/builtins/gen/min/c73147.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/c73147.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c73147(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/min/c76fa6.wgsl.expected.hlsl b/test/tint/builtins/gen/min/c76fa6.wgsl.expected.hlsl index de0b7ca6ac..10bb3f2e66 100644 --- a/test/tint/builtins/gen/min/c76fa6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/min/c76fa6.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void min_c76fa6() { - float4 res = min(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = min((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { min_c76fa6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.hlsl index 941e165416..f81885125f 100644 --- a/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/0c8c33.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_0c8c33() { - float3 res = lerp(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = lerp((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_0c8c33(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.hlsl index b3c35364ba..87255a299b 100644 --- a/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/1faeb1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_1faeb1() { - float4 res = lerp(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f); + float4 res = lerp((0.0f).xxxx, (0.0f).xxxx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_1faeb1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/2fadab.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/2fadab.wgsl.expected.hlsl index 2aa89fb18d..8e703e36d7 100644 --- a/test/tint/builtins/gen/mix/2fadab.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/2fadab.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_2fadab() { - float2 res = lerp(float2(0.0f, 0.0f), float2(0.0f, 0.0f), 1.0f); + float2 res = lerp((0.0f).xx, (0.0f).xx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_2fadab(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/315264.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/315264.wgsl.expected.hlsl index a389a34951..2c9e4c5895 100644 --- a/test/tint/builtins/gen/mix/315264.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/315264.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_315264() { - float3 res = lerp(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), 1.0f); + float3 res = lerp((0.0f).xxx, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_315264(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl index f30ed99270..2c04d6b557 100644 --- a/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/4f0b5e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_4f0b5e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.hlsl index 811687075a..748ee91ea8 100644 --- a/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/6f8adc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_6f8adc() { - float2 res = lerp(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = lerp((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_6f8adc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/mix/c37ede.wgsl.expected.hlsl b/test/tint/builtins/gen/mix/c37ede.wgsl.expected.hlsl index 622c3da3df..64cc5d3d8b 100644 --- a/test/tint/builtins/gen/mix/c37ede.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/mix/c37ede.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void mix_c37ede() { - float4 res = lerp(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = lerp((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { mix_c37ede(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/180fed.wgsl.expected.hlsl b/test/tint/builtins/gen/modf/180fed.wgsl.expected.hlsl index b9a186cba4..0f7a58d42c 100644 --- a/test/tint/builtins/gen/modf/180fed.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/modf/180fed.wgsl.expected.hlsl @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_180fed(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.hlsl b/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.hlsl index a6a0f25961..1628d04131 100644 --- a/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/modf/9b75f7.wgsl.expected.hlsl @@ -10,7 +10,7 @@ modf_result_vec3 tint_modf(float3 param_0) { } void modf_9b75f7() { - modf_result_vec3 res = tint_modf(float3(0.0f, 0.0f, 0.0f)); + modf_result_vec3 res = tint_modf((0.0f).xxx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_9b75f7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl b/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl index b83f48140c..26dcc4f37d 100644 --- a/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/modf/ec2dbc.wgsl.expected.hlsl @@ -10,7 +10,7 @@ modf_result_vec4 tint_modf(float4 param_0) { } void modf_ec2dbc() { - modf_result_vec4 res = tint_modf(float4(0.0f, 0.0f, 0.0f, 0.0f)); + modf_result_vec4 res = tint_modf((0.0f).xxxx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_ec2dbc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.hlsl b/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.hlsl index 88013fd34f..1dbfa472d6 100644 --- a/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/modf/f5f20d.wgsl.expected.hlsl @@ -10,7 +10,7 @@ modf_result_vec2 tint_modf(float2 param_0) { } void modf_f5f20d() { - modf_result_vec2 res = tint_modf(float2(0.0f, 0.0f)); + modf_result_vec2 res = tint_modf((0.0f).xx); } struct tint_symbol { @@ -19,7 +19,7 @@ struct tint_symbol { float4 vertex_main_inner() { modf_f5f20d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl b/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl index b639e63460..44f37d27f9 100644 --- a/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/normalize/64d8c0.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void normalize_64d8c0() { - float3 res = normalize(float3(0.0f, 0.0f, 0.0f)); + float3 res = normalize((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_64d8c0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl b/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl index ae9ef5fa07..7b03b075fb 100644 --- a/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/normalize/9a0aab.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void normalize_9a0aab() { - float4 res = normalize(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = normalize((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_9a0aab(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl b/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl index 8657268a8e..ae32c22d23 100644 --- a/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/normalize/fc2ef1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void normalize_fc2ef1() { - float2 res = normalize(float2(0.0f, 0.0f)); + float2 res = normalize((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { normalize_fc2ef1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl b/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl index 7ab94b6a04..f142fb8a90 100644 --- a/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pack2x16float/0e97b3.wgsl.expected.hlsl @@ -4,7 +4,7 @@ uint tint_pack2x16float(float2 param_0) { } void pack2x16float_0e97b3() { - uint res = tint_pack2x16float(float2(0.0f, 0.0f)); + uint res = tint_pack2x16float((0.0f).xx); } struct tint_symbol { @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16float_0e97b3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl b/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl index 9a8348f251..cb5ec976da 100644 --- a/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pack2x16snorm/6c169b.wgsl.expected.hlsl @@ -4,7 +4,7 @@ uint tint_pack2x16snorm(float2 param_0) { } void pack2x16snorm_6c169b() { - uint res = tint_pack2x16snorm(float2(0.0f, 0.0f)); + uint res = tint_pack2x16snorm((0.0f).xx); } struct tint_symbol { @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16snorm_6c169b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl b/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl index 51432db04e..69b0a5f1d7 100644 --- a/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pack2x16unorm/0f08e4.wgsl.expected.hlsl @@ -4,7 +4,7 @@ uint tint_pack2x16unorm(float2 param_0) { } void pack2x16unorm_0f08e4() { - uint res = tint_pack2x16unorm(float2(0.0f, 0.0f)); + uint res = tint_pack2x16unorm((0.0f).xx); } struct tint_symbol { @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack2x16unorm_0f08e4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl b/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl index b543993dbc..073431c94a 100644 --- a/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pack4x8snorm/4d22e7.wgsl.expected.hlsl @@ -4,7 +4,7 @@ uint tint_pack4x8snorm(float4 param_0) { } void pack4x8snorm_4d22e7() { - uint res = tint_pack4x8snorm(float4(0.0f, 0.0f, 0.0f, 0.0f)); + uint res = tint_pack4x8snorm((0.0f).xxxx); } struct tint_symbol { @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack4x8snorm_4d22e7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl b/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl index f36575744a..a4e6e76756 100644 --- a/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pack4x8unorm/95c456.wgsl.expected.hlsl @@ -4,7 +4,7 @@ uint tint_pack4x8unorm(float4 param_0) { } void pack4x8unorm_95c456() { - uint res = tint_pack4x8unorm(float4(0.0f, 0.0f, 0.0f, 0.0f)); + uint res = tint_pack4x8unorm((0.0f).xxxx); } struct tint_symbol { @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { pack4x8unorm_95c456(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/04a908.wgsl.expected.hlsl b/test/tint/builtins/gen/pow/04a908.wgsl.expected.hlsl index bd4e176bbf..49e81d6728 100644 --- a/test/tint/builtins/gen/pow/04a908.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pow/04a908.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void pow_04a908() { - float4 res = pow(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = pow((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_04a908(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/46e029.wgsl.expected.hlsl b/test/tint/builtins/gen/pow/46e029.wgsl.expected.hlsl index 85b5ee06af..e7864f33c3 100644 --- a/test/tint/builtins/gen/pow/46e029.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pow/46e029.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_46e029(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.hlsl b/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.hlsl index 2136c74395..c08dee8c3b 100644 --- a/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pow/4a46c9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void pow_4a46c9() { - float3 res = pow(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = pow((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_4a46c9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.hlsl b/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.hlsl index 467efc393f..a5e598545c 100644 --- a/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/pow/e60ea5.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void pow_e60ea5() { - float2 res = pow(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = pow((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { pow_e60ea5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.hlsl b/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.hlsl index 5aa2661f43..c4b4e7118b 100644 --- a/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/radians/09b7fc.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float4 tint_radians(float4 param_0) { } void radians_09b7fc() { - float4 res = tint_radians(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = tint_radians((0.0f).xxxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_09b7fc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/61687a.wgsl.expected.hlsl b/test/tint/builtins/gen/radians/61687a.wgsl.expected.hlsl index 6ff5488c19..9256119568 100644 --- a/test/tint/builtins/gen/radians/61687a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/radians/61687a.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float2 tint_radians(float2 param_0) { } void radians_61687a() { - float2 res = tint_radians(float2(0.0f, 0.0f)); + float2 res = tint_radians((0.0f).xx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_61687a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl b/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl index 561548982e..9d7e818182 100644 --- a/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/radians/6b0ff2.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_6b0ff2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/radians/f96258.wgsl.expected.hlsl b/test/tint/builtins/gen/radians/f96258.wgsl.expected.hlsl index 21df423140..809549a797 100644 --- a/test/tint/builtins/gen/radians/f96258.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/radians/f96258.wgsl.expected.hlsl @@ -3,7 +3,7 @@ float3 tint_radians(float3 param_0) { } void radians_f96258() { - float3 res = tint_radians(float3(0.0f, 0.0f, 0.0f)); + float3 res = tint_radians((0.0f).xxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { radians_f96258(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/05357e.wgsl.expected.hlsl b/test/tint/builtins/gen/reflect/05357e.wgsl.expected.hlsl index ffa296cacf..f692e16863 100644 --- a/test/tint/builtins/gen/reflect/05357e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reflect/05357e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reflect_05357e() { - float4 res = reflect(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = reflect((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_05357e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.hlsl b/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.hlsl index 0fae655845..7fb47a07e1 100644 --- a/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reflect/b61e10.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reflect_b61e10() { - float2 res = reflect(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = reflect((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_b61e10(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl index 6cb1cea08a..af76751b78 100644 --- a/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reflect/f47fdb.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reflect_f47fdb() { - float3 res = reflect(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = reflect((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reflect_f47fdb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.hlsl b/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.hlsl index 98105d423e..80fac1d6f4 100644 --- a/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/refract/7e02e6.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void refract_7e02e6() { - float4 res = refract(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), 1.0f); + float4 res = refract((0.0f).xxxx, (0.0f).xxxx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_7e02e6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl b/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl index a3ef1642fb..4af833e9e0 100644 --- a/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/refract/cbc1d2.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void refract_cbc1d2() { - float3 res = refract(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), 1.0f); + float3 res = refract((0.0f).xxx, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_cbc1d2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/refract/cd905f.wgsl.expected.hlsl b/test/tint/builtins/gen/refract/cd905f.wgsl.expected.hlsl index 075d4c6dc4..c328a3c1a4 100644 --- a/test/tint/builtins/gen/refract/cd905f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/refract/cd905f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void refract_cd905f() { - float2 res = refract(float2(0.0f, 0.0f), float2(0.0f, 0.0f), 1.0f); + float2 res = refract((0.0f).xx, (0.0f).xx, 1.0f); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { refract_cd905f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.hlsl index f065715eb0..94dc2e7ad8 100644 --- a/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/222177.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_222177() { - int2 res = asint(reversebits(asuint(int2(0, 0)))); + int2 res = asint(reversebits(asuint((0).xx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_222177(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl index 4923fa2480..d6f1ffc0d7 100644 --- a/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/35fea9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_35fea9() { - uint4 res = reversebits(uint4(0u, 0u, 0u, 0u)); + uint4 res = reversebits((0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_35fea9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl index 9ac2961d3a..428a58b656 100644 --- a/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/4dbd6f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_4dbd6f() { - int4 res = asint(reversebits(asuint(int4(0, 0, 0, 0)))); + int4 res = asint(reversebits(asuint((0).xxxx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_4dbd6f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl index e6381ab4bf..b2796a2562 100644 --- a/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/7c4269.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_7c4269(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl index c2c6fca5aa..88102ab27c 100644 --- a/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/a6ccd4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_a6ccd4() { - uint3 res = reversebits(uint3(0u, 0u, 0u)); + uint3 res = reversebits((0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_a6ccd4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl index b88fa30e89..1726c59bce 100644 --- a/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/c21bc1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_c21bc1() { - int3 res = asint(reversebits(asuint(int3(0, 0, 0)))); + int3 res = asint(reversebits(asuint((0).xxx))); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_c21bc1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl index b8948c55c6..935837ec57 100644 --- a/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/e1f4c1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void reverseBits_e1f4c1() { - uint2 res = reversebits(uint2(0u, 0u)); + uint2 res = reversebits((0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_e1f4c1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl b/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl index cb3c52b9ef..823b7110cd 100644 --- a/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/reverseBits/e31adf.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { reverseBits_e31adf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/106c0b.wgsl.expected.hlsl b/test/tint/builtins/gen/round/106c0b.wgsl.expected.hlsl index 5645e986f6..68bf13e9e1 100644 --- a/test/tint/builtins/gen/round/106c0b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/round/106c0b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void round_106c0b() { - float4 res = round(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = round((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_106c0b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/1c7897.wgsl.expected.hlsl b/test/tint/builtins/gen/round/1c7897.wgsl.expected.hlsl index d03c4a43a5..b6e0e6b693 100644 --- a/test/tint/builtins/gen/round/1c7897.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/round/1c7897.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void round_1c7897() { - float3 res = round(float3(0.0f, 0.0f, 0.0f)); + float3 res = round((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_1c7897(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/52c84d.wgsl.expected.hlsl b/test/tint/builtins/gen/round/52c84d.wgsl.expected.hlsl index 684c4c7165..fc298d4511 100644 --- a/test/tint/builtins/gen/round/52c84d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/round/52c84d.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void round_52c84d() { - float2 res = round(float2(0.0f, 0.0f)); + float2 res = round((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_52c84d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/round/9edc38.wgsl.expected.hlsl b/test/tint/builtins/gen/round/9edc38.wgsl.expected.hlsl index 451fc1c2a9..dd35aabad4 100644 --- a/test/tint/builtins/gen/round/9edc38.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/round/9edc38.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { round_9edc38(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/00b848.wgsl.expected.hlsl b/test/tint/builtins/gen/select/00b848.wgsl.expected.hlsl index b410bbf949..5be17c52ec 100644 --- a/test/tint/builtins/gen/select/00b848.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/00b848.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_00b848() { - int2 res = (bool2(false, false) ? int2(0, 0) : int2(0, 0)); + int2 res = ((false).xx ? (0).xx : (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_00b848(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/01e2cd.wgsl.expected.hlsl b/test/tint/builtins/gen/select/01e2cd.wgsl.expected.hlsl index 5708773084..dcc2733ec0 100644 --- a/test/tint/builtins/gen/select/01e2cd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/01e2cd.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_01e2cd() { - int3 res = (bool3(false, false, false) ? int3(0, 0, 0) : int3(0, 0, 0)); + int3 res = ((false).xxx ? (0).xxx : (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_01e2cd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/087ea4.wgsl.expected.hlsl b/test/tint/builtins/gen/select/087ea4.wgsl.expected.hlsl index b7aa28406c..cb71b76a35 100644 --- a/test/tint/builtins/gen/select/087ea4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/087ea4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_087ea4() { - uint4 res = (false ? uint4(0u, 0u, 0u, 0u) : uint4(0u, 0u, 0u, 0u)); + uint4 res = (false ? (0u).xxxx : (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_087ea4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/1e960b.wgsl.expected.hlsl b/test/tint/builtins/gen/select/1e960b.wgsl.expected.hlsl index 89f728db65..c2664b50f4 100644 --- a/test/tint/builtins/gen/select/1e960b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/1e960b.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_1e960b() { - uint2 res = (bool2(false, false) ? uint2(0u, 0u) : uint2(0u, 0u)); + uint2 res = ((false).xx ? (0u).xx : (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_1e960b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/266aff.wgsl.expected.hlsl b/test/tint/builtins/gen/select/266aff.wgsl.expected.hlsl index 2c945706ba..80d1742090 100644 --- a/test/tint/builtins/gen/select/266aff.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/266aff.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_266aff() { - float2 res = (bool2(false, false) ? float2(0.0f, 0.0f) : float2(0.0f, 0.0f)); + float2 res = ((false).xx ? (0.0f).xx : (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_266aff(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/28a27e.wgsl.expected.hlsl b/test/tint/builtins/gen/select/28a27e.wgsl.expected.hlsl index 16a5d8c2ce..b4e741cce3 100644 --- a/test/tint/builtins/gen/select/28a27e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/28a27e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_28a27e() { - uint3 res = (bool3(false, false, false) ? uint3(0u, 0u, 0u) : uint3(0u, 0u, 0u)); + uint3 res = ((false).xxx ? (0u).xxx : (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_28a27e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/3c25ce.wgsl.expected.hlsl b/test/tint/builtins/gen/select/3c25ce.wgsl.expected.hlsl index 913c1b9403..e705f9a240 100644 --- a/test/tint/builtins/gen/select/3c25ce.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/3c25ce.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_3c25ce() { - bool3 res = (false ? bool3(false, false, false) : bool3(false, false, false)); + bool3 res = (false ? (false).xxx : (false).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_3c25ce(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/416e14.wgsl.expected.hlsl b/test/tint/builtins/gen/select/416e14.wgsl.expected.hlsl index 1f21685004..5fcd4de0c0 100644 --- a/test/tint/builtins/gen/select/416e14.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/416e14.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_416e14(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/51b047.wgsl.expected.hlsl b/test/tint/builtins/gen/select/51b047.wgsl.expected.hlsl index 716ee85dcf..33bd9426be 100644 --- a/test/tint/builtins/gen/select/51b047.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/51b047.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_51b047() { - uint2 res = (false ? uint2(0u, 0u) : uint2(0u, 0u)); + uint2 res = (false ? (0u).xx : (0u).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_51b047(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/713567.wgsl.expected.hlsl b/test/tint/builtins/gen/select/713567.wgsl.expected.hlsl index ee5426d729..aba8dfd993 100644 --- a/test/tint/builtins/gen/select/713567.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/713567.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_713567() { - float4 res = (false ? float4(0.0f, 0.0f, 0.0f, 0.0f) : float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = (false ? (0.0f).xxxx : (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_713567(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/78be5f.wgsl.expected.hlsl b/test/tint/builtins/gen/select/78be5f.wgsl.expected.hlsl index bc48941f01..91d17bd613 100644 --- a/test/tint/builtins/gen/select/78be5f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/78be5f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_78be5f() { - float3 res = (false ? float3(0.0f, 0.0f, 0.0f) : float3(0.0f, 0.0f, 0.0f)); + float3 res = (false ? (0.0f).xxx : (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_78be5f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/80a9a9.wgsl.expected.hlsl b/test/tint/builtins/gen/select/80a9a9.wgsl.expected.hlsl index c3071bb69c..e23d12b4e7 100644 --- a/test/tint/builtins/gen/select/80a9a9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/80a9a9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_80a9a9() { - bool3 res = (bool3(false, false, false) ? bool3(false, false, false) : bool3(false, false, false)); + bool3 res = ((false).xxx ? (false).xxx : (false).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_80a9a9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/8fa62c.wgsl.expected.hlsl b/test/tint/builtins/gen/select/8fa62c.wgsl.expected.hlsl index 2ec6462fd6..f6fb23bb27 100644 --- a/test/tint/builtins/gen/select/8fa62c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/8fa62c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_8fa62c() { - int3 res = (false ? int3(0, 0, 0) : int3(0, 0, 0)); + int3 res = (false ? (0).xxx : (0).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_8fa62c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/99f883.wgsl.expected.hlsl b/test/tint/builtins/gen/select/99f883.wgsl.expected.hlsl index 603d18a30e..53c70022b1 100644 --- a/test/tint/builtins/gen/select/99f883.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/99f883.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_99f883(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/a2860e.wgsl.expected.hlsl b/test/tint/builtins/gen/select/a2860e.wgsl.expected.hlsl index be8b47a10a..edeff35015 100644 --- a/test/tint/builtins/gen/select/a2860e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/a2860e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_a2860e() { - int4 res = (bool4(false, false, false, false) ? int4(0, 0, 0, 0) : int4(0, 0, 0, 0)); + int4 res = ((false).xxxx ? (0).xxxx : (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_a2860e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ab069f.wgsl.expected.hlsl b/test/tint/builtins/gen/select/ab069f.wgsl.expected.hlsl index 800300cd04..bd1106d69b 100644 --- a/test/tint/builtins/gen/select/ab069f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/ab069f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_ab069f() { - int4 res = (false ? int4(0, 0, 0, 0) : int4(0, 0, 0, 0)); + int4 res = (false ? (0).xxxx : (0).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ab069f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/b04721.wgsl.expected.hlsl b/test/tint/builtins/gen/select/b04721.wgsl.expected.hlsl index 030d20546c..c94d537dee 100644 --- a/test/tint/builtins/gen/select/b04721.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/b04721.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_b04721() { - uint3 res = (false ? uint3(0u, 0u, 0u) : uint3(0u, 0u, 0u)); + uint3 res = (false ? (0u).xxx : (0u).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_b04721(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bb447f.wgsl.expected.hlsl b/test/tint/builtins/gen/select/bb447f.wgsl.expected.hlsl index 079cec6b21..9831d7801b 100644 --- a/test/tint/builtins/gen/select/bb447f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/bb447f.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_bb447f() { - int2 res = (false ? int2(0, 0) : int2(0, 0)); + int2 res = (false ? (0).xx : (0).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bb447f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bb8aae.wgsl.expected.hlsl b/test/tint/builtins/gen/select/bb8aae.wgsl.expected.hlsl index 3c84b8fee7..2247492ad6 100644 --- a/test/tint/builtins/gen/select/bb8aae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/bb8aae.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_bb8aae() { - float4 res = (bool4(false, false, false, false) ? float4(0.0f, 0.0f, 0.0f, 0.0f) : float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = ((false).xxxx ? (0.0f).xxxx : (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bb8aae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/bf3d29.wgsl.expected.hlsl b/test/tint/builtins/gen/select/bf3d29.wgsl.expected.hlsl index fcfca7deaf..033f3e7337 100644 --- a/test/tint/builtins/gen/select/bf3d29.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/bf3d29.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_bf3d29() { - float2 res = (false ? float2(0.0f, 0.0f) : float2(0.0f, 0.0f)); + float2 res = (false ? (0.0f).xx : (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_bf3d29(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c31f9e.wgsl.expected.hlsl b/test/tint/builtins/gen/select/c31f9e.wgsl.expected.hlsl index 9cf520f914..2e968f3b57 100644 --- a/test/tint/builtins/gen/select/c31f9e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/c31f9e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c31f9e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c41bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/select/c41bd1.wgsl.expected.hlsl index d5e8edc350..9d8b4caa11 100644 --- a/test/tint/builtins/gen/select/c41bd1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/c41bd1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_c41bd1() { - bool4 res = (false ? bool4(false, false, false, false) : bool4(false, false, false, false)); + bool4 res = (false ? (false).xxxx : (false).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c41bd1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.hlsl b/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.hlsl index ef96f44463..d6a8a58615 100644 --- a/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/c4a4ef.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_c4a4ef() { - uint4 res = (bool4(false, false, false, false) ? uint4(0u, 0u, 0u, 0u) : uint4(0u, 0u, 0u, 0u)); + uint4 res = ((false).xxxx ? (0u).xxxx : (0u).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_c4a4ef(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/cb9301.wgsl.expected.hlsl b/test/tint/builtins/gen/select/cb9301.wgsl.expected.hlsl index 27eeed4527..44cf52b3ce 100644 --- a/test/tint/builtins/gen/select/cb9301.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/cb9301.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_cb9301() { - bool2 res = (bool2(false, false) ? bool2(false, false) : bool2(false, false)); + bool2 res = ((false).xx ? (false).xx : (false).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_cb9301(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/e3e028.wgsl.expected.hlsl b/test/tint/builtins/gen/select/e3e028.wgsl.expected.hlsl index 20e3edf10f..fa1a031a34 100644 --- a/test/tint/builtins/gen/select/e3e028.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/e3e028.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_e3e028() { - bool4 res = (bool4(false, false, false, false) ? bool4(false, false, false, false) : bool4(false, false, false, false)); + bool4 res = ((false).xxxx ? (false).xxxx : (false).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_e3e028(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ebfea2.wgsl.expected.hlsl b/test/tint/builtins/gen/select/ebfea2.wgsl.expected.hlsl index 8dd54f2bab..bd3fc8e059 100644 --- a/test/tint/builtins/gen/select/ebfea2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/ebfea2.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_ebfea2() { - float3 res = (bool3(false, false, false) ? float3(0.0f, 0.0f, 0.0f) : float3(0.0f, 0.0f, 0.0f)); + float3 res = ((false).xxx ? (0.0f).xxx : (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ebfea2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/ed8a15.wgsl.expected.hlsl b/test/tint/builtins/gen/select/ed8a15.wgsl.expected.hlsl index e550b588c6..70a240fe3d 100644 --- a/test/tint/builtins/gen/select/ed8a15.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/ed8a15.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_ed8a15(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/select/fb7e53.wgsl.expected.hlsl b/test/tint/builtins/gen/select/fb7e53.wgsl.expected.hlsl index 05fa3bc1ac..dcbf816dce 100644 --- a/test/tint/builtins/gen/select/fb7e53.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/select/fb7e53.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void select_fb7e53() { - bool2 res = (false ? bool2(false, false) : bool2(false, false)); + bool2 res = (false ? (false).xx : (false).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { select_fb7e53(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/159665.wgsl.expected.hlsl b/test/tint/builtins/gen/sign/159665.wgsl.expected.hlsl index 64d4d764bb..f2bd209a52 100644 --- a/test/tint/builtins/gen/sign/159665.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sign/159665.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sign_159665() { - float3 res = sign(float3(0.0f, 0.0f, 0.0f)); + float3 res = sign((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_159665(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/b8f634.wgsl.expected.hlsl b/test/tint/builtins/gen/sign/b8f634.wgsl.expected.hlsl index 129de07c56..390e7bb03f 100644 --- a/test/tint/builtins/gen/sign/b8f634.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sign/b8f634.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sign_b8f634() { - float4 res = sign(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = sign((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_b8f634(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/d065d8.wgsl.expected.hlsl b/test/tint/builtins/gen/sign/d065d8.wgsl.expected.hlsl index e6a06fab3c..1774c0f298 100644 --- a/test/tint/builtins/gen/sign/d065d8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sign/d065d8.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sign_d065d8() { - float2 res = sign(float2(0.0f, 0.0f)); + float2 res = sign((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_d065d8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sign/dd790e.wgsl.expected.hlsl b/test/tint/builtins/gen/sign/dd790e.wgsl.expected.hlsl index e55a8ac516..a2aaa71581 100644 --- a/test/tint/builtins/gen/sign/dd790e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sign/dd790e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sign_dd790e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/01f241.wgsl.expected.hlsl b/test/tint/builtins/gen/sin/01f241.wgsl.expected.hlsl index 5fc47fa8a5..75b33089ef 100644 --- a/test/tint/builtins/gen/sin/01f241.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sin/01f241.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sin_01f241() { - float3 res = sin(float3(0.0f, 0.0f, 0.0f)); + float3 res = sin((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_01f241(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/4e3979.wgsl.expected.hlsl b/test/tint/builtins/gen/sin/4e3979.wgsl.expected.hlsl index d9ccc2ef1f..2cc14515e3 100644 --- a/test/tint/builtins/gen/sin/4e3979.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sin/4e3979.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sin_4e3979() { - float4 res = sin(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = sin((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_4e3979(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/b78c91.wgsl.expected.hlsl b/test/tint/builtins/gen/sin/b78c91.wgsl.expected.hlsl index 05a839bd40..830387c69a 100644 --- a/test/tint/builtins/gen/sin/b78c91.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sin/b78c91.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_b78c91(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl b/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl index 934d5c62ce..2183670819 100644 --- a/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sin/fc8bc4.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sin_fc8bc4() { - float2 res = sin(float2(0.0f, 0.0f)); + float2 res = sin((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sin_fc8bc4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/445e33.wgsl.expected.hlsl b/test/tint/builtins/gen/sinh/445e33.wgsl.expected.hlsl index de0568102c..65f3d01a7f 100644 --- a/test/tint/builtins/gen/sinh/445e33.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sinh/445e33.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sinh_445e33() { - float4 res = sinh(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = sinh((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_445e33(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.hlsl b/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.hlsl index 4fadd51af0..ead48271e7 100644 --- a/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sinh/7bb598.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_7bb598(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.hlsl b/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.hlsl index 9bb27317be..a7cb7f9f10 100644 --- a/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sinh/b9860e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sinh_b9860e() { - float2 res = sinh(float2(0.0f, 0.0f)); + float2 res = sinh((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_b9860e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl b/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl index 7aeaa6540e..cb0d9dc08a 100644 --- a/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sinh/c9a5eb.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sinh_c9a5eb() { - float3 res = sinh(float3(0.0f, 0.0f, 0.0f)); + float3 res = sinh((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sinh_c9a5eb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.hlsl index 97fec4e86c..9a156f7558 100644 --- a/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/392c19.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void smoothstep_392c19() { - float2 res = smoothstep(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = smoothstep((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_392c19(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.hlsl index e85c39408b..919e5e1e2a 100644 --- a/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/40864c.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void smoothstep_40864c() { - float4 res = smoothstep(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = smoothstep((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_40864c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.hlsl index ca36423df1..256447d760 100644 --- a/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/5f615b.wgsl.expected.hlsl @@ -3,7 +3,7 @@ builtins/gen/smoothstep/5f615b.wgsl:28:24 warning: use of deprecated builtin ^^^^^^^^^^ void smoothStep_5f615b() { - float4 res = smoothstep(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = smoothstep((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_5f615b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.hlsl index 89a8c38dd6..0cc1cb4fb8 100644 --- a/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/658be3.wgsl.expected.hlsl @@ -3,7 +3,7 @@ builtins/gen/smoothstep/658be3.wgsl:28:24 warning: use of deprecated builtin ^^^^^^^^^^ void smoothStep_658be3() { - float3 res = smoothstep(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = smoothstep((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_658be3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.hlsl index a2411cd200..02da7ceb9b 100644 --- a/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/6c4975.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_6c4975(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.hlsl index 641ca58110..1b6358f3a5 100644 --- a/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/aad1db.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void smoothstep_aad1db() { - float3 res = smoothstep(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = smoothstep((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothstep_aad1db(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.hlsl index 93dfd41924..15fe54d12e 100644 --- a/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/c11eef.wgsl.expected.hlsl @@ -3,7 +3,7 @@ builtins/gen/smoothstep/c11eef.wgsl:28:24 warning: use of deprecated builtin ^^^^^^^^^^ void smoothStep_c11eef() { - float2 res = smoothstep(float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = smoothstep((0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_c11eef(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.hlsl b/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.hlsl index 9f3389445d..96f8e7dd7f 100644 --- a/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/smoothstep/cb0bfb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { smoothStep_cb0bfb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl b/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl index ff521bb3f4..a1f4acbe7a 100644 --- a/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sqrt/20c74e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_20c74e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl b/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl index 077c121002..26778b8d6b 100644 --- a/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sqrt/8c7024.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sqrt_8c7024() { - float2 res = sqrt(float2(0.0f, 0.0f)); + float2 res = sqrt((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_8c7024(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl b/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl index 58f339ee1a..6b9cf558a8 100644 --- a/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sqrt/aa0d7a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sqrt_aa0d7a() { - float4 res = sqrt(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = sqrt((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_aa0d7a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl b/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl index 5bbd79731b..b7e7ea4f2b 100644 --- a/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/sqrt/f8c59a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void sqrt_f8c59a() { - float3 res = sqrt(float3(0.0f, 0.0f, 0.0f)); + float3 res = sqrt((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { sqrt_f8c59a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/0b073b.wgsl.expected.hlsl b/test/tint/builtins/gen/step/0b073b.wgsl.expected.hlsl index baff28171d..f899788e98 100644 --- a/test/tint/builtins/gen/step/0b073b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/step/0b073b.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_0b073b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/19accd.wgsl.expected.hlsl b/test/tint/builtins/gen/step/19accd.wgsl.expected.hlsl index d9d8c6c1a3..3d4e558f4d 100644 --- a/test/tint/builtins/gen/step/19accd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/step/19accd.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void step_19accd() { - float2 res = step(float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float2 res = step((0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_19accd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/334303.wgsl.expected.hlsl b/test/tint/builtins/gen/step/334303.wgsl.expected.hlsl index e407c78c80..7b6a0fcfdf 100644 --- a/test/tint/builtins/gen/step/334303.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/step/334303.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void step_334303() { - float3 res = step(float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float3 res = step((0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_334303(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/step/e2b337.wgsl.expected.hlsl b/test/tint/builtins/gen/step/e2b337.wgsl.expected.hlsl index 17e2f9dea7..d681e0958a 100644 --- a/test/tint/builtins/gen/step/e2b337.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/step/e2b337.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void step_e2b337() { - float4 res = step(float4(0.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = step((0.0f).xxxx, (0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { step_e2b337(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/244e2a.wgsl.expected.hlsl b/test/tint/builtins/gen/tan/244e2a.wgsl.expected.hlsl index 11e40a2c60..6fecdec967 100644 --- a/test/tint/builtins/gen/tan/244e2a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tan/244e2a.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tan_244e2a() { - float4 res = tan(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = tan((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_244e2a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/2f030e.wgsl.expected.hlsl b/test/tint/builtins/gen/tan/2f030e.wgsl.expected.hlsl index b7cf9e171a..0ad9e4f702 100644 --- a/test/tint/builtins/gen/tan/2f030e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tan/2f030e.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_2f030e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/7ea104.wgsl.expected.hlsl b/test/tint/builtins/gen/tan/7ea104.wgsl.expected.hlsl index 20c8c76b46..7c98fa464b 100644 --- a/test/tint/builtins/gen/tan/7ea104.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tan/7ea104.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tan_7ea104() { - float3 res = tan(float3(0.0f, 0.0f, 0.0f)); + float3 res = tan((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_7ea104(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl b/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl index 2fce0cdf40..5504d49f65 100644 --- a/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tan/8ce3e9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tan_8ce3e9() { - float2 res = tan(float2(0.0f, 0.0f)); + float2 res = tan((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tan_8ce3e9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.hlsl b/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.hlsl index f74f2ad3e7..635f158c3b 100644 --- a/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tanh/5663c5.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tanh_5663c5() { - float4 res = tanh(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = tanh((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_5663c5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.hlsl b/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.hlsl index be84750211..f77defc421 100644 --- a/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tanh/5724b3.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tanh_5724b3() { - float2 res = tanh(float2(0.0f, 0.0f)); + float2 res = tanh((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_5724b3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl b/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl index 7470a05d5f..8b7d7476e8 100644 --- a/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tanh/9f9fb9.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void tanh_9f9fb9() { - float3 res = tanh(float3(0.0f, 0.0f, 0.0f)); + float3 res = tanh((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_9f9fb9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl index 27b68c0ff8..ab6b249ef0 100644 --- a/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/tanh/c15fdb.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { tanh_c15fdb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl index bf45f40955..29d0c12d90 100644 --- a/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/002b2a.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_002b2a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl index 60766e2871..56fb818a4f 100644 --- a/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/012b82.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_012b82(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl index 7bfb2760d4..83011fff55 100644 --- a/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/08753d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_08753d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl index 573849ad14..3de620cf2c 100644 --- a/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0c4772.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0c4772(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl index 8c733a250c..e10fdf6f36 100644 --- a/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0cce40.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0cce40(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl index 301fb17eea..3b9fd521cc 100644 --- a/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0cf2ff.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0cf2ff(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl index 787e81ad3f..848d8b7dae 100644 --- a/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0d8b7e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0d8b7e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl index ab26ea3779..0f338cc3fc 100644 --- a/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0e32ee.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0e32ee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl index 6a15db4f21..5bef2982da 100644 --- a/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/0f3c50.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_0f3c50(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl index 0700fb09b1..cedbfad032 100644 --- a/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/1191a5.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_1191a5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl index 2076c844af..632362bcdc 100644 --- a/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/12c9bb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_12c9bb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl index bbda25c536..af1e9bd856 100644 --- a/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/147998.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_147998(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl index 8478f6a1be..02565baa5f 100644 --- a/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/16036c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_16036c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl index 3807015dfb..1ffa3d3b90 100644 --- a/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/1b71f0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_1b71f0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl index f6a80bf7ad..26140a05d7 100644 --- a/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/1d6c26.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_1d6c26(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl index 4fc4886e7a..16444c0f2a 100644 --- a/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/1e9e39.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_1e9e39(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl index 482f78b636..e453d42df6 100644 --- a/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/1f20c5.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_1f20c5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl index 3266f6fa3a..c91423eba6 100644 --- a/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/214dd4.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_214dd4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl index 3d9c9f5948..59cb5bb483 100644 --- a/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/221f22.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_221f22(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl index e17bbeb753..3597aaed8e 100644 --- a/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/267788.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_267788(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl index f7b5e00803..c15bc9aa6e 100644 --- a/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/26bdfa.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_26bdfa(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl index 4044c0efc0..7ccf32f5db 100644 --- a/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/26ef6c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_26ef6c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl index fed6aa30df..33dee501da 100644 --- a/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/2ad087.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_2ad087(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl index 5ea5c3e367..1ad01c0e4d 100644 --- a/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/2efa05.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_2efa05(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl index 4adc44e099..b84004a0c3 100644 --- a/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/2f289f.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_2f289f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl index 83bb4588a8..9cc8388b87 100644 --- a/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/2fe1cc.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_2fe1cc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl index 75080a7adc..bc9b732479 100644 --- a/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/318ecc.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_318ecc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl index 93b038d447..db01f68004 100644 --- a/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/340d06.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_340d06(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl index fe14ce7623..ee95c58978 100644 --- a/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/398e30.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_398e30(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl index f3fb0f0360..347c92e0ac 100644 --- a/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/3a94ea.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_3a94ea(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl index 210915d16f..05eedf3b92 100644 --- a/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/3aca08.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_3aca08(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl index 2523598c6c..78cd91bd88 100644 --- a/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/3c5ad8.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_3c5ad8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl index f83e35d933..ae5eb3529e 100644 --- a/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/4152a6.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_4152a6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl index 48d6c9ac66..d6a4e4bc97 100644 --- a/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/423f99.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_423f99(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl index 3e1886f43d..aab581e07d 100644 --- a/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/4267ee.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_4267ee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl index 23b4adcbf7..7c818175b1 100644 --- a/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/42d4e6.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_42d4e6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl index c6168e4a1a..9ec64be6c1 100644 --- a/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/48cb89.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_48cb89(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl index a87072ee97..9ceff5070d 100644 --- a/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/49d274.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_49d274(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl index cbc70876da..8541c75d63 100644 --- a/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/4df9a8.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_4df9a8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl index 73140c6b34..df671c728c 100644 --- a/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/50a9ee.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_50a9ee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl index 00174241ec..8b3da42f89 100644 --- a/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/52045c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_52045c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl index 43d1ca2762..c3634a3b40 100644 --- a/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/55b23e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_55b23e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl index 111f8dc6ac..297d5dd29a 100644 --- a/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/579629.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_579629(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl index fca05c462d..f9df5efbd7 100644 --- a/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/57da0b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_57da0b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl index 8c0a56f7d5..8da8d7d569 100644 --- a/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/57e28f.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_57e28f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl index 878a448910..e8a7b4b3f8 100644 --- a/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/58a515.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_58a515(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl index bedc7637df..488cb1754f 100644 --- a/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/5985f3.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_5985f3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl index 229e558943..066fbdfdcc 100644 --- a/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/5caa5e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_5caa5e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl index 417d81794e..a88725c97e 100644 --- a/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/5e295d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_5e295d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl index 32730fd87e..d7ac1d3d72 100644 --- a/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/60bf54.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_60bf54(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl index 68da62d6af..f03906db15 100644 --- a/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/63f3cf.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_63f3cf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl index 362af75be5..c3723286d7 100644 --- a/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/68105c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_68105c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl index f96c776077..8706a9ee6e 100644 --- a/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/686ef2.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_686ef2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl index b000f3eed7..52b2080c05 100644 --- a/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/6adac6.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_6adac6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl index 148ca9a471..6e9cb1f014 100644 --- a/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/6ec1b4.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_6ec1b4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl index eef51f44ea..cd1a3a48fd 100644 --- a/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/6f0d79.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_6f0d79(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl index 8ce443ae8f..40c27c8f76 100644 --- a/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/702c53.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_702c53(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl index 62bf752864..7e2f59d88f 100644 --- a/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/72e5d6.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_72e5d6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl index 604dffae73..bba9fd9d0f 100644 --- a/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/79df87.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_79df87(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl index 729140ba82..9c0e675218 100644 --- a/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/7bf826.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_7bf826(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl index 7b7c994bb4..9c6abe3894 100644 --- a/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/7f5c2e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_7f5c2e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl index 0db3091914..f18db34932 100644 --- a/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/8028f3.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_8028f3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl index 25f021715d..a474cba784 100644 --- a/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/811679.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_811679(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl index 2c7c64635a..af2f262f81 100644 --- a/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/820596.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_820596(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl index c705d5c894..efa903aa81 100644 --- a/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/83ee5a.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_83ee5a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl index 2b030c6890..4a6cbca9a1 100644 --- a/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/85d556.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_85d556(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl index 9d37232ea1..6da2ab8199 100644 --- a/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/88ad17.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_88ad17(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl index da113508c5..e8a2fa1d4b 100644 --- a/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/8aa4c4.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_8aa4c4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl index 4655fdc4ed..398823e556 100644 --- a/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/8deb5e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_8deb5e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl index ae67075223..58462cf470 100644 --- a/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/8f20bf.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_8f20bf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl index 61af3df2c7..ace86e03bd 100644 --- a/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/8fca0f.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_8fca0f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl index 29df48b0d4..26df72fa72 100644 --- a/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/90340b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_90340b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl index 50741eaa47..95dc10539c 100644 --- a/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9042ab.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9042ab(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl index 1a2117b536..1e45411862 100644 --- a/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9393b0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9393b0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl index aeee2724b4..1edab80e0e 100644 --- a/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/939fdb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_939fdb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl index 520382039b..7f1c1eb2a4 100644 --- a/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/962dcd.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_962dcd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl index eadba40c3d..d97dcf7f31 100644 --- a/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9abfe5.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9abfe5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl index 91fe9a1ee7..9048832d74 100644 --- a/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9c9c57.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9c9c57(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl index 2c467927af..f500491b95 100644 --- a/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9da9e2.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9da9e2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl index 7416438e30..cf18843418 100644 --- a/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9eb8d8.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9eb8d8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl index eef30d0bcc..384fdc350c 100644 --- a/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/9f8e46.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_9f8e46(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl index b4253db6c4..d2a845a1af 100644 --- a/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/a01845.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_a01845(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl index fa1f8f0033..949e8b1a10 100644 --- a/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/a7d565.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_a7d565(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl index 5827d94180..212bbcaf5b 100644 --- a/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/a863f2.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_a863f2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl index cfe96f1bc1..3290331fc6 100644 --- a/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/a9c9c1.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_a9c9c1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl index 70279dbdc4..6b8dd338af 100644 --- a/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/b0e16d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_b0e16d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl index db28c37d81..f0d031de32 100644 --- a/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/b3c954.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_b3c954(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl index 0407213603..0f917b5475 100644 --- a/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/b3e407.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_b3e407(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl index 228c0455e5..7f3c930964 100644 --- a/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/b91240.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_b91240(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl index 108fe85c73..1761c01751 100644 --- a/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/ba1481.wgsl.expected.hlsl @@ -16,7 +16,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_ba1481(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl index 51eb32f25a..48b980a2d2 100644 --- a/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/bb3dde.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_bb3dde(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl index 4e7575480f..e4ae3823e8 100644 --- a/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/c30e75.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_c30e75(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl index cf6de5aa03..4b69252d51 100644 --- a/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/c7943d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_c7943d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl index b123be2e3e..e20e81bcef 100644 --- a/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cc968c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cc968c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl index d33b7c7b2f..8030a26359 100644 --- a/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cccc8f.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cccc8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl index 910792e30a..107e7e6b32 100644 --- a/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cd76a7.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cd76a7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl index 5b02297338..895f7d05b6 100644 --- a/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cdf473.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cdf473(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl index f46ffb6337..8b892fb9f9 100644 --- a/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cec841.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cec841(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl index 0d72ab74bf..f8b6211340 100644 --- a/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/cf7e43.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_cf7e43(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl index 9ce515f73e..bf2c107f3a 100644 --- a/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/d125bc.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_d125bc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl index fe401bcdea..e6ac869bca 100644 --- a/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/d83c45.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_d83c45(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl index a99beb7df6..b44a6b8646 100644 --- a/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/daf7c0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_daf7c0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl index ab404314b2..20e9146625 100644 --- a/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/dc2dd0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_dc2dd0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl index 9dea807a40..3be868f09c 100644 --- a/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/e927be.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_e927be(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl index 14a43e0d20..510eef86c0 100644 --- a/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/e9e96c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_e9e96c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl index 754db5b90e..4bc53da64e 100644 --- a/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/ef5b89.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_ef5b89(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl index 4b98a0ae10..c43705946e 100644 --- a/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/efc8a4.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_efc8a4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl index 4af1093668..1609032503 100644 --- a/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/f60bdb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_f60bdb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl index 6b1164024b..4d93ba5cdb 100644 --- a/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/f7145b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_f7145b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl index 6237cac672..9e231e6b57 100644 --- a/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/f931c7.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_f931c7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl index 20ec180b0d..4bfdddf6b2 100644 --- a/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/fa9859.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_fa9859(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl index 858a187f53..3f6c71f974 100644 --- a/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/fb5670.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_fb5670(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl b/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl index e1bacc9188..f02946b4e5 100644 --- a/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureDimensions/fcac78.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureDimensions_fcac78(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.hlsl index 180ad62847..8ecab024a4 100644 --- a/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/01305f.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_01305f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.hlsl index a8ca184648..b54c374880 100644 --- a/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/06030a.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_06030a() { - float4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), int2(0, 0)); + float4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_06030a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.hlsl index 77c4aab887..2507fcee71 100644 --- a/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/10c554.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureGather_10c554() { - float4 res = arg_0.Gather(arg_1, float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.Gather(arg_1, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_10c554(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl index b45f71b211..2e7873d7a2 100644 --- a/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/15d79c.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_15d79c() { - float4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f), int2(0, 0)); + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_15d79c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl index cba329f1ef..e1a5741735 100644 --- a/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/2e0ed5.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureGather_2e0ed5() { - float4 res = arg_0.Gather(arg_1, float2(0.0f, 0.0f)); + float4 res = arg_0.Gather(arg_1, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_2e0ed5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl index d538b4f7e1..efd9d9bef4 100644 --- a/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/3112e8.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_3112e8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl index 9f1913cee8..6de2c853c5 100644 --- a/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/3c527e.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_3c527e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.hlsl index 6d752ec6b8..703fd77ec7 100644 --- a/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/43025d.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_43025d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl index 02a56e2eba..d109a47cff 100644 --- a/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/4f2350.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_4f2350() { - int4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), int2(0, 0)); + int4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_4f2350(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl index da88cb1cd2..77626e4b4d 100644 --- a/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/51cf0b.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_51cf0b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl index 0962b39a78..af2d8c944d 100644 --- a/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/53ece6.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureGather_53ece6() { - float4 res = arg_0.Gather(arg_1, float3(0.0f, 0.0f, float(1)), int2(0, 0)); + float4 res = arg_0.Gather(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_53ece6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl index eb276f71d7..0597538ada 100644 --- a/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/57bfc6.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_57bfc6() { - float4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_57bfc6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl index db0fc6f6f0..9ae472c74a 100644 --- a/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/587ba3.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_587ba3() { - int4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f)); + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_587ba3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl index dcf9228016..251dd81919 100644 --- a/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/69e0fb.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_69e0fb() { - int4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f), int2(0, 0)); + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_69e0fb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.hlsl index f9162f082a..008e995fbb 100644 --- a/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/93003d.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_93003d() { - uint4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f), int2(0, 0)); + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_93003d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl index 31f64d3a0f..57f3d15ce6 100644 --- a/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/9a6358.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_9a6358(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl index 280024d0f7..6debc9b356 100644 --- a/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/9efca2.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_9efca2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl index aca181e73f..5d515eca75 100644 --- a/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/bd0b1e.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_bd0b1e() { - float4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f)); + float4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_bd0b1e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl index 3360bac610..c5f59de818 100644 --- a/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/c409ae.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureGather_c409ae() { - float4 res = arg_0.Gather(arg_1, float2(0.0f, 0.0f), int2(0, 0)); + float4 res = arg_0.Gather(arg_1, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_c409ae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.hlsl index e01de9ffd4..6cd09d4472 100644 --- a/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/c55822.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_c55822(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl index 4d46a7e583..9d4524fa17 100644 --- a/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/e1b67d.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_e1b67d() { - uint4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, 0.0f)); + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_e1b67d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl index 46ac6a1227..6dd6b27ebb 100644 --- a/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/e9eff6.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_e9eff6() { - uint4 res = arg_1.GatherGreen(arg_2, float2(0.0f, 0.0f)); + uint4 res = arg_1.GatherGreen(arg_2, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_e9eff6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl index f6e6c95354..c151d9717e 100644 --- a/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/f5f3ba.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_f5f3ba() { - uint4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), int2(0, 0)); + uint4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, float(1)), (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_f5f3ba(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl index 6d0ca689c9..65c13a9dbe 100644 --- a/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGather/f7995a.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_1 : register(t1, space1); SamplerState arg_2 : register(s2, space1); void textureGather_f7995a() { - int4 res = arg_1.GatherGreen(arg_2, float3(0.0f, 0.0f, 0.0f)); + int4 res = arg_1.GatherGreen(arg_2, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGather_f7995a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl index 09f24d3c7c..4f6161c935 100644 --- a/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/182fd4.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureGatherCompare_182fd4() { - float4 res = arg_0.GatherCmp(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_182fd4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl index 2a7c8fd152..3cc753f8e8 100644 --- a/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/60d2d1.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_60d2d1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl index 4689a0286e..38bce11c53 100644 --- a/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/6d9352.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureGatherCompare_6d9352() { - float4 res = arg_0.GatherCmp(arg_1, float2(0.0f, 0.0f), 1.0f); + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_6d9352(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl index f1bcdbed96..0e99f7bf47 100644 --- a/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/6f1267.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureGatherCompare_6f1267() { - float4 res = arg_0.GatherCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, int2(0, 0)); + float4 res = arg_0.GatherCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_6f1267(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl index 025a0e68c0..702933d86a 100644 --- a/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/783e65.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_783e65(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl b/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl index e074554ec5..9fa53d3032 100644 --- a/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureGatherCompare/a5f587.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureGatherCompare_a5f587() { - float4 res = arg_0.GatherCmp(arg_1, float2(0.0f, 0.0f), 1.0f, int2(0, 0)); + float4 res = arg_0.GatherCmp(arg_1, (0.0f).xx, 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureGatherCompare_a5f587(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl index 745c99c5b1..54f4e7e1bc 100644 --- a/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/19cf87.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_19cf87(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl index 9e928acc7a..12509febb1 100644 --- a/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/1b8588.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_1b8588(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl index d4daa46044..18a466dca2 100644 --- a/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/1f2016.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_1f2016(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.hlsl index 58e8d61403..bf85eb0bba 100644 --- a/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/484344.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_484344(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl index 02e3104efb..8ee1bd1282 100644 --- a/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/4fd803.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_4fd803(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl index a35e83e86c..8e5301e4ec 100644 --- a/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/5a2f9d.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_5a2f9d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl index 1230e783ee..cf6519414d 100644 --- a/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/6154d4.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_6154d4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl index 61d263e8c1..fafcd354be 100644 --- a/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/6273b1.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_6273b1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl index 9995b1e727..b6c192ad72 100644 --- a/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/79e697.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_79e697(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl index eeb32ec9ec..7918f4a98a 100644 --- a/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/7c90e5.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_7c90e5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl index 7d692a0821..b1fecfe99d 100644 --- a/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/81c381.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_81c381(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl index 51b24d44e4..80a5a3550a 100644 --- a/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/87be85.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_87be85(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl index d48102670c..471ccc94fd 100644 --- a/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/8acf41.wgsl.expected.hlsl @@ -76,7 +76,7 @@ ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { } void textureLoad_8acf41() { - float4 res = textureLoadExternal(arg_0, ext_tex_plane_1, int2(0, 0), tint_symbol_1(ext_tex_params, 0u)); + float4 res = textureLoadExternal(arg_0, ext_tex_plane_1, (0).xx, tint_symbol_1(ext_tex_params, 0u)); } struct tint_symbol { @@ -85,7 +85,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_8acf41(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl index ad15913b27..f9403dcc97 100644 --- a/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/9b2667.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_9b2667(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl index 41f3f98054..e7bcc429b5 100644 --- a/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/a583c9.wgsl.expected.hlsl @@ -1,7 +1,7 @@ Texture2DMS arg_0 : register(t0, space1); void textureLoad_a583c9() { - float4 res = arg_0.Load(int2(0, 0), 1); + float4 res = arg_0.Load((0).xx, 1); } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_a583c9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl index d5eb2c8d17..98f0d55943 100644 --- a/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/a9a9f5.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_a9a9f5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl index 7144884c7d..64fa5c2d26 100644 --- a/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/c2a480.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_c2a480(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl index f8a1b424fe..fc7d1b6b7b 100644 --- a/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/c378ee.wgsl.expected.hlsl @@ -1,7 +1,7 @@ Texture2DMS arg_0 : register(t0, space1); void textureLoad_c378ee() { - uint4 res = arg_0.Load(int2(0, 0), 1); + uint4 res = arg_0.Load((0).xx, 1); } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_c378ee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl index eb0cd78a73..6d097d4597 100644 --- a/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureLoad/e3d2cc.wgsl.expected.hlsl @@ -1,7 +1,7 @@ Texture2DMS arg_0 : register(t0, space1); void textureLoad_e3d2cc() { - int4 res = arg_0.Load(int2(0, 0), 1); + int4 res = arg_0.Load((0).xx, 1); } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureLoad_e3d2cc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl index 7ccc1894af..c54de32f98 100644 --- a/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/024820.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_024820(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl index 97689f6f57..ec0865280f 100644 --- a/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/053df7.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_053df7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl index 725e642c8d..0f9f61ae48 100644 --- a/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/058cc3.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_058cc3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl index 75cf60c504..c52cd47ecc 100644 --- a/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/09d05d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_09d05d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl index 1bfb035832..4d9ac8afb4 100644 --- a/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/13b4ce.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_13b4ce(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl index 46a495a5e3..8611a5211c 100644 --- a/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/22e53b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_22e53b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl index 5fcd67785a..59664cc21b 100644 --- a/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/562013.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_562013(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl index 9a46da2570..063ac3bee8 100644 --- a/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/5d59cd.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_5d59cd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl index 3b3e7c5e4d..cefd82036d 100644 --- a/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/68a65b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_68a65b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl index fd57842021..198c36ba40 100644 --- a/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/778bd1.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_778bd1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl index a352bf5a28..edd423aea6 100644 --- a/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/7f1937.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_7f1937(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl index 383ad274a4..bd6cdc4517 100644 --- a/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/85f980.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_85f980(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl index 383343871e..5c563c486d 100644 --- a/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/87953e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_87953e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl index 5326a55c29..0991385af2 100644 --- a/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/893e7c.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_893e7c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl index 463ebe26c2..63205b7d81 100644 --- a/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/9700fb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_9700fb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl index dab107c44b..d9cf5006ba 100644 --- a/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/a216d2.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_a216d2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl index fbcb1238df..ca5a80c50a 100644 --- a/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/cd5dc8.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_cd5dc8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl index d8bc0a4f21..a8c82b0521 100644 --- a/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/d5b228.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_d5b228(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl index d41a82144f..6aca3c5454 100644 --- a/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/e31be1.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_e31be1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl index a15c460a07..07d21c43e3 100644 --- a/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/e653c0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_e653c0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl index 110c6c9e01..6b49235b30 100644 --- a/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/ee942f.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_ee942f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl index d6b9fa8bd4..4f341b1db5 100644 --- a/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/f33005.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_f33005(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl index 288d736c39..5ded29d872 100644 --- a/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/fcec98.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_fcec98(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl index 0b420c2eeb..4ff6d2cbd5 100644 --- a/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLayers/ff5e89.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLayers_ff5e89(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl index 404709c33c..7688db98ff 100644 --- a/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/076cb5.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_076cb5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl index 039799da6b..633e7beb77 100644 --- a/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/080d95.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_080d95(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl index a903d8102d..fa2c6733dd 100644 --- a/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/09ddd0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_09ddd0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl index 71be44d9cd..608355f226 100644 --- a/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/105988.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_105988(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl index 4ef4ca87cf..938309a8d8 100644 --- a/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/1e6f3b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_1e6f3b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl index 958afdcd24..230c77c842 100644 --- a/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/23f750.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_23f750(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl index 7aa8570e0f..969b67aee9 100644 --- a/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/2c3575.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_2c3575(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl index f22518ce79..8caa7566e4 100644 --- a/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/32a0ae.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_32a0ae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl index 7091b8e737..f6385792ca 100644 --- a/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/5101cf.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_5101cf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl index 40f25f21fc..e41c4df7b1 100644 --- a/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/51b5bb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_51b5bb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl index acaeff7432..1dc79b11bb 100644 --- a/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/897aaf.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_897aaf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl index 4e34c92448..621c54766b 100644 --- a/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/9da7a5.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_9da7a5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl index b93c10e7ad..97c379dd7f 100644 --- a/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/a91c03.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_a91c03(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl index 8408bc84c2..6511a2d27a 100644 --- a/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/aee7c8.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_aee7c8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl index f69cf8c990..cd908dca1e 100644 --- a/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/b1b12b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_b1b12b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl index b7ae80c4cb..92162ad12d 100644 --- a/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/b4f5ea.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_b4f5ea(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl index c97a707b31..34731d5b4e 100644 --- a/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/d004a9.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_d004a9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl index 5c8af176e6..01307a423f 100644 --- a/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/dca09e.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_dca09e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl index f0b07cc963..a6f8a6f769 100644 --- a/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/e67231.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_e67231(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl index 60a817de0c..75d40ead62 100644 --- a/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/ed078b.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_ed078b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl index c6079db1c6..3a16309ca7 100644 --- a/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/f46ec6.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_f46ec6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl index 3885eb10e2..05d604d60a 100644 --- a/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumLevels/f5828d.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumLevels_f5828d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl index 0e8148bc0d..6c3feafdaa 100644 --- a/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumSamples/2c6f14.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumSamples_2c6f14(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl index 4d7256ea96..415abda1e8 100644 --- a/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumSamples/42f8bb.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumSamples_42f8bb(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl index 4cbc214060..4dbf2f0a56 100644 --- a/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumSamples/449d23.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumSamples_449d23(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl index 106cba4713..0eb375a965 100644 --- a/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureNumSamples/a3c8a0.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureNumSamples_a3c8a0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl index 1e21709ed5..b715586e9b 100644 --- a/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/02aa9b.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_02aa9b() { - float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), int2(0, 0)); + float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl index 0e60a50697..3b29d557d1 100644 --- a/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/100dc0.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_100dc0() { - float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, 0.0f), int3(0, 0, 0)); + float4 res = arg_0.Sample(arg_1, (0.0f).xxx, (0).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl index eed7099604..aeb2754c08 100644 --- a/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/38bbb9.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_38bbb9() { - float res = arg_0.Sample(arg_1, float2(0.0f, 0.0f)).x; + float res = arg_0.Sample(arg_1, (0.0f).xx).x; } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl index b52b901561..7b99e2a794 100644 --- a/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/3b50bd.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_3b50bd() { - float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.Sample(arg_1, (0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.hlsl index a608c750a9..68aa5c7a80 100644 --- a/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/51b514.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_51b514() { - float4 res = arg_0.Sample(arg_1, float2(0.0f, 0.0f)); + float4 res = arg_0.Sample(arg_1, (0.0f).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.hlsl index 6f582e3460..8742386930 100644 --- a/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/667d76.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_667d76() { - float res = arg_0.Sample(arg_1, float2(0.0f, 0.0f), int2(0, 0)).x; + float res = arg_0.Sample(arg_1, (0.0f).xx, (0).xx).x; } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl index fb6be7b9ad..8a8cb37dd5 100644 --- a/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/7c3baa.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_7c3baa() { - float4 res = arg_0.Sample(arg_1, float2(0.0f, 0.0f), int2(0, 0)); + float4 res = arg_0.Sample(arg_1, (0.0f).xx, (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl index a47e848497..d5360c8638 100644 --- a/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/8522e7.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_8522e7() { - float res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), int2(0, 0)).x; + float res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, float(1)), (0).xx).x; } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.hlsl index bd516608a1..18cffd4082 100644 --- a/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/e53267.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_e53267() { - float4 res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.Sample(arg_1, (0.0f).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl index f01c286204..4f82f08ede 100644 --- a/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSample/ea7030.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSample_ea7030() { - float res = arg_0.Sample(arg_1, float3(0.0f, 0.0f, 0.0f)).x; + float res = arg_0.Sample(arg_1, (0.0f).xxx).x; } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl index f5fecb41a9..ec467db1b2 100644 --- a/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/53b9f7.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_53b9f7() { - float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl index f2e3c1dfa5..801d763276 100644 --- a/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/65ac50.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_65ac50() { - float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, int2(0, 0)); + float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl index 39fe8c0835..a3e3379d3d 100644 --- a/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/6a9113.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_6a9113() { - float4 res = arg_0.SampleBias(arg_1, float2(0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleBias(arg_1, (0.0f).xx, 1.0f); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl index 4c7b4dff13..d97b17a4dc 100644 --- a/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/81c19a.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_81c19a() { - float4 res = arg_0.SampleBias(arg_1, float2(0.0f, 0.0f), 1.0f, int2(0, 0)); + float4 res = arg_0.SampleBias(arg_1, (0.0f).xx, 1.0f, (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl index 5d08b9dffb..cfb6394b5f 100644 --- a/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/d3fa1b.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_d3fa1b() { - float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl index c1ea919317..fff7ac87c8 100644 --- a/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleBias/df91bb.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleBias_df91bb() { - float4 res = arg_0.SampleBias(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f, int3(0, 0, 0)); + float4 res = arg_0.SampleBias(arg_1, (0.0f).xxx, 1.0f, (0).xxx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl index 98685b6922..b8aa7d03a3 100644 --- a/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompare/25fcd1.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompare_25fcd1() { - float res = arg_0.SampleCmp(arg_1, float2(0.0f, 0.0f), 1.0f, int2(0, 0)); + float res = arg_0.SampleCmp(arg_1, (0.0f).xx, 1.0f, (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl index f34e7be963..948b7a7afd 100644 --- a/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompare/3a5923.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompare_3a5923() { - float res = arg_0.SampleCmp(arg_1, float2(0.0f, 0.0f), 1.0f); + float res = arg_0.SampleCmp(arg_1, (0.0f).xx, 1.0f); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl index 4df9a68ffa..33b00bcdcc 100644 --- a/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompare/63fb83.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompare_63fb83() { - float res = arg_0.SampleCmp(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float res = arg_0.SampleCmp(arg_1, (0.0f).xxx, 1.0f); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl index 51f701e638..a468836334 100644 --- a/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompare/98b85c.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompare_98b85c() { - float res = arg_0.SampleCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, int2(0, 0)); + float res = arg_0.SampleCmp(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); } void fragment_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl index 8662f0c6fd..7ffb3689c1 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/011a8f.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompareLevel_011a8f() { - float res = arg_0.SampleCmpLevelZero(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, int2(0, 0)); + float res = arg_0.SampleCmpLevelZero(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_011a8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl index b37ef587cd..e84193e394 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/1116ed.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_1116ed(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl index 0596d33d4a..2a79a0f099 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/1568e3.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompareLevel_1568e3() { - float res = arg_0.SampleCmpLevelZero(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_1568e3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl index 9b86db7cbf..999c761e1b 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/2ad2b1.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompareLevel_2ad2b1() { - float res = arg_0.SampleCmpLevelZero(arg_1, float2(0.0f, 0.0f), 1.0f); + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_2ad2b1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl index 6429d444b7..03160c2dbb 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/4cf3a2.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_4cf3a2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl index a96b6312fe..54ff22bb78 100644 --- a/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleCompareLevel/f8121c.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerComparisonState arg_1 : register(s1, space1); void textureSampleCompareLevel_f8121c() { - float res = arg_0.SampleCmpLevelZero(arg_1, float2(0.0f, 0.0f), 1.0f, int2(0, 0)); + float res = arg_0.SampleCmpLevelZero(arg_1, (0.0f).xx, 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleCompareLevel_f8121c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl index d983c7549c..6012626387 100644 --- a/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/21402b.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_21402b() { - float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_21402b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl index 618dadc6a1..3d01c5add9 100644 --- a/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/2ecd8f.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_2ecd8f() { - float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, float(1)), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, float(1)), (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_2ecd8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl index a3aa56facb..ecf93eff86 100644 --- a/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/468f88.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_468f88() { - float4 res = arg_0.SampleGrad(arg_1, float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f), int2(0, 0)); + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xx, (0.0f).xx, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_468f88(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl index 434705bf94..f581e3013e 100644 --- a/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/521263.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_521263() { - float4 res = arg_0.SampleGrad(arg_1, float2(0.0f, 0.0f), float2(0.0f, 0.0f), float2(0.0f, 0.0f)); + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xx, (0.0f).xx, (0.0f).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_521263(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl index 279979df18..180ee4f81f 100644 --- a/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/5312f4.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_5312f4() { - float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_5312f4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl index 6768f3a968..682fc5da37 100644 --- a/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/872f00.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_872f00() { - float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, float(1)), float2(0.0f, 0.0f), float2(0.0f, 0.0f), int2(0, 0)); + float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, float(1)), (0.0f).xx, (0.0f).xx, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_872f00(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl index 72c2207d94..990fc90b9e 100644 --- a/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/e383db.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCubeArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_e383db() { - float4 res = arg_0.SampleGrad(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f)); + float4 res = arg_0.SampleGrad(arg_1, float4(0.0f, 0.0f, 0.0f, float(1)), (0.0f).xxx, (0.0f).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_e383db(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl index a3855dd8a5..5ef518923a 100644 --- a/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleGrad/e9a2f7.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleGrad_e9a2f7() { - float4 res = arg_0.SampleGrad(arg_1, float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), float3(0.0f, 0.0f, 0.0f), int3(0, 0, 0)); + float4 res = arg_0.SampleGrad(arg_1, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleGrad_e9a2f7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl index 0f2e171f7c..90c561b2b3 100644 --- a/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/02be59.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_02be59() { - float res = arg_0.SampleLevel(arg_1, float2(0.0f, 0.0f), 0).x; + float res = arg_0.SampleLevel(arg_1, (0.0f).xx, 0).x; } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_02be59(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl index 79982318dd..4ac5b0c514 100644 --- a/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/0bdd9a.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_0bdd9a(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl index b21e9fda1a..f73ebcfcbc 100644 --- a/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/1b0291.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_1b0291() { - float res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, 0.0f), 0).x; + float res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 0).x; } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_1b0291(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl index 9231e911f6..9628d6da53 100644 --- a/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/1bf73e.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_1bf73e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl index 71a5560e87..90cdd653d3 100644 --- a/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/302be4.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_302be4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl index 0c1ee21277..faf0772cfb 100644 --- a/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/47daa4.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_47daa4() { - float res = arg_0.SampleLevel(arg_1, float2(0.0f, 0.0f), 0, int2(0, 0)).x; + float res = arg_0.SampleLevel(arg_1, (0.0f).xx, 0, (0).xx).x; } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_47daa4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl index 3e1fd5638e..cc0110426b 100644 --- a/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/690d95.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_690d95() { - float4 res = arg_0.SampleLevel(arg_1, float2(0.0f, 0.0f), 1.0f, int2(0, 0)); + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xx, 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_690d95(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl index d673a4f094..ffc989934e 100644 --- a/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/979816.wgsl.expected.hlsl @@ -77,7 +77,7 @@ ExternalTextureParams tint_symbol_1(uint4 buffer[11], uint offset) { } void textureSampleLevel_979816() { - float4 res = textureSampleExternal(arg_0, ext_tex_plane_1, arg_1, float2(0.0f, 0.0f), tint_symbol_1(ext_tex_params, 0u)); + float4 res = textureSampleExternal(arg_0, ext_tex_plane_1, arg_1, (0.0f).xx, tint_symbol_1(ext_tex_params, 0u)); } struct tint_symbol { @@ -86,7 +86,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_979816(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl index 9d059defcd..66d65781b6 100644 --- a/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/9bd37b.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_9bd37b() { - float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f, int3(0, 0, 0)); + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f, (0).xxx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_9bd37b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl index c1d9157db1..d6bb7d63c7 100644 --- a/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/a4af26.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_a4af26() { - float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, int2(0, 0)); + float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 1.0f, (0).xx); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_a4af26(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl index 2110c77419..5986acede1 100644 --- a/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/abfcc0.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture3D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_abfcc0() { - float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_abfcc0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl index e03bc6671b..7c2d3abf2a 100644 --- a/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/ae5e39.wgsl.expected.hlsl @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_ae5e39(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl index c375c7ce1f..9ba7d7881c 100644 --- a/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/ba93b3.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2DArray arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_ba93b3() { - float res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 0, int2(0, 0)).x; + float res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, float(1)), 0, (0).xx).x; } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_ba93b3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl index 92b39bb254..d48cf54ade 100644 --- a/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/c32df7.wgsl.expected.hlsl @@ -2,7 +2,7 @@ TextureCube arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_c32df7() { - float4 res = arg_0.SampleLevel(arg_1, float3(0.0f, 0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xxx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_c32df7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl index 69ec00e251..4455778471 100644 --- a/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureSampleLevel/c6aca6.wgsl.expected.hlsl @@ -2,7 +2,7 @@ Texture2D arg_0 : register(t0, space1); SamplerState arg_1 : register(s1, space1); void textureSampleLevel_c6aca6() { - float4 res = arg_0.SampleLevel(arg_1, float2(0.0f, 0.0f), 1.0f); + float4 res = arg_0.SampleLevel(arg_1, (0.0f).xx, 1.0f); } struct tint_symbol { @@ -11,7 +11,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureSampleLevel_c6aca6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl index ed042228cf..27477b0e4d 100644 --- a/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/05ce15.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_05ce15() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_05ce15(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl index 39c01859f7..c9130d7495 100644 --- a/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/064c7f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_064c7f() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_064c7f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/068641.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/068641.wgsl.expected.hlsl index e6cd71aea0..cbcf84d5eb 100644 --- a/test/tint/builtins/gen/textureStore/068641.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/068641.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_068641() { - arg_0[int3(0, 0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xxx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_068641(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl index a7f40f74bf..388ae73302 100644 --- a/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/0af6b5.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_0af6b5() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_0af6b5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl index 0ca7a424aa..dcdd179da8 100644 --- a/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/0c3dff.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_0c3dff() { - arg_0[int2(0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_0c3dff(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/102722.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/102722.wgsl.expected.hlsl index 5ff0d4427e..cf95c7c78a 100644 --- a/test/tint/builtins/gen/textureStore/102722.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/102722.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_102722() { - arg_0[1] = uint4(0u, 0u, 0u, 0u); + arg_0[1] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_102722(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl index 7394a043ed..21d658ecd8 100644 --- a/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/1bbd08.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_1bbd08() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_1bbd08(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl index 18e87d37e8..f4ad1a0ebc 100644 --- a/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/1c02e7.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_1c02e7() { - arg_0[int3(0, 0, 1)] = int4(0, 0, 0, 0); + arg_0[int3(0, 0, 1)] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_1c02e7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.hlsl index 3621eee4e8..c998bd87fe 100644 --- a/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/22d955.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_22d955() { - arg_0[int3(0, 0, 1)] = uint4(0u, 0u, 0u, 0u); + arg_0[int3(0, 0, 1)] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_22d955(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl index 9e7dc61094..7c666e2767 100644 --- a/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/26bf70.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_26bf70() { - arg_0[int2(0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_26bf70(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl index 4a08b65c2c..95522d93a2 100644 --- a/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/2796b4.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_2796b4() { - arg_0[int3(0, 0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xxx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_2796b4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl index 07e338efb4..a3e5a4c56c 100644 --- a/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/2ac6c7.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_2ac6c7() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_2ac6c7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl index 7bdb1f6ec7..94f6628a51 100644 --- a/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/2eb2a4.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_2eb2a4() { - arg_0[1] = uint4(0u, 0u, 0u, 0u); + arg_0[1] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_2eb2a4(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl index a0822a03c5..38a94e741b 100644 --- a/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/2ed2a3.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_2ed2a3() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_2ed2a3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.hlsl index c9378fad2a..6a31872a0c 100644 --- a/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/31745b.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_31745b() { - arg_0[int2(0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_31745b(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.hlsl index 35cb76fbbc..6a94d6b85f 100644 --- a/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/32f368.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_32f368() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_32f368(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.hlsl index 5a823d41c5..53f938c151 100644 --- a/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/331aee.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_331aee() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_331aee(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl index 9ab58469d7..8c2dd24718 100644 --- a/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/38e8d7.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_38e8d7() { - arg_0[int3(0, 0, 1)] = uint4(0u, 0u, 0u, 0u); + arg_0[int3(0, 0, 1)] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_38e8d7(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl index 7e1c172e06..b0fd8b1572 100644 --- a/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/3a52ac.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_3a52ac() { - arg_0[int3(0, 0, 1)] = int4(0, 0, 0, 0); + arg_0[int3(0, 0, 1)] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_3a52ac(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl index a81883ca60..879dea5d93 100644 --- a/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/3bb7a1.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_3bb7a1() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_3bb7a1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl index a9f622dcda..cc77637731 100644 --- a/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/3bec15.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_3bec15() { - arg_0[1] = uint4(0u, 0u, 0u, 0u); + arg_0[1] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_3bec15(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl index 593faf20e6..c2c79ae4d9 100644 --- a/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/441ba8.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_441ba8() { - arg_0[int3(0, 0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xxx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_441ba8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl index b8e3f68abd..d485fcca1d 100644 --- a/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/4fc057.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_4fc057() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_4fc057(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl index 7fa35a8870..7d0eb61fde 100644 --- a/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/5a2f8f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_5a2f8f() { - arg_0[1] = int4(0, 0, 0, 0); + arg_0[1] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_5a2f8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.hlsl index 811a27c847..ab19974898 100644 --- a/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/60975f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_60975f() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_60975f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl index 95a07d3746..b8d65ccc25 100644 --- a/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/682fd6.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_682fd6() { - arg_0[int2(0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_682fd6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl index d2c7cacacb..df1c070909 100644 --- a/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/6b75c3.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_6b75c3() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_6b75c3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl index 630297ab7a..a2e5c731dd 100644 --- a/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/6b80d2.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_6b80d2() { - arg_0[1] = int4(0, 0, 0, 0); + arg_0[1] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_6b80d2(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl index e6355996a6..a9f96b4e79 100644 --- a/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/6cff2e.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_6cff2e() { - arg_0[int2(0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_6cff2e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.hlsl index a227f8f6dc..69e93a9006 100644 --- a/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/6da692.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_6da692() { - arg_0[int3(0, 0, 1)] = uint4(0u, 0u, 0u, 0u); + arg_0[int3(0, 0, 1)] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_6da692(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/731349.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/731349.wgsl.expected.hlsl index b13dd3024e..c6837defba 100644 --- a/test/tint/builtins/gen/textureStore/731349.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/731349.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_731349() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_731349(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.hlsl index 5e8ed8ac72..f65a408b89 100644 --- a/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/752da6.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_752da6() { - arg_0[int2(0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_752da6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl index ad9871f15e..31d53b3d1a 100644 --- a/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/77c0ae.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_77c0ae() { - arg_0[int2(0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_77c0ae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl index 312c3d8d06..a1a4198cf9 100644 --- a/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/7cec8d.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_7cec8d() { - arg_0[int3(0, 0, 1)] = int4(0, 0, 0, 0); + arg_0[int3(0, 0, 1)] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_7cec8d(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl index aa796401b8..35b13ff28b 100644 --- a/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/7f7fae.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_7f7fae() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_7f7fae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/804942.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/804942.wgsl.expected.hlsl index e8cf229829..00b02cb6ca 100644 --- a/test/tint/builtins/gen/textureStore/804942.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/804942.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_804942() { - arg_0[int2(0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_804942(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.hlsl index 1259ff3c77..8abb6a896d 100644 --- a/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/805dae.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_805dae() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_805dae(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl index c73ba1f8a5..4ca45eca05 100644 --- a/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/83bcc1.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_83bcc1() { - arg_0[1] = uint4(0u, 0u, 0u, 0u); + arg_0[1] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_83bcc1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/872747.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/872747.wgsl.expected.hlsl index 2f1f45b901..abc0d22cfd 100644 --- a/test/tint/builtins/gen/textureStore/872747.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/872747.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_872747() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_872747(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl index 7ce20468bc..e0b8d209ab 100644 --- a/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/8e0479.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_8e0479() { - arg_0[int3(0, 0, 1)] = uint4(0u, 0u, 0u, 0u); + arg_0[int3(0, 0, 1)] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_8e0479(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl index 6a9b01f2e7..be336b8353 100644 --- a/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/8f71a1.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_8f71a1() { - arg_0[int3(0, 0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xxx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_8f71a1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/969534.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/969534.wgsl.expected.hlsl index 4ec5ed25d4..5d1107b86a 100644 --- a/test/tint/builtins/gen/textureStore/969534.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/969534.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_969534() { - arg_0[1] = int4(0, 0, 0, 0); + arg_0[1] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_969534(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl index f57c02d772..bf19cfeb5d 100644 --- a/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/9a3ecc.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_9a3ecc() { - arg_0[int3(0, 0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xxx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_9a3ecc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl index 1f1816f6c4..0f43b6b845 100644 --- a/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/9d9cd5.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_9d9cd5() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_9d9cd5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl index 8dc4ac13bd..a1dff9c5d7 100644 --- a/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/9e3ec5.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_9e3ec5() { - arg_0[int2(0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_9e3ec5(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl index e80007ede2..94cd654873 100644 --- a/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/ac67aa.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_ac67aa() { - arg_0[int3(0, 0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xxx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_ac67aa(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl index 60cde5e9ce..c479e1c702 100644 --- a/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/b706b1.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_b706b1() { - arg_0[int3(0, 0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xxx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_b706b1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl index 9b7d1734ed..0278d0e7aa 100644 --- a/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/bbcb7f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_bbcb7f() { - arg_0[int2(0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_bbcb7f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl index 7e32849ac7..43f6c7e9de 100644 --- a/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/be6e30.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2D arg_0 : register(u0, space1); void textureStore_be6e30() { - arg_0[int2(0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_be6e30(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl index e7f85a4f7d..592886825b 100644 --- a/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/bf775c.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_bf775c() { - arg_0[1] = int4(0, 0, 0, 0); + arg_0[1] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_bf775c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl index 21f9e2c045..ba59f437ed 100644 --- a/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/c5af1e.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_c5af1e() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_c5af1e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.hlsl index 80266bd8db..e6948caad6 100644 --- a/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/c863be.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_c863be() { - arg_0[int3(0, 0, 1)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[int3(0, 0, 1)] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_c863be(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl index d3ded482f8..85e4777a84 100644 --- a/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/d73b5c.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_d73b5c() { - arg_0[1] = int4(0, 0, 0, 0); + arg_0[1] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_d73b5c(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl index c46b2b6a1c..598b8116c3 100644 --- a/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/dd7d81.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_dd7d81() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_dd7d81(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.hlsl index ad7b855c2c..c35dda32b2 100644 --- a/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/dde364.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_dde364() { - arg_0[int3(0, 0, 1)] = uint4(0u, 0u, 0u, 0u); + arg_0[int3(0, 0, 1)] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_dde364(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl index 0cc502d3cf..0faa237daa 100644 --- a/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/e885e8.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_e885e8() { - arg_0[1] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[1] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_e885e8(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl index 8d2e233f3c..5bc0b80030 100644 --- a/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/eb702f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_eb702f() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_eb702f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl index 1268ff76fc..67a03a226b 100644 --- a/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/eb78b9.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_eb78b9() { - arg_0[int3(0, 0, 0)] = int4(0, 0, 0, 0); + arg_0[(0).xxx] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_eb78b9(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl index 3b0c419c30..8193759670 100644 --- a/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/ee6acc.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_ee6acc() { - arg_0[int3(0, 0, 0)] = float4(0.0f, 0.0f, 0.0f, 0.0f); + arg_0[(0).xxx] = (0.0f).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_ee6acc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl index 65da5f360c..fb51122e9e 100644 --- a/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/ef9f2f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_ef9f2f() { - arg_0[int3(0, 0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xxx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_ef9f2f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl index dd2268a5de..660c7b48c8 100644 --- a/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/f8dead.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture3D arg_0 : register(u0, space1); void textureStore_f8dead() { - arg_0[int3(0, 0, 0)] = uint4(0u, 0u, 0u, 0u); + arg_0[(0).xxx] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_f8dead(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl index 6194d27473..a323f52245 100644 --- a/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/f9be83.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_f9be83() { - arg_0[int3(0, 0, 1)] = int4(0, 0, 0, 0); + arg_0[int3(0, 0, 1)] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_f9be83(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl index 8c233c3022..6af6c919d0 100644 --- a/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/fb9a8f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture1D arg_0 : register(u0, space1); void textureStore_fb9a8f() { - arg_0[1] = uint4(0u, 0u, 0u, 0u); + arg_0[1] = (0u).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_fb9a8f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl b/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl index 6cf5b0183c..e274d9ed22 100644 --- a/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/textureStore/fbf53f.wgsl.expected.hlsl @@ -1,7 +1,7 @@ RWTexture2DArray arg_0 : register(u0, space1); void textureStore_fbf53f() { - arg_0[int3(0, 0, 1)] = int4(0, 0, 0, 0); + arg_0[int3(0, 0, 1)] = (0).xxxx; } struct tint_symbol { @@ -10,7 +10,7 @@ struct tint_symbol { float4 vertex_main_inner() { textureStore_fbf53f(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.hlsl index 0dcb894c5e..3ffeca1214 100644 --- a/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/2585cd.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_2585cd() { - float3x4 res = transpose(float4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float3x4 res = transpose(float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_2585cd(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/31d679.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/31d679.wgsl.expected.hlsl index f81bc9b663..d3ac41887b 100644 --- a/test/tint/builtins/gen/transpose/31d679.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/31d679.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_31d679() { - float2x2 res = transpose(float2x2(0.0f, 0.0f, 0.0f, 0.0f)); + float2x2 res = transpose(float2x2((0.0f).xx, (0.0f).xx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_31d679(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.hlsl index 7a98209a1b..c16825105b 100644 --- a/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/31e37e.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_31e37e() { - float2x4 res = transpose(float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float2x4 res = transpose(float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_31e37e(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.hlsl index ce5e8de2ea..46342a92b7 100644 --- a/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/4ce359.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_4ce359() { - float4x2 res = transpose(float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float4x2 res = transpose(float2x4((0.0f).xxxx, (0.0f).xxxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_4ce359(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl index 2471cff5b4..f84245615d 100644 --- a/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/4dc9a1.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_4dc9a1() { - float3x2 res = transpose(float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float3x2 res = transpose(float2x3((0.0f).xxx, (0.0f).xxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_4dc9a1(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/854336.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/854336.wgsl.expected.hlsl index e90dab8d76..3ad467dc03 100644 --- a/test/tint/builtins/gen/transpose/854336.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/854336.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_854336() { - float3x3 res = transpose(float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float3x3 res = transpose(float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_854336(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.hlsl index bc2bd204a6..512431f633 100644 --- a/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/c1b600.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_c1b600() { - float4x4 res = transpose(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float4x4 res = transpose(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_c1b600(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl index 860eed7630..bf794d873e 100644 --- a/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/d8f8ba.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_d8f8ba() { - float4x3 res = transpose(float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float4x3 res = transpose(float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_d8f8ba(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl b/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl index fc957c6b36..2455e31043 100644 --- a/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/transpose/ed4bdc.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void transpose_ed4bdc() { - float2x3 res = transpose(float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f)); + float2x3 res = transpose(float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx)); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { transpose_ed4bdc(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/562d05.wgsl.expected.hlsl b/test/tint/builtins/gen/trunc/562d05.wgsl.expected.hlsl index 2d89674637..47d7549c55 100644 --- a/test/tint/builtins/gen/trunc/562d05.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/trunc/562d05.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void trunc_562d05() { - float3 res = trunc(float3(0.0f, 0.0f, 0.0f)); + float3 res = trunc((0.0f).xxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_562d05(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.hlsl b/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.hlsl index d65dc52f04..a133b49e63 100644 --- a/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/trunc/e183aa.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void trunc_e183aa() { - float4 res = trunc(float4(0.0f, 0.0f, 0.0f, 0.0f)); + float4 res = trunc((0.0f).xxxx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_e183aa(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.hlsl b/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.hlsl index 2e556ed556..082acc562d 100644 --- a/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/trunc/eb83df.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_eb83df(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.hlsl b/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.hlsl index bd5514f382..6aadd19175 100644 --- a/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/trunc/f370d3.wgsl.expected.hlsl @@ -1,5 +1,5 @@ void trunc_f370d3() { - float2 res = trunc(float2(0.0f, 0.0f)); + float2 res = trunc((0.0f).xx); } struct tint_symbol { @@ -8,7 +8,7 @@ struct tint_symbol { float4 vertex_main_inner() { trunc_f370d3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl b/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl index 3402aff335..42e474940e 100644 --- a/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/unpack2x16float/32a5cf.wgsl.expected.hlsl @@ -13,7 +13,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16float_32a5cf(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl b/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl index 3ad23703a7..24b536c97c 100644 --- a/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/unpack2x16snorm/b4aea6.wgsl.expected.hlsl @@ -14,7 +14,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16snorm_b4aea6(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl b/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl index a404f41658..a3f1ab811f 100644 --- a/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/unpack2x16unorm/7699c0.wgsl.expected.hlsl @@ -14,7 +14,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack2x16unorm_7699c0(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl b/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl index c7e5031c16..20f0953dfe 100644 --- a/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/unpack4x8snorm/523fb3.wgsl.expected.hlsl @@ -14,7 +14,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack4x8snorm_523fb3(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl b/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl index 78266e5a9e..6ce7cb7da9 100644 --- a/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl +++ b/test/tint/builtins/gen/unpack4x8unorm/750c74.wgsl.expected.hlsl @@ -14,7 +14,7 @@ struct tint_symbol { float4 vertex_main_inner() { unpack4x8unorm_750c74(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol vertex_main() { diff --git a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl index 617fce0974..65915104b3 100644 --- a/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl +++ b/test/tint/builtins/insertBits/vec3/i32.spvasm.expected.hlsl @@ -6,8 +6,8 @@ int3 tint_insert_bits(int3 v, int3 n, uint offset, uint count) { } void f_1() { - int3 v = int3(0, 0, 0); - int3 n = int3(0, 0, 0); + int3 v = (0).xxx; + int3 n = (0).xxx; uint offset_1 = 0u; uint count = 0u; const int3 x_16 = tint_insert_bits(v, n, offset_1, count); diff --git a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl index 9972d6a64b..9d914838a0 100644 --- a/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl +++ b/test/tint/builtins/insertBits/vec3/u32.spvasm.expected.hlsl @@ -6,8 +6,8 @@ uint3 tint_insert_bits(uint3 v, uint3 n, uint offset, uint count) { } void f_1() { - uint3 v = uint3(0u, 0u, 0u); - uint3 n = uint3(0u, 0u, 0u); + uint3 v = (0u).xxx; + uint3 n = (0u).xxx; uint offset_1 = 0u; uint count = 0u; const uint3 x_15 = tint_insert_bits(v, n, offset_1, count); diff --git a/test/tint/builtins/repeated_use.wgsl.expected.hlsl b/test/tint/builtins/repeated_use.wgsl.expected.hlsl index c1cb022e03..721724d053 100644 --- a/test/tint/builtins/repeated_use.wgsl.expected.hlsl +++ b/test/tint/builtins/repeated_use.wgsl.expected.hlsl @@ -16,14 +16,14 @@ float tint_degrees_3(float param_0) { [numthreads(1, 1, 1)] void main() { - tint_degrees(float4(0.0f, 0.0f, 0.0f, 0.0f)); - tint_degrees(float4((1.0f).xxxx)); + tint_degrees((0.0f).xxxx); + tint_degrees((1.0f).xxxx); tint_degrees(float4(1.0f, 2.0f, 3.0f, 4.0f)); - tint_degrees_1(float3(0.0f, 0.0f, 0.0f)); - tint_degrees_1(float3((1.0f).xxx)); + tint_degrees_1((0.0f).xxx); + tint_degrees_1((1.0f).xxx); tint_degrees_1(float3(1.0f, 2.0f, 3.0f)); - tint_degrees_2(float2(0.0f, 0.0f)); - tint_degrees_2(float2((1.0f).xx)); + tint_degrees_2((0.0f).xx); + tint_degrees_2((1.0f).xx); tint_degrees_2(float2(1.0f, 2.0f)); tint_degrees_3(1.0f); tint_degrees_3(2.0f); diff --git a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl index f031e02803..1f9139f59b 100644 --- a/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl +++ b/test/tint/builtins/textureDimensions/depth_ms.spvasm.expected.hlsl @@ -1,8 +1,8 @@ Texture2DMS arg_0 : register(t0, space1); -static float4 tint_symbol_1 = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float4 tint_symbol_1 = (0.0f).xxxx; void textureDimensions_f60bdb() { - int2 res = int2(0, 0); + int2 res = (0).xx; int3 tint_tmp; arg_0.GetDimensions(tint_tmp.x, tint_tmp.y, tint_tmp.z); const int2 x_16 = int2(tint_tmp.xy); @@ -17,7 +17,7 @@ void tint_symbol_2(float4 tint_symbol) { void vertex_main_1() { textureDimensions_f60bdb(); - tint_symbol_2(float4(0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol_2((0.0f).xxxx); return; } diff --git a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl index 7f8232f6db..f63ae88f46 100644 --- a/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/f32/alpha.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - float4 res = t.GatherAlpha(s, float2(0.0f, 0.0f)); + float4 res = t.GatherAlpha(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.hlsl b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.hlsl index 696a8f020f..56e8a18b7b 100644 --- a/test/tint/builtins/textureGather/f32/blue.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/f32/blue.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - float4 res = t.GatherBlue(s, float2(0.0f, 0.0f)); + float4 res = t.GatherBlue(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/f32/green.wgsl.expected.hlsl b/test/tint/builtins/textureGather/f32/green.wgsl.expected.hlsl index ca621d7023..c56f1aaa6e 100644 --- a/test/tint/builtins/textureGather/f32/green.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/f32/green.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - float4 res = t.GatherGreen(s, float2(0.0f, 0.0f)); + float4 res = t.GatherGreen(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/f32/red.wgsl.expected.hlsl b/test/tint/builtins/textureGather/f32/red.wgsl.expected.hlsl index c84ae29109..21d576122b 100644 --- a/test/tint/builtins/textureGather/f32/red.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/f32/red.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - float4 res = t.GatherRed(s, float2(0.0f, 0.0f)); + float4 res = t.GatherRed(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.hlsl b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.hlsl index 80023eb184..f3e0cbe4ee 100644 --- a/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/i32/alpha.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - int4 res = t.GatherAlpha(s, float2(0.0f, 0.0f)); + int4 res = t.GatherAlpha(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.hlsl b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.hlsl index 2292741bf0..4590910bc7 100644 --- a/test/tint/builtins/textureGather/i32/blue.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/i32/blue.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - int4 res = t.GatherBlue(s, float2(0.0f, 0.0f)); + int4 res = t.GatherBlue(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/i32/green.wgsl.expected.hlsl b/test/tint/builtins/textureGather/i32/green.wgsl.expected.hlsl index e267c2e259..a642fc96df 100644 --- a/test/tint/builtins/textureGather/i32/green.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/i32/green.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - int4 res = t.GatherGreen(s, float2(0.0f, 0.0f)); + int4 res = t.GatherGreen(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/i32/red.wgsl.expected.hlsl b/test/tint/builtins/textureGather/i32/red.wgsl.expected.hlsl index f34d0d1bc6..b1f0d11ff7 100644 --- a/test/tint/builtins/textureGather/i32/red.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/i32/red.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - int4 res = t.GatherRed(s, float2(0.0f, 0.0f)); + int4 res = t.GatherRed(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.hlsl b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.hlsl index 78147c90d2..abad934a81 100644 --- a/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/u32/alpha.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - uint4 res = t.GatherAlpha(s, float2(0.0f, 0.0f)); + uint4 res = t.GatherAlpha(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.hlsl b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.hlsl index 6f3f6d31f2..54ed2add9c 100644 --- a/test/tint/builtins/textureGather/u32/blue.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/u32/blue.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - uint4 res = t.GatherBlue(s, float2(0.0f, 0.0f)); + uint4 res = t.GatherBlue(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/u32/green.wgsl.expected.hlsl b/test/tint/builtins/textureGather/u32/green.wgsl.expected.hlsl index 9ec62e8ae6..95d7018c6d 100644 --- a/test/tint/builtins/textureGather/u32/green.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/u32/green.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - uint4 res = t.GatherGreen(s, float2(0.0f, 0.0f)); + uint4 res = t.GatherGreen(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureGather/u32/red.wgsl.expected.hlsl b/test/tint/builtins/textureGather/u32/red.wgsl.expected.hlsl index a9597459c8..ba8405fa44 100644 --- a/test/tint/builtins/textureGather/u32/red.wgsl.expected.hlsl +++ b/test/tint/builtins/textureGather/u32/red.wgsl.expected.hlsl @@ -2,6 +2,6 @@ Texture2D t : register(t0, space1); SamplerState s : register(s1, space1); void main() { - uint4 res = t.GatherRed(s, float2(0.0f, 0.0f)); + uint4 res = t.GatherRed(s, (0.0f).xx); return; } diff --git a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.hlsl b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.hlsl index 41cb191251..79113c0419 100644 --- a/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.hlsl +++ b/test/tint/builtins/textureLoad/depth_ms.spvasm.expected.hlsl @@ -1,5 +1,5 @@ Texture2DMS arg_0 : register(t0, space1); -static float4 tint_symbol_1 = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float4 tint_symbol_1 = (0.0f).xxxx; void textureLoad_6273b1() { float res = 0.0f; @@ -15,7 +15,7 @@ void tint_symbol_2(float4 tint_symbol) { void vertex_main_1() { textureLoad_6273b1(); - tint_symbol_2(float4(0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol_2((0.0f).xxxx); return; } diff --git a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl index 2fb9dfebde..b933cd13af 100644 --- a/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl +++ b/test/tint/builtins/textureLoad/texture_external_param.wgsl.expected.hlsl @@ -80,7 +80,7 @@ ExternalTextureParams tint_symbol_2(uint4 buffer[11], uint offset) { } void doTextureLoad() { - float4 res = textureLoad2d(arg_0, ext_tex_plane_1, tint_symbol_2(ext_tex_params, 0u), int2(0, 0)); + float4 res = textureLoad2d(arg_0, ext_tex_plane_1, tint_symbol_2(ext_tex_params, 0u), (0).xx); } struct tint_symbol_1 { @@ -89,7 +89,7 @@ struct tint_symbol_1 { float4 vertex_main_inner() { doTextureLoad(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_1 vertex_main() { diff --git a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl index 1544f5ec7c..e4f441ebd0 100644 --- a/test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl +++ b/test/tint/builtins/textureLoad/texture_param.wgsl.expected.hlsl @@ -5,7 +5,7 @@ int4 textureLoad2d(Texture2D tint_symbol, int2 coords, int level) { } void doTextureLoad() { - int4 res = textureLoad2d(arg_0, int2(0, 0), 0); + int4 res = textureLoad2d(arg_0, (0).xx, 0); } struct tint_symbol_1 { @@ -14,7 +14,7 @@ struct tint_symbol_1 { float4 vertex_main_inner() { doTextureLoad(); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_1 vertex_main() { diff --git a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl index 4d492d297e..2fd5b5e493 100644 --- a/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl +++ b/test/tint/builtins/textureNumSamples/depth_ms.spvasm.expected.hlsl @@ -1,5 +1,5 @@ Texture2DMS arg_0 : register(t0, space1); -static float4 tint_symbol_1 = float4(0.0f, 0.0f, 0.0f, 0.0f); +static float4 tint_symbol_1 = (0.0f).xxxx; void textureNumSamples_a3c8a0() { int res = 0; @@ -17,7 +17,7 @@ void tint_symbol_2(float4 tint_symbol) { void vertex_main_1() { textureNumSamples_a3c8a0(); - tint_symbol_2(float4(0.0f, 0.0f, 0.0f, 0.0f)); + tint_symbol_2((0.0f).xxxx); return; } diff --git a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.hlsl index e20dd0701c..290b4d2fc3 100644 --- a/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/mat3x3-mat3x3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); const float3x3 b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - const float3x3 r = (a + b); + const float3x3 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-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.hlsl index bab272bbf2..05d3fdc56b 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a + b); + const float3 r = (4.0f + float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.hlsl index 1b2562e535..e6fa54cc93 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(1, 2, 3); - const int3 r = (a + b); + const int3 r = (4 + int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.hlsl index 5b43e9e11b..9ce721e6ee 100644 --- a/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(1u, 2u, 3u); - const uint3 r = (a + b); + const uint3 r = (4u + uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.hlsl index a7fe143d2d..2dfd9ed7b7 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a + 4.0f); + const float3 r = (float3(1.0f, 2.0f, 3.0f) + 4.0f); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.hlsl index 5875ef7090..1e54d92c6e 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a + 4); + const int3 r = (int3(1, 2, 3) + 4); return; } diff --git a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.hlsl index 056ee37a82..97eb89ec17 100644 --- a/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a + 4u); + const uint3 r = (uint3(1u, 2u, 3u) + 4u); return; } diff --git a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.hlsl index 2fa34ecac4..75be70f5d9 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(4.0f, 5.0f, 6.0f); - const float3 r = (a + b); + const float3 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.hlsl b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.hlsl index 3ff77a02d6..2b36afdcee 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a + b); + const int3 r = (int3(1, 2, 3) + int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.hlsl index 5bf855478c..c39ce79bde 100644 --- a/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/add/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a + b); + const uint3 r = (uint3(1u, 2u, 3u) + uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.hlsl index 0975dc9df6..564bcdc73d 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/bool.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const bool3 a = bool3(true, true, false); const bool3 b = bool3(true, false, true); - const bool3 r = (a & b); + const bool3 r = (bool3(true, true, false) & bool3(true, false, true)); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.hlsl index 34f8f47958..9b6a17ddef 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a & b); + const int3 r = (int3(1, 2, 3) & int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.hlsl index 8e74758f29..9eb19743ca 100644 --- a/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-and/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a & b); + const uint3 r = (uint3(1u, 2u, 3u) & uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.hlsl index 6d9541386b..af9e881482 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a | b); + const int3 r = (int3(1, 2, 3) | int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.hlsl index 4e2c7a5014..5d2c6c28a6 100644 --- a/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-or/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a | b); + const uint3 r = (uint3(1u, 2u, 3u) | uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.hlsl index db0a3c1aed..17aabc15b8 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a ^ b); + const int3 r = (int3(1, 2, 3) ^ int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.hlsl index e29687a334..264f33588e 100644 --- a/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/bit-xor/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a ^ b); + const uint3 r = (uint3(1u, 2u, 3u) ^ uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.hlsl index 3eabba064d..bb182e4059 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a / b); + const float3 r = (4.0f / float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.hlsl index cb4a95bd44..3ab3785361 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(1, 2, 3); - const int3 r = (a / b); + const int3 r = (4 / int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.hlsl index 8942ff8e4b..702206e7d1 100644 --- a/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(1u, 2u, 3u); - const uint3 r = (a / b); + const uint3 r = (4u / uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.hlsl index f1645a27ab..e66523723f 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a / 4.0f); + const float3 r = (float3(1.0f, 2.0f, 3.0f) / 4.0f); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.hlsl index 672f46ec18..a3ed23f0ac 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a / 4); + const int3 r = (int3(1, 2, 3) / 4); return; } diff --git a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.hlsl index 2f4dc9cb10..3bbd4db7b7 100644 --- a/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a / 4u); + const uint3 r = (uint3(1u, 2u, 3u) / 4u); return; } diff --git a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.hlsl index 7ae0123dbd..0fb0d4dbc8 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(4.0f, 5.0f, 6.0f); - const float3 r = (a / b); + const float3 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.hlsl b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.hlsl index 33a4443cf7..da9950b7df 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a / b); + const int3 r = (int3(1, 2, 3) / int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.hlsl index 815ad9bfd9..b9207373fa 100644 --- a/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a / b); + const uint3 r = (uint3(1u, 2u, 3u) / uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.hlsl index 85db3bff58..80d78f2ede 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(0.0f, 2.0f, 0.0f); - const float3 r = (a / b); + const float3 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.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl index 35cc532378..86a8464ce4 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(0, 2, 0); - const int3 r = (a / int3(1, 2, 1)); + const int3 r = (4 / int3(1, 2, 1)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl index f57e7ed806..baa2f3a9f0 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(0u, 2u, 0u); - const uint3 r = (a / uint3(1u, 2u, 1u)); + const uint3 r = (4u / uint3(1u, 2u, 1u)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.hlsl index c661ab1e6c..b8e0d7102d 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a / 0.0f); + const float3 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.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl index 8a44ac5b09..948895872c 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a / 1); + const int3 r = (int3(1, 2, 3) / 1); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl index 18d1da5a71..4228171b50 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a / 1u); + const uint3 r = (uint3(1u, 2u, 3u) / 1u); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl index 94b990b7f2..fa216caa02 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(0.0f, 5.0f, 0.0f); - const float3 r = (a / b); + const float3 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.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl index 3cd640ec4b..15fc566a26 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(0, 5, 0); - const int3 r = (a / int3(1, 5, 1)); + const int3 r = (int3(1, 2, 3) / int3(1, 5, 1)); return; } diff --git a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl index ea7ca067ab..1966ceb7f7 100644 --- a/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/div_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(0u, 5u, 0u); - const uint3 r = (a / uint3(1u, 5u, 1u)); + const uint3 r = (uint3(1u, 2u, 3u) / uint3(1u, 5u, 1u)); return; } diff --git a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.hlsl index d43dfb6f80..219d22cbb9 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const uint3 b = uint3(4u, 5u, 6u); - const int3 r = (a << b); + const int3 r = (int3(1, 2, 3) << uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.hlsl index 2de16f0c9b..171d03f553 100644 --- a/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/left-shift/vector-vector/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a << b); + const uint3 r = (uint3(1u, 2u, 3u) << uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.hlsl index b2653df18a..8a5c70c08b 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a % b); + const float3 r = (4.0f % float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.hlsl index 5b0bfcaf8f..253b11da4a 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(1, 2, 3); - const int3 r = (a % b); + const int3 r = (4 % int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.hlsl index 97533fbd9d..dd1bb39a65 100644 --- a/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(1u, 2u, 3u); - const uint3 r = (a % b); + const uint3 r = (4u % uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.hlsl index 3aca50d29f..448c5c7500 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a % 4.0f); + const float3 r = (float3(1.0f, 2.0f, 3.0f) % 4.0f); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.hlsl index 1abee48ed0..7586f7c76f 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a % 4); + const int3 r = (int3(1, 2, 3) % 4); return; } diff --git a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.hlsl index c2d051d102..2cd57b592f 100644 --- a/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a % 4u); + const uint3 r = (uint3(1u, 2u, 3u) % 4u); return; } diff --git a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.hlsl index 87e4dd4a72..4de99bbc1e 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(4.0f, 5.0f, 6.0f); - const float3 r = (a % b); + const float3 r = (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.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.hlsl index f39516d1d0..0fbacabd3d 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a % b); + const int3 r = (int3(1, 2, 3) % int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.hlsl index 33e6b962e6..28e4fe3e35 100644 --- a/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a % b); + const uint3 r = (uint3(1u, 2u, 3u) % uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl index fa4482f682..7b5e017ddd 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(0, 2, 0); - const int3 r = (a % int3(1, 2, 1)); + const int3 r = (4 % int3(1, 2, 1)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl index 12aa8c01ee..8559cb692a 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(0u, 2u, 0u); - const uint3 r = (a % uint3(1u, 2u, 1u)); + const uint3 r = (4u % uint3(1u, 2u, 1u)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl index 6906266038..c09e5c72ed 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a % 1); + const int3 r = (int3(1, 2, 3) % 1); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl index 4d8b0b4eef..20a6164a9e 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a % 1u); + const uint3 r = (uint3(1u, 2u, 3u) % 1u); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl index 5ea2fbd98f..bf91c1c3e3 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(0.0f, 5.0f, 0.0f); - const float3 r = (a % b); + const float3 r = (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.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl index ee6067476a..41f5836333 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(0, 5, 0); - const int3 r = (a % int3(1, 5, 1)); + const int3 r = (int3(1, 2, 3) % int3(1, 5, 1)); return; } diff --git a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl index 2389839626..4bd498c6c0 100644 --- a/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mod_by_zero/by_constant/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(0u, 5u, 0u); - const uint3 r = (a % uint3(1u, 5u, 1u)); + const uint3 r = (uint3(1u, 2u, 3u) % uint3(1u, 5u, 1u)); return; } diff --git a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl index c502b098d5..5567e7bcb6 100644 --- a/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/mat2x4-mat4x2/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float2x4 a = float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f)); const float4x2 b = float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f)); - const float4x4 r = mul(b, a); + const float4x4 r = mul(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/mat3x3-mat3x3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.hlsl index 22af87eee1..516713c0ff 100644 --- a/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/mat3x3-mat3x3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); const float3x3 b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - const float3x3 r = mul(b, a); + const float3x3 r = mul(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.hlsl b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.hlsl index 9f4028af0e..b946eae7e1 100644 --- a/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/mat4x2-mat2x4/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float4x2 a = float4x2(float2(-1.0f, -2.0f), float2(-3.0f, -4.0f), float2(-5.0f, -6.0f), float2(-7.0f, -8.0f)); const float2x4 b = float2x4(float4(1.0f, 2.0f, 3.0f, 4.0f), float4(5.0f, 6.0f, 7.0f, 8.0f)); - const float2x2 r = mul(b, a); + const float2x2 r = mul(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/scalar-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.hlsl index ab39cdc7f0..e674383fb7 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a * b); + const float3 r = (4.0f * float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.hlsl index 6d7c62af51..c4bbfb6929 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(1, 2, 3); - const int3 r = (a * b); + const int3 r = (4 * int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.hlsl index 73ec042b26..dc4c0f91b3 100644 --- a/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(1u, 2u, 3u); - const uint3 r = (a * b); + const uint3 r = (4u * uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.hlsl index 646399da07..51a1def4f9 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a * 4.0f); + const float3 r = (float3(1.0f, 2.0f, 3.0f) * 4.0f); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.hlsl index e86c189375..f60f2182cf 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a * 4); + const int3 r = (int3(1, 2, 3) * 4); return; } diff --git a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.hlsl index d61b59a580..cbf36e177c 100644 --- a/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a * 4u); + const uint3 r = (uint3(1u, 2u, 3u) * 4u); return; } diff --git a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.hlsl index 8a51b14eeb..ce935ce5f8 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(4.0f, 5.0f, 6.0f); - const float3 r = (a * b); + const float3 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.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.hlsl index d532aaf513..4cc61de289 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a * b); + const int3 r = (int3(1, 2, 3) * int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.hlsl index 5db3034bcc..6eef3e89da 100644 --- a/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/mul/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a * b); + const uint3 r = (uint3(1u, 2u, 3u) * uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.hlsl index 2520c5e787..b7d413bb45 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const uint3 b = uint3(4u, 5u, 6u); - const int3 r = (a >> b); + const int3 r = (int3(1, 2, 3) >> uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.hlsl index 1c57ee7a4d..2094d5e8ee 100644 --- a/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/right-shift/vector-vector/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a >> b); + const uint3 r = (uint3(1u, 2u, 3u) >> uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl index 9d1b2b3fb1..84c64621dd 100644 --- a/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/mat3x3-mat3x3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3x3 a = float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f)); const float3x3 b = float3x3(float3(-1.0f, -2.0f, -3.0f), float3(-4.0f, -5.0f, -6.0f), float3(-7.0f, -8.0f, -9.0f)); - const float3x3 r = (a - b); + const float3x3 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-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.hlsl index d714c62fc1..844a3d7a1a 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float a = 4.0f; const float3 b = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a - b); + const float3 r = (4.0f - float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.hlsl index 1e67f1327e..5b022127e1 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int a = 4; const int3 b = int3(1, 2, 3); - const int3 r = (a - b); + const int3 r = (4 - int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.hlsl index 90f540d219..80336af094 100644 --- a/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/scalar-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint a = 4u; const uint3 b = uint3(1u, 2u, 3u); - const uint3 r = (a - b); + const uint3 r = (4u - uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.hlsl index 0476c62e45..480f353aee 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 r = (a - 4.0f); + const float3 r = (float3(1.0f, 2.0f, 3.0f) - 4.0f); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.hlsl index 8db37c95f4..4e9b06d19d 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 r = (a - 4); + const int3 r = (int3(1, 2, 3) - 4); return; } diff --git a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.hlsl index 6a9b7eefbc..625f07a912 100644 --- a/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-scalar/u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 r = (a - 4u); + const uint3 r = (uint3(1u, 2u, 3u) - 4u); return; } diff --git a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.hlsl index f4a568e530..9e9137bdac 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/f32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); const float3 b = float3(4.0f, 5.0f, 6.0f); - const float3 r = (a - b); + const float3 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.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.hlsl index e8a26227e0..616cef2f15 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/i32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const int3 a = int3(1, 2, 3); const int3 b = int3(4, 5, 6); - const int3 r = (a - b); + const int3 r = (int3(1, 2, 3) - int3(4, 5, 6)); return; } diff --git a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.hlsl index 1a8d03f66d..c1c48722b5 100644 --- a/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/binary/sub/vec3-vec3/u32.wgsl.expected.hlsl @@ -2,6 +2,6 @@ void f() { const uint3 a = uint3(1u, 2u, 3u); const uint3 b = uint3(4u, 5u, 6u); - const uint3 r = (a - b); + const uint3 r = (uint3(1u, 2u, 3u) - uint3(4u, 5u, 6u)); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl index e6ce40345d..f307f4258a 100644 --- a/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/f32-f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const float3 b = asfloat(a); + const float3 b = asfloat(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl index 3ebeb519e8..8e63600479 100644 --- a/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/f32-i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const int3 b = asint(a); + const int3 b = asint(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl index 9490820770..f033401bf4 100644 --- a/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/f32-u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const float3 a = float3(1.0f, 2.0f, 3.0f); - const uint3 b = asuint(a); + const uint3 b = asuint(float3(1.0f, 2.0f, 3.0f)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl index 73bb1187e9..be442acaa0 100644 --- a/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/i32-f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const float3 b = asfloat(a); + const float3 b = asfloat(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl index 2304f932c2..95185b2359 100644 --- a/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/i32-i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const int3 b = asint(a); + const int3 b = asint(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl index 80e6646d61..80f8f3f646 100644 --- a/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/i32-u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const int3 a = int3(1, 2, 3); - const uint3 b = asuint(a); + const uint3 b = asuint(int3(1, 2, 3)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl index 72084e94a0..c6adc26e52 100644 --- a/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/u32-f32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const float3 b = asfloat(a); + const float3 b = asfloat(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl index 66223231b8..c14ca042fd 100644 --- a/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/u32-i32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const int3 b = asint(a); + const int3 b = asint(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl index 71f2935211..55f17f08cf 100644 --- a/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl +++ b/test/tint/expressions/bitcast/vector/u32-u32.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void f() { const uint3 a = uint3(1u, 2u, 3u); - const uint3 b = asuint(a); + const uint3 b = asuint(uint3(1u, 2u, 3u)); return; } diff --git a/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.hlsl index ad2d36bf30..60abcc6f5d 100644 --- a/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/let/literal/matrix.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float3 f() { const float3x3 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/let/literal/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.hlsl index ede611872b..de48383baf 100644 --- a/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/let/literal/vector.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float f() { const float3 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/let/param/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.hlsl index 332312c0bc..4670b64c65 100644 --- a/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/let/param/matrix.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float3 f(int x) { const float3x3 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[x]; + return float3x3(float3(1.0f, 2.0f, 3.0f), float3(4.0f, 5.0f, 6.0f), float3(7.0f, 8.0f, 9.0f))[x]; } diff --git a/test/tint/expressions/index/let/let/param/vector.wgsl.expected.hlsl b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.hlsl index 5629258475..6f93047f48 100644 --- a/test/tint/expressions/index/let/let/param/vector.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/let/param/vector.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float f(int x) { const float3 v = float3(1.0f, 2.0f, 3.0f); - return v[x]; + return float3(1.0f, 2.0f, 3.0f)[x]; } diff --git a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl index ad2d36bf30..60abcc6f5d 100644 --- a/test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/literal/matrix.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float3 f() { const float3x3 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.hlsl b/test/tint/expressions/index/let/literal/vector.wgsl.expected.hlsl index ede611872b..de48383baf 100644 --- a/test/tint/expressions/index/let/literal/vector.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/literal/vector.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float f() { const float3 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.hlsl b/test/tint/expressions/index/let/param/matrix.wgsl.expected.hlsl index 3714c1c0fd..6bdb084a23 100644 --- a/test/tint/expressions/index/let/param/matrix.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/param/matrix.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float3 f(int i) { const float3x3 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.hlsl b/test/tint/expressions/index/let/param/vector.wgsl.expected.hlsl index 16cccbf289..e71665c28e 100644 --- a/test/tint/expressions/index/let/param/vector.wgsl.expected.hlsl +++ b/test/tint/expressions/index/let/param/vector.wgsl.expected.hlsl @@ -5,5 +5,5 @@ void unused_entry_point() { float f(int i) { const float3 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/literals/-inf.spvasm.expected.hlsl b/test/tint/expressions/literals/-inf.spvasm.expected.hlsl index d5108a6dbc..e4f9b252d3 100644 --- a/test/tint/expressions/literals/-inf.spvasm.expected.hlsl +++ b/test/tint/expressions/literals/-inf.spvasm.expected.hlsl @@ -1,7 +1,7 @@ static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { - out_var_SV_TARGET = float4(asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u), asfloat(0xff800000u)); + out_var_SV_TARGET = (asfloat(0xff800000u)).xxxx; return; } diff --git a/test/tint/expressions/literals/inf.spvasm.expected.hlsl b/test/tint/expressions/literals/inf.spvasm.expected.hlsl index 04a77bd70c..1ce8ff8bc6 100644 --- a/test/tint/expressions/literals/inf.spvasm.expected.hlsl +++ b/test/tint/expressions/literals/inf.spvasm.expected.hlsl @@ -1,7 +1,7 @@ static float4 out_var_SV_TARGET = float4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { - out_var_SV_TARGET = float4(asfloat(0x7f800000u), asfloat(0x7f800000u), asfloat(0x7f800000u), asfloat(0x7f800000u)); + out_var_SV_TARGET = (asfloat(0x7f800000u)).xxxx; return; } diff --git a/test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl b/test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl index c00d526492..5ee704106c 100644 --- a/test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl +++ b/test/tint/expressions/splat/immediate/bool.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - bool2 v2 = bool2((true).xx); - bool3 v3 = bool3((true).xxx); - bool4 v4 = bool4((true).xxxx); + bool2 v2 = (true).xx; + bool3 v3 = (true).xxx; + bool4 v4 = (true).xxxx; } diff --git a/test/tint/expressions/splat/immediate/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/immediate/f32.wgsl.expected.hlsl index c757ba2ce3..8efc94d4c3 100644 --- a/test/tint/expressions/splat/immediate/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/splat/immediate/f32.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - float2 v2 = float2((1.0f).xx); - float3 v3 = float3((1.0f).xxx); - float4 v4 = float4((1.0f).xxxx); + float2 v2 = (1.0f).xx; + float3 v3 = (1.0f).xxx; + float4 v4 = (1.0f).xxxx; } diff --git a/test/tint/expressions/splat/immediate/i32.wgsl.expected.hlsl b/test/tint/expressions/splat/immediate/i32.wgsl.expected.hlsl index 7598cd0283..7d6156280d 100644 --- a/test/tint/expressions/splat/immediate/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/splat/immediate/i32.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - int2 v2 = int2((1).xx); - int3 v3 = int3((1).xxx); - int4 v4 = int4((1).xxxx); + int2 v2 = (1).xx; + int3 v3 = (1).xxx; + int4 v4 = (1).xxxx; } diff --git a/test/tint/expressions/splat/immediate/u32.wgsl.expected.hlsl b/test/tint/expressions/splat/immediate/u32.wgsl.expected.hlsl index 3bb8b1fa9a..44f0407422 100644 --- a/test/tint/expressions/splat/immediate/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/splat/immediate/u32.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - uint2 v2 = uint2((1u).xx); - uint3 v3 = uint3((1u).xxx); - uint4 v4 = uint4((1u).xxxx); + uint2 v2 = (1u).xx; + uint3 v3 = (1u).xxx; + uint4 v4 = (1u).xxxx; } diff --git a/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl b/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl index 0ee0a3771a..3803af8d62 100644 --- a/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/splat/with_swizzle/f32.wgsl.expected.hlsl @@ -4,7 +4,7 @@ void unused_entry_point() { } void f() { - float a = float2((1.0f).xx).y; - float b = float3((1.0f).xxx).z; - float c = float4((1.0f).xxxx).w; + float a = (1.0f).xx.y; + float b = (1.0f).xxx.z; + float c = (1.0f).xxxx.w; } diff --git a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl index d6bf55e971..a38b32bc1c 100644 --- a/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat2x2/explicit/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float2x2 m = float2x2(0.0f, 0.0f, 0.0f, 0.0f); +static const float2x2 m = float2x2((0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.hlsl index e3b114a671..c8959e9099 100644 --- a/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat2x3/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float2x3 m = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float2x3 m = float2x3((0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.hlsl index c1f128b047..2879c880a9 100644 --- a/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat2x4/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float2x4 m = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float2x4 m = float2x4((0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.hlsl index b3fe0d54f3..a4755f3755 100644 --- a/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat3x2/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float3x2 m = float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float3x2 m = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.hlsl index 420fca4c9e..4c120a7b8d 100644 --- a/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat3x3/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float3x3 m = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.hlsl index e12984f591..38ea52306f 100644 --- a/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat3x4/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float3x4 m = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float3x4 m = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.hlsl index 1615673e3d..4ceb8f1a25 100644 --- a/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat4x2/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float4x2 m = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float4x2 m = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); diff --git a/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.hlsl index 96cad96e47..8741443e20 100644 --- a/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat4x3/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float4x3 m = float4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float4x3 m = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); diff --git a/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.hlsl b/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.hlsl index 82f8ed61e0..1efc2bbc97 100644 --- a/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/type_ctor/mat4x4/identity/f32.wgsl.expected.hlsl @@ -3,4 +3,4 @@ void unused_entry_point() { return; } -static const float4x4 m = float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const float4x4 m = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); diff --git a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl index d711f2289f..098caae33b 100644 --- a/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat2x2/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float2x2 v = float2x2(0.0f, 0.0f, 0.0f, 0.0f); + float2x2 v = float2x2((0.0f).xx, (0.0f).xx); } diff --git a/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.hlsl index 76872743a9..bef617cae9 100644 --- a/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat2x3/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float2x3 v = float2x3((0.0f).xxx, (0.0f).xxx); } diff --git a/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.hlsl index fee298a456..f4458617ff 100644 --- a/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat2x4/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float2x4 v = float2x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float2x4 v = float2x4((0.0f).xxxx, (0.0f).xxxx); } diff --git a/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.hlsl index 69c6a43c10..7b4b4e37ad 100644 --- a/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat3x2/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float3x2 v = float3x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x2 v = float3x2((0.0f).xx, (0.0f).xx, (0.0f).xx); } diff --git a/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.hlsl index a75039f80e..f4baaf47fe 100644 --- a/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat3x3/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float3x3 v = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x3 v = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } diff --git a/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.hlsl index 2b08d5f47e..4f3a733dc8 100644 --- a/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat3x4/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float3x4 v = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x4 v = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } diff --git a/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.hlsl index ceba05a00b..64638f7533 100644 --- a/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat4x2/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float4x2 v = float4x2(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float4x2 v = float4x2((0.0f).xx, (0.0f).xx, (0.0f).xx, (0.0f).xx); } diff --git a/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.hlsl index 6b43a167cf..15083b5319 100644 --- a/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat4x3/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float4x3 v = float4x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float4x3 v = float4x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx, (0.0f).xxx); } diff --git a/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.hlsl index 72825c9119..d72e99852d 100644 --- a/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/mat4x4/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float4x4 v = float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float4x4 v = float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); } diff --git a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl index bad31ebdf8..f88df09251 100644 --- a/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec2/bool.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - bool2 v = bool2(false, false); + bool2 v = (false).xx; } diff --git a/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.hlsl index 45a2969de6..62eb9b0a85 100644 --- a/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec2/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float2 v = float2(0.0f, 0.0f); + float2 v = (0.0f).xx; } diff --git a/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.hlsl index 8c92953daf..51cb931bb3 100644 --- a/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec2/i32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - int2 v = int2(0, 0); + int2 v = (0).xx; } diff --git a/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.hlsl index 4b9581f773..102c0df719 100644 --- a/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec2/u32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - uint2 v = uint2(0u, 0u); + uint2 v = (0u).xx; } diff --git a/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.hlsl index 5e6f7f7064..b81df980c8 100644 --- a/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec3/bool.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - bool3 v = bool3(false, false, false); + bool3 v = (false).xxx; } diff --git a/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.hlsl index 6f4b969e08..46b01ec855 100644 --- a/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec3/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float3 v = float3(0.0f, 0.0f, 0.0f); + float3 v = (0.0f).xxx; } diff --git a/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.hlsl index 5f68dd83b1..90c77ca85d 100644 --- a/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec3/i32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - int3 v = int3(0, 0, 0); + int3 v = (0).xxx; } diff --git a/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.hlsl index 01274d3af9..77de9cadbf 100644 --- a/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec3/u32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - uint3 v = uint3(0u, 0u, 0u); + uint3 v = (0u).xxx; } diff --git a/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.hlsl index af6543dc9e..68855f2890 100644 --- a/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec4/bool.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - bool4 v = bool4(false, false, false, false); + bool4 v = (false).xxxx; } diff --git a/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.hlsl index 77c44c2fcd..b417e1b99b 100644 --- a/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec4/f32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - float4 v = float4(0.0f, 0.0f, 0.0f, 0.0f); + float4 v = (0.0f).xxxx; } diff --git a/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.hlsl index 5df80272b0..cfe08fbe18 100644 --- a/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec4/i32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - int4 v = int4(0, 0, 0, 0); + int4 v = (0).xxxx; } diff --git a/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.hlsl b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.hlsl index 0a7eccdc22..60e5fe4b7e 100644 --- a/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.hlsl +++ b/test/tint/expressions/zero_init/vec4/u32.wgsl.expected.hlsl @@ -4,5 +4,5 @@ void unused_entry_point() { } void f() { - uint4 v = uint4(0u, 0u, 0u, 0u); + uint4 v = (0u).xxxx; } diff --git a/test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl index 8f66e9d398..7d4de05aa9 100644 --- a/test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl +++ b/test/tint/identifiers/underscore/double/let.wgsl.expected.hlsl @@ -7,6 +7,6 @@ static const int a = 1; static const int a__ = 2; void f() { - const int b = a; - const int b__ = a__; + const int b = 1; + const int b__ = 2; } diff --git a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl index 4e65f71a8a..fe642f0501 100644 --- a/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl +++ b/test/tint/identifiers/underscore/prefix/lower/let.wgsl.expected.hlsl @@ -7,6 +7,6 @@ static const int a = 1; static const int _a = 2; void f() { - const int b = a; - const int _b = _a; + const int b = 1; + const int _b = 2; } diff --git a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl index fa81c838f1..c3f9d6faa2 100644 --- a/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl +++ b/test/tint/identifiers/underscore/prefix/upper/let.wgsl.expected.hlsl @@ -7,6 +7,6 @@ static const int A = 1; static const int _A = 2; void f() { - const int B = A; - const int _B = _A; + const int B = 1; + const int _B = 2; } diff --git a/test/tint/let/global/global.wgsl.expected.hlsl b/test/tint/let/global/global.wgsl.expected.hlsl index 6dd234ca84..2b62ccc8df 100644 --- a/test/tint/let/global/global.wgsl.expected.hlsl +++ b/test/tint/let/global/global.wgsl.expected.hlsl @@ -5,10 +5,10 @@ struct MyStruct { static const int v1 = 1; static const uint v2 = 1u; static const float v3 = 1.0f; -static const int3 v4 = int3(1, 1, 1); -static const uint3 v5 = uint3(1u, 1u, 1u); -static const float3 v6 = float3(1.0f, 1.0f, 1.0f); -static const float3x3 v7 = float3x3(float3(1.0f, 1.0f, 1.0f), float3(1.0f, 1.0f, 1.0f), float3(1.0f, 1.0f, 1.0f)); +static const int3 v4 = (1).xxx; +static const uint3 v5 = (1u).xxx; +static const float3 v6 = (1.0f).xxx; +static const float3x3 v7 = float3x3((1.0f).xxx, (1.0f).xxx, (1.0f).xxx); static const MyStruct v8 = (MyStruct)0; static const float v9[10] = (float[10])0; @@ -17,7 +17,7 @@ struct tint_symbol { }; float4 main_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol main() { diff --git a/test/tint/let/inferred/function.wgsl.expected.hlsl b/test/tint/let/inferred/function.wgsl.expected.hlsl index 380a749323..5a75ea65fd 100644 --- a/test/tint/let/inferred/function.wgsl.expected.hlsl +++ b/test/tint/let/inferred/function.wgsl.expected.hlsl @@ -29,10 +29,10 @@ void let_decls() { const int v1 = 1; const uint v2 = 1u; const float v3 = 1.0f; - const int3 v4 = int3(1, 1, 1); - const uint3 v5 = uint3(1u, 1u, 1u); - const float3 v6 = float3(1.0f, 1.0f, 1.0f); - const float3x3 v7 = float3x3(v6, v6, v6); + const int3 v4 = (1).xxx; + const uint3 v5 = (1u).xxx; + const float3 v6 = (1.0f).xxx; + const float3x3 v7 = float3x3((1.0f).xxx, (1.0f).xxx, (1.0f).xxx); const MyStruct v8 = {1.0f}; const float v9[10] = (float[10])0; const int v10 = ret_i32(); @@ -48,7 +48,7 @@ struct tint_symbol { }; float4 main_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol main() { diff --git a/test/tint/out_of_order_decls/func/let.wgsl.expected.hlsl b/test/tint/out_of_order_decls/func/let.wgsl.expected.hlsl index c35c25093b..93c537a48e 100644 --- a/test/tint/out_of_order_decls/func/let.wgsl.expected.hlsl +++ b/test/tint/out_of_order_decls/func/let.wgsl.expected.hlsl @@ -1,6 +1,6 @@ static const int a = 1; void f() { - const int b = a; + const int b = 1; return; } diff --git a/test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl b/test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl index b5e352e7a9..35e3f879f4 100644 --- a/test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl +++ b/test/tint/ptr_ref/access/matrix.spvasm.expected.hlsl @@ -1,7 +1,7 @@ void main_1() { - float3x3 m = float3x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + float3x3 m = float3x3((0.0f).xxx, (0.0f).xxx, (0.0f).xxx); 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] = (5.0f).xxx; return; } diff --git a/test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl b/test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl index d9daaaa463..a5e6043054 100644 --- a/test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl +++ b/test/tint/ptr_ref/access/matrix.wgsl.expected.hlsl @@ -1,6 +1,6 @@ [numthreads(1, 1, 1)] void main() { 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] = (5.0f).xxx; return; } diff --git a/test/tint/samples/compute_boids.wgsl.expected.hlsl b/test/tint/samples/compute_boids.wgsl.expected.hlsl index b94e5e76b4..dbaabbb78f 100644 --- a/test/tint/samples/compute_boids.wgsl.expected.hlsl +++ b/test/tint/samples/compute_boids.wgsl.expected.hlsl @@ -25,7 +25,7 @@ struct tint_symbol_3 { }; float4 frag_main_inner() { - return float4(1.0f, 1.0f, 1.0f, 1.0f); + return (1.0f).xxxx; } tint_symbol_3 frag_main() { @@ -52,9 +52,9 @@ void comp_main_inner(uint3 gl_GlobalInvocationID) { } float2 vPos = asfloat(particlesA.Load2((16u * index))); float2 vVel = asfloat(particlesA.Load2(((16u * index) + 8u))); - float2 cMass = float2(0.0f, 0.0f); - float2 cVel = float2(0.0f, 0.0f); - float2 colVel = float2(0.0f, 0.0f); + float2 cMass = (0.0f).xx; + float2 cVel = (0.0f).xx; + float2 colVel = (0.0f).xx; int cMassCount = 0; int cVelCount = 0; float2 pos = float2(0.0f, 0.0f); diff --git a/test/tint/samples/simple.wgsl.expected.hlsl b/test/tint/samples/simple.wgsl.expected.hlsl index 93c7fa7301..f47bf239c1 100644 --- a/test/tint/samples/simple.wgsl.expected.hlsl +++ b/test/tint/samples/simple.wgsl.expected.hlsl @@ -6,7 +6,7 @@ struct tint_symbol { }; float4 main_inner() { - float2 a = float2(0.0f, 0.0f); + float2 a = (0.0f).xx; bar(); return float4(0.400000006f, 0.400000006f, 0.800000012f, 1.0f); } diff --git a/test/tint/samples/simple_vertex.spvasm.expected.hlsl b/test/tint/samples/simple_vertex.spvasm.expected.hlsl index b262a94103..1971eddee7 100644 --- a/test/tint/samples/simple_vertex.spvasm.expected.hlsl +++ b/test/tint/samples/simple_vertex.spvasm.expected.hlsl @@ -1,7 +1,7 @@ static float4 gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); void main_1() { - gl_Position = float4(0.0f, 0.0f, 0.0f, 0.0f); + gl_Position = (0.0f).xxxx; return; } diff --git a/test/tint/samples/triangle.wgsl.expected.hlsl b/test/tint/samples/triangle.wgsl.expected.hlsl index c2bc195871..a17efb81d8 100644 --- a/test/tint/samples/triangle.wgsl.expected.hlsl +++ b/test/tint/samples/triangle.wgsl.expected.hlsl @@ -1,4 +1,4 @@ -static const float2 pos[3] = {float2(0.0f, 0.5f), float2(-0.5f, -0.5f), float2(0.5f, -0.5f)}; +static const float2 pos[3] = {float2(0.0f, 0.5f), (-0.5f).xx, float2(0.5f, -0.5f)}; struct tint_symbol_1 { uint VertexIndex : SV_VertexID; diff --git a/test/tint/shader_io/invariant.wgsl.expected.hlsl b/test/tint/shader_io/invariant.wgsl.expected.hlsl index 63c6c9a0b6..9bf6b9731a 100644 --- a/test/tint/shader_io/invariant.wgsl.expected.hlsl +++ b/test/tint/shader_io/invariant.wgsl.expected.hlsl @@ -3,7 +3,7 @@ struct tint_symbol { }; float4 main_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol main() { diff --git a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.hlsl b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.hlsl index 6bb2f0aa93..da8ae774b1 100644 --- a/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.hlsl +++ b/test/tint/shader_io/shared_struct_different_stages.wgsl.expected.hlsl @@ -10,7 +10,7 @@ struct tint_symbol { }; Interface vert_main_inner() { - const Interface tint_symbol_3 = {0.400000006f, 0.600000024f, float4(0.0f, 0.0f, 0.0f, 0.0f)}; + const Interface tint_symbol_3 = {0.400000006f, 0.600000024f, (0.0f).xxxx}; return tint_symbol_3; } diff --git a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl index 99174250ec..cb5f7c7e80 100644 --- a/test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_input_builtins.wgsl.expected.hlsl @@ -8,7 +8,7 @@ struct tint_symbol_2 { float4 main_inner(uint vertex_index, uint instance_index) { const uint foo = (vertex_index + instance_index); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.hlsl index 87f19d6138..74369c8adb 100644 --- a/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_input_builtins_struct.wgsl.expected.hlsl @@ -12,7 +12,7 @@ struct tint_symbol_2 { float4 main_inner(VertexInputs inputs) { const uint foo = (inputs.vertex_index + inputs.instance_index); - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl index 94c822008e..c803987edb 100644 --- a/test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_input_locations.wgsl.expected.hlsl @@ -13,7 +13,7 @@ float4 main_inner(int loc0, uint loc1, float loc2, float4 loc3) { const uint u = loc1; const float f = loc2; const float4 v = loc3; - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.hlsl index 733014dc37..4ef6fb7563 100644 --- a/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_input_locations_struct.wgsl.expected.hlsl @@ -19,7 +19,7 @@ float4 main_inner(VertexInputs inputs) { const uint u = inputs.loc1; const float f = inputs.loc2; const float4 v = inputs.loc3; - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl index 916f00f5c0..39b42ef0bd 100644 --- a/test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_input_mixed.wgsl.expected.hlsl @@ -24,7 +24,7 @@ float4 main_inner(VertexInputs0 inputs0, uint loc1, uint instance_index, VertexI const uint u = loc1; const float f = inputs1.loc2; const float4 v = inputs1.loc3; - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol_2 main(tint_symbol_1 tint_symbol) { diff --git a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.hlsl b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.hlsl index ab7e72f78f..0dad7303df 100644 --- a/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.hlsl +++ b/test/tint/shader_io/vertex_output_locations_struct.wgsl.expected.hlsl @@ -14,7 +14,7 @@ struct tint_symbol { }; VertexOutputs main_inner() { - const VertexOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), float4(0.0f, 0.0f, 0.0f, 0.0f)}; + const VertexOutputs tint_symbol_1 = {1, 1u, 1.0f, float4(1.0f, 2.0f, 3.0f, 4.0f), (0.0f).xxxx}; return tint_symbol_1; } diff --git a/test/tint/shadowing/alias/let.wgsl.expected.hlsl b/test/tint/shadowing/alias/let.wgsl.expected.hlsl index ad5e10450e..2d93ee0515 100644 --- a/test/tint/shadowing/alias/let.wgsl.expected.hlsl +++ b/test/tint/shadowing/alias/let.wgsl.expected.hlsl @@ -6,8 +6,8 @@ void unused_entry_point() { void f() { { const int a_1 = 0; - const int b = a_1; + const int b = 0; } const int a_2 = 0; - const int b = a_2; + const int b = 0; } diff --git a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.hlsl b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.hlsl index 819665dc43..0ec20f0f8f 100644 --- a/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.hlsl +++ b/test/tint/statements/assign/indexed_assign_to_array_in_struct/struct_matrix.wgsl.expected.hlsl @@ -27,7 +27,7 @@ cbuffer cbuffer_uniforms : register(b4, space1) { [numthreads(1, 1, 1)] void main() { OuterS s1 = (OuterS)0; - set_vector_float2x4(s1.m1, uniforms[0].x, float4((1.0f).xxxx)); + set_vector_float2x4(s1.m1, uniforms[0].x, (1.0f).xxxx); set_scalar_float2x4(s1.m1, uniforms[0].x, uniforms[0].x, 1.0f); return; } diff --git a/test/tint/statements/compound_assign/function.wgsl.expected.hlsl b/test/tint/statements/compound_assign/function.wgsl.expected.hlsl index da9f1de7bd..bfdebdb6dc 100644 --- a/test/tint/statements/compound_assign/function.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/function.wgsl.expected.hlsl @@ -8,6 +8,6 @@ void foo() { float4 b = float4(0.0f, 0.0f, 0.0f, 0.0f); float2x2 c = float2x2(0.0f, 0.0f, 0.0f, 0.0f); a = (a / 2); - b = mul(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), b); + b = mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), b); c = (c * 2.0f); } diff --git a/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.hlsl index dc28af670c..6b0784defc 100644 --- a/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/matrix/minus.wgsl.expected.hlsl @@ -17,5 +17,5 @@ float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { } void foo() { - tint_symbol(v, 0u, (tint_symbol_2(v, 0u) - float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f))); + tint_symbol(v, 0u, (tint_symbol_2(v, 0u) - float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx))); } diff --git a/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.hlsl index b4d6c77807..efa7687a93 100644 --- a/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/matrix/plus.wgsl.expected.hlsl @@ -17,5 +17,5 @@ float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { } void foo() { - tint_symbol(v, 0u, (tint_symbol_2(v, 0u) + float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f))); + tint_symbol(v, 0u, (tint_symbol_2(v, 0u) + float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx))); } diff --git a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl index 464338c525..05313f1946 100644 --- a/test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/matrix/times.wgsl.expected.hlsl @@ -17,5 +17,5 @@ float4x4 tint_symbol_2(RWByteAddressBuffer buffer, uint offset) { } void foo() { - tint_symbol(v, 0u, mul(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), tint_symbol_2(v, 0u))); + tint_symbol(v, 0u, mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), tint_symbol_2(v, 0u))); } diff --git a/test/tint/statements/compound_assign/private.wgsl.expected.hlsl b/test/tint/statements/compound_assign/private.wgsl.expected.hlsl index 469c40214d..f01cc42ffa 100644 --- a/test/tint/statements/compound_assign/private.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/private.wgsl.expected.hlsl @@ -9,6 +9,6 @@ static float2x2 c = float2x2(0.0f, 0.0f, 0.0f, 0.0f); void foo() { a = (a / 2); - b = mul(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), b); + b = mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), b); c = (c * 2.0f); } diff --git a/test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl index 34c5c0dd2b..4c0f7f3515 100644 --- a/test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/and.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) & int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) & (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl index 8ef06663db..0e66d73f8a 100644 --- a/test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/divide.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) / int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) / (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl index 15e224f896..03a10ae42a 100644 --- a/test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/minus.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) - int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) - (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl index 8c38a69818..b54d9803e7 100644 --- a/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/modulo.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) % int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) % (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/or.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/or.wgsl.expected.hlsl index f8b82afefc..8ee7a2022c 100644 --- a/test/tint/statements/compound_assign/vector/or.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/or.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) | int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) | (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl index 10269a03d2..7928de28bb 100644 --- a/test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/plus.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) + int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) + (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.hlsl index c4083be17e..2ca2d65284 100644 --- a/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/times-matrix.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint(mul(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), asfloat(v.Load4(0u))))); + v.Store4(0u, asuint(mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), asfloat(v.Load4(0u))))); } diff --git a/test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl index 7b9a6bd747..43e0df8e3e 100644 --- a/test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/times.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) * int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) * (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/vector/xor.wgsl.expected.hlsl b/test/tint/statements/compound_assign/vector/xor.wgsl.expected.hlsl index a76154a4b3..e53744a06c 100644 --- a/test/tint/statements/compound_assign/vector/xor.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/vector/xor.wgsl.expected.hlsl @@ -6,5 +6,5 @@ void unused_entry_point() { RWByteAddressBuffer v : register(u0, space0); void foo() { - v.Store4(0u, asuint((asint(v.Load4(0u)) ^ int4((2).xxxx)))); + v.Store4(0u, asuint((asint(v.Load4(0u)) ^ (2).xxxx))); } diff --git a/test/tint/statements/compound_assign/workgroup.wgsl.expected.hlsl b/test/tint/statements/compound_assign/workgroup.wgsl.expected.hlsl index 1f7527bb6a..dae8e54896 100644 --- a/test/tint/statements/compound_assign/workgroup.wgsl.expected.hlsl +++ b/test/tint/statements/compound_assign/workgroup.wgsl.expected.hlsl @@ -9,6 +9,6 @@ groupshared float2x2 c; void foo() { a = (a / 2); - b = mul(float4x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f), b); + b = mul(float4x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx), b); c = (c * 2.0f); } diff --git a/test/tint/statements/decrement/vector_component.wgsl.expected.hlsl b/test/tint/statements/decrement/vector_component.wgsl.expected.hlsl index 88bf0a8dfc..843a2b0495 100644 --- a/test/tint/statements/decrement/vector_component.wgsl.expected.hlsl +++ b/test/tint/statements/decrement/vector_component.wgsl.expected.hlsl @@ -7,6 +7,6 @@ RWByteAddressBuffer a : register(u0, space0); void main() { const int tint_symbol_1 = 1; - a.Store((4u * uint(tint_symbol_1)), asuint((a.Load((4u * uint(tint_symbol_1))) - 1u))); + a.Store((4u * 1u), asuint((a.Load((4u * 1u)) - 1u))); a.Store(8u, asuint((a.Load(8u) - 1u))); } diff --git a/test/tint/statements/increment/vector_component.wgsl.expected.hlsl b/test/tint/statements/increment/vector_component.wgsl.expected.hlsl index 95c9272ea0..9ba08fd2fd 100644 --- a/test/tint/statements/increment/vector_component.wgsl.expected.hlsl +++ b/test/tint/statements/increment/vector_component.wgsl.expected.hlsl @@ -7,6 +7,6 @@ RWByteAddressBuffer a : register(u0, space0); void main() { const int tint_symbol_1 = 1; - a.Store((4u * uint(tint_symbol_1)), asuint((a.Load((4u * uint(tint_symbol_1))) + 1u))); + a.Store((4u * 1u), asuint((a.Load((4u * 1u)) + 1u))); a.Store(8u, asuint((a.Load(8u) + 1u))); } diff --git a/test/tint/struct/type_constructor.wgsl.expected.hlsl b/test/tint/struct/type_constructor.wgsl.expected.hlsl index f6285aaa88..0833fb4111 100644 --- a/test/tint/struct/type_constructor.wgsl.expected.hlsl +++ b/test/tint/struct/type_constructor.wgsl.expected.hlsl @@ -22,27 +22,27 @@ void main() { const int x = 42; const S1 empty = (S1)0; const S1 nonempty = {1, 2, 3, 4}; - const S1 nonempty_with_expr = {1, x, (x + 1), nonempty.d}; + const S1 nonempty_with_expr = {1, 42, (42 + 1), nonempty.d}; const S3 nested_empty = (S3)0; const S1 tint_symbol = {2, 3, 4, 5}; const S1 tint_symbol_1 = {7, 8, 9, 10}; const S2 tint_symbol_2 = {6, tint_symbol_1}; const S3 nested_nonempty = {1, tint_symbol, tint_symbol_2}; - const S1 tint_symbol_3 = {2, x, (x + 1), nested_nonempty.i.f.d}; + const S1 tint_symbol_3 = {2, 42, (42 + 1), nested_nonempty.i.f.d}; const S2 tint_symbol_4 = {6, nonempty}; const S3 nested_nonempty_with_expr = {1, tint_symbol_3, tint_symbol_4}; const S1 tint_symbol_5 = (S1)0; const int subexpr_empty = tint_symbol_5.a; const S1 tint_symbol_6 = {1, 2, 3, 4}; const int subexpr_nonempty = tint_symbol_6.b; - const S1 tint_symbol_7 = {1, x, (x + 1), nonempty.d}; + const S1 tint_symbol_7 = {1, 42, (42 + 1), nonempty.d}; const int subexpr_nonempty_with_expr = tint_symbol_7.c; const S2 tint_symbol_8 = (S2)0; const S1 subexpr_nested_empty = tint_symbol_8.f; const S1 tint_symbol_9 = {2, 3, 4, 5}; const S2 tint_symbol_10 = {1, tint_symbol_9}; const S1 subexpr_nested_nonempty = tint_symbol_10.f; - const S1 tint_symbol_11 = {2, x, (x + 1), nested_nonempty.i.f.d}; + const S1 tint_symbol_11 = {2, 42, (42 + 1), nested_nonempty.i.f.d}; const S2 tint_symbol_12 = {1, tint_symbol_11}; const S1 subexpr_nested_nonempty_with_expr = tint_symbol_12.f; const T aosoa_empty[2] = (T[2])0; diff --git a/test/tint/types/function_scope_declarations.wgsl.expected.hlsl b/test/tint/types/function_scope_declarations.wgsl.expected.hlsl index c120722d24..a373898a6b 100644 --- a/test/tint/types/function_scope_declarations.wgsl.expected.hlsl +++ b/test/tint/types/function_scope_declarations.wgsl.expected.hlsl @@ -12,14 +12,14 @@ void main() { const uint u32_let = 0u; float f32_var = 0.0f; const float f32_let = 0.0f; - int2 v2i32_var = int2(0, 0); - const int2 v2i32_let = int2(0, 0); - uint3 v3u32_var = uint3(0u, 0u, 0u); - const uint3 v3u32_let = uint3(0u, 0u, 0u); - float4 v4f32_var = float4(0.0f, 0.0f, 0.0f, 0.0f); - const float4 v4f32_let = float4(0.0f, 0.0f, 0.0f, 0.0f); - float2x3 m2x3_var = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); - const float3x4 m3x4_let = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + int2 v2i32_var = (0).xx; + const int2 v2i32_let = (0).xx; + uint3 v3u32_var = (0u).xxx; + const uint3 v3u32_let = (0u).xxx; + float4 v4f32_var = (0.0f).xxxx; + const float4 v4f32_let = (0.0f).xxxx; + float2x3 m2x3_var = float2x3((0.0f).xxx, (0.0f).xxx); + const float3x4 m3x4_let = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); float arr_var[4] = (float[4])0; const float arr_let[4] = (float[4])0; S struct_var = (S)0; diff --git a/test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl b/test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl index b0f76c7e15..67738bcda5 100644 --- a/test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl +++ b/test/tint/types/function_scope_var_conversions.wgsl.expected.hlsl @@ -1,30 +1,30 @@ void constant_with_non_constant() { float a = 0.0f; - float2 b = float2(float(int(1)), a); + float2 b = float2(1.0f, a); } [numthreads(1, 1, 1)] void main() { - 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).xxx)); - bool3 v3bool_var11 = bool3(uint3((1234u).xxx)); - bool3 v3bool_var2 = bool3(int3((123).xxx)); - bool3 v3bool_var3 = bool3(float3((123.0f).xxx)); - int3 v3i32_var1 = int3(uint3((123u).xxx)); - int3 v3i32_var2 = int3(float3((123.0f).xxx)); - int3 v3i32_var3 = int3(bool3((true).xxx)); - uint3 v3u32_var1 = uint3(int3((123).xxx)); - uint3 v3u32_var2 = uint3(float3((123.0f).xxx)); - uint3 v3u32_var3 = uint3(bool3((true).xxx)); - bool3 v3bool_var4 = bool3(bool2(float2((123.0f).xx)), 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 = (true).xxx; + bool3 v3bool_var11 = (true).xxx; + bool3 v3bool_var2 = (true).xxx; + bool3 v3bool_var3 = (true).xxx; + int3 v3i32_var1 = (123).xxx; + int3 v3i32_var2 = (123).xxx; + int3 v3i32_var3 = (1).xxx; + uint3 v3u32_var1 = (123u).xxx; + uint3 v3u32_var2 = (123u).xxx; + uint3 v3u32_var3 = (1u).xxx; + bool3 v3bool_var4 = (true).xxx; + bool4 v4bool_var5 = bool4(true, false, true, false); return; } diff --git a/test/tint/types/module_scope_let.wgsl.expected.hlsl b/test/tint/types/module_scope_let.wgsl.expected.hlsl index d62a81df14..16d38f93f7 100644 --- a/test/tint/types/module_scope_let.wgsl.expected.hlsl +++ b/test/tint/types/module_scope_let.wgsl.expected.hlsl @@ -6,10 +6,10 @@ static const bool bool_let = false; static const int i32_let = 0; static const uint u32_let = 0u; static const float f32_let = 0.0f; -static const int2 v2i32_let = int2(0, 0); -static const uint3 v3u32_let = uint3(0u, 0u, 0u); -static const float4 v4f32_let = float4(0.0f, 0.0f, 0.0f, 0.0f); -static const float3x4 m3x4_let = float3x4(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static const int2 v2i32_let = (0).xx; +static const uint3 v3u32_let = (0u).xxx; +static const float4 v4f32_let = (0.0f).xxxx; +static const float3x4 m3x4_let = float3x4((0.0f).xxxx, (0.0f).xxxx, (0.0f).xxxx); static const float arr_let[4] = (float[4])0; static const S struct_let = (S)0; diff --git a/test/tint/types/module_scope_var.wgsl.expected.hlsl b/test/tint/types/module_scope_var.wgsl.expected.hlsl index fefdd19e93..37e4640764 100644 --- a/test/tint/types/module_scope_var.wgsl.expected.hlsl +++ b/test/tint/types/module_scope_var.wgsl.expected.hlsl @@ -19,10 +19,10 @@ void main() { i32_var = 0; u32_var = 0u; f32_var = 0.0f; - v2i32_var = int2(0, 0); - v3u32_var = uint3(0u, 0u, 0u); - v4f32_var = float4(0.0f, 0.0f, 0.0f, 0.0f); - m2x3_var = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + v2i32_var = (0).xx; + v3u32_var = (0u).xxx; + v4f32_var = (0.0f).xxxx; + m2x3_var = float2x3((0.0f).xxx, (0.0f).xxx); const float tint_symbol[4] = (float[4])0; arr_var = tint_symbol; const S tint_symbol_1 = (S)0; diff --git a/test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl b/test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl index e637207b67..6577278518 100644 --- a/test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl +++ b/test/tint/types/module_scope_var_conversions.wgsl.expected.hlsl @@ -1,23 +1,23 @@ -static bool bool_var1 = bool(1u); -static bool bool_var2 = bool(1); -static bool bool_var3 = bool(1.0f); -static int i32_var1 = int(1u); -static int i32_var2 = int(1.0f); -static int i32_var3 = int(true); -static uint u32_var1 = uint(1); -static uint u32_var2 = uint(1.0f); -static uint u32_var3 = uint(true); -static bool3 v3bool_var1 = bool3(uint3((1u).xxx)); -static bool3 v3bool_var2 = bool3(int3((1).xxx)); -static bool3 v3bool_var3 = bool3(float3((1.0f).xxx)); -static int3 v3i32_var1 = int3(uint3((1u).xxx)); -static int3 v3i32_var2 = int3(float3((1.0f).xxx)); -static int3 v3i32_var3 = int3(bool3((true).xxx)); -static uint3 v3u32_var1 = uint3(int3((1).xxx)); -static uint3 v3u32_var2 = uint3(float3((1.0f).xxx)); -static uint3 v3u32_var3 = uint3(bool3((true).xxx)); -static bool3 v3bool_var4 = bool3(bool2(float2((123.0f).xx)), true); -static bool4 v4bool_var5 = bool4(bool2(float2(123.0f, 0.0f)), bool2(true, bool(float(0.0f)))); +static bool bool_var1 = true; +static bool bool_var2 = true; +static bool bool_var3 = true; +static int i32_var1 = 1; +static int i32_var2 = 1; +static int i32_var3 = 1; +static uint u32_var1 = 1u; +static uint u32_var2 = 1u; +static uint u32_var3 = 1u; +static bool3 v3bool_var1 = (true).xxx; +static bool3 v3bool_var2 = (true).xxx; +static bool3 v3bool_var3 = (true).xxx; +static int3 v3i32_var1 = (1).xxx; +static int3 v3i32_var2 = (1).xxx; +static int3 v3i32_var3 = (1).xxx; +static uint3 v3u32_var1 = (1u).xxx; +static uint3 v3u32_var2 = (1u).xxx; +static uint3 v3u32_var3 = (1u).xxx; +static bool3 v3bool_var4 = (true).xxx; +static bool4 v4bool_var5 = bool4(true, false, true, false); [numthreads(1, 1, 1)] void main() { @@ -30,16 +30,16 @@ void main() { u32_var1 = 0u; u32_var2 = 0u; u32_var3 = 0u; - v3bool_var1 = bool3(false, false, false); - v3bool_var2 = bool3(false, false, false); - v3bool_var3 = bool3(false, false, false); - v3bool_var4 = bool3(false, false, false); - v4bool_var5 = bool4(false, false, false, false); - v3i32_var1 = int3(0, 0, 0); - v3i32_var2 = int3(0, 0, 0); - v3i32_var3 = int3(0, 0, 0); - v3u32_var1 = uint3(0u, 0u, 0u); - v3u32_var2 = uint3(0u, 0u, 0u); - v3u32_var3 = uint3(0u, 0u, 0u); + v3bool_var1 = (false).xxx; + v3bool_var2 = (false).xxx; + v3bool_var3 = (false).xxx; + v3bool_var4 = (false).xxx; + v4bool_var5 = (false).xxxx; + v3i32_var1 = (0).xxx; + v3i32_var2 = (0).xxx; + v3i32_var3 = (0).xxx; + v3u32_var1 = (0u).xxx; + v3u32_var2 = (0u).xxx; + v3u32_var3 = (0u).xxx; return; } diff --git a/test/tint/types/module_scope_var_initializers.wgsl.expected.hlsl b/test/tint/types/module_scope_var_initializers.wgsl.expected.hlsl index fefdd19e93..4693209499 100644 --- a/test/tint/types/module_scope_var_initializers.wgsl.expected.hlsl +++ b/test/tint/types/module_scope_var_initializers.wgsl.expected.hlsl @@ -6,10 +6,10 @@ static bool bool_var = false; static int i32_var = 0; static uint u32_var = 0u; static float f32_var = 0.0f; -static int2 v2i32_var = int2(0, 0); -static uint3 v3u32_var = uint3(0u, 0u, 0u); -static float4 v4f32_var = float4(0.0f, 0.0f, 0.0f, 0.0f); -static float2x3 m2x3_var = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); +static int2 v2i32_var = (0).xx; +static uint3 v3u32_var = (0u).xxx; +static float4 v4f32_var = (0.0f).xxxx; +static float2x3 m2x3_var = float2x3((0.0f).xxx, (0.0f).xxx); static float arr_var[4] = (float[4])0; static S struct_var = (S)0; @@ -19,10 +19,10 @@ void main() { i32_var = 0; u32_var = 0u; f32_var = 0.0f; - v2i32_var = int2(0, 0); - v3u32_var = uint3(0u, 0u, 0u); - v4f32_var = float4(0.0f, 0.0f, 0.0f, 0.0f); - m2x3_var = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + v2i32_var = (0).xx; + v3u32_var = (0u).xxx; + v4f32_var = (0.0f).xxxx; + m2x3_var = float2x3((0.0f).xxx, (0.0f).xxx); const float tint_symbol[4] = (float[4])0; arr_var = tint_symbol; const S tint_symbol_1 = (S)0; diff --git a/test/tint/types/return_types.wgsl.expected.hlsl b/test/tint/types/return_types.wgsl.expected.hlsl index 1d057d4ded..2e82c6ee77 100644 --- a/test/tint/types/return_types.wgsl.expected.hlsl +++ b/test/tint/types/return_types.wgsl.expected.hlsl @@ -19,19 +19,19 @@ float ret_f32() { } int2 ret_v2i32() { - return int2(0, 0); + return (0).xx; } uint3 ret_v3u32() { - return uint3(0u, 0u, 0u); + return (0u).xxx; } float4 ret_v4f32() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } float2x3 ret_m2x3() { - return float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + return float2x3((0.0f).xxx, (0.0f).xxx); } typedef float ret_arr_ret[4]; diff --git a/test/tint/var/inferred/function.wgsl.expected.hlsl b/test/tint/var/inferred/function.wgsl.expected.hlsl index d638243ffd..a0070ce371 100644 --- a/test/tint/var/inferred/function.wgsl.expected.hlsl +++ b/test/tint/var/inferred/function.wgsl.expected.hlsl @@ -29,9 +29,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 = (1).xxx; + uint3 v5 = (1u).xxx; + float3 v6 = (1.0f).xxx; float3x3 v7 = float3x3(v6, v6, v6); MyStruct v8 = {1.0f}; float v9[10] = (float[10])0; @@ -48,7 +48,7 @@ struct tint_symbol { }; float4 main_inner() { - return float4(0.0f, 0.0f, 0.0f, 0.0f); + return (0.0f).xxxx; } tint_symbol main() { diff --git a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl index db43579856..34e4247859 100644 --- a/test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl +++ b/test/tint/var/initialization/workgroup/matrix.wgsl.expected.hlsl @@ -6,7 +6,7 @@ struct tint_symbol_1 { void main_inner(uint local_invocation_index) { { - v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); + v = float2x3((0.0f).xxx, (0.0f).xxx); } GroupMemoryBarrierWithGroupSync(); } diff --git a/test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl b/test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl index 299df38ee9..6305ce42b8 100644 --- a/test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl +++ b/test/tint/var/initialization/workgroup/vector.wgsl.expected.hlsl @@ -6,7 +6,7 @@ struct tint_symbol_1 { void main_inner(uint local_invocation_index) { { - v = int3(0, 0, 0); + v = (0).xxx; } GroupMemoryBarrierWithGroupSync(); } diff --git a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl index 738895a4f4..63d3ea3537 100644 --- a/test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl +++ b/test/tint/var/uses/many_workgroup_vars.wgsl.expected.hlsl @@ -105,106 +105,106 @@ struct tint_symbol_2 { void tint_symbol_inner(uint idx) { { - m00 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m01 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m02 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m03 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m04 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m05 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m06 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m07 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m08 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m09 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m10 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m11 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m12 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m13 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m14 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m15 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m16 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m17 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m18 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m19 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m20 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m21 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m22 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m23 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m24 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m25 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m26 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m27 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m28 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m29 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m30 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m31 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m32 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m33 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m34 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m35 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m36 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m37 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m38 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m39 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m40 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m41 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m42 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m43 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m44 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m45 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m46 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m47 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m48 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m49 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m50 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m51 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m52 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m53 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m54 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m55 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m56 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m57 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m58 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m59 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m60 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m61 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m62 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m63 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m64 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m65 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m66 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m67 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m68 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m69 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m70 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m71 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m72 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m73 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m74 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m75 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m76 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m77 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m78 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m79 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m80 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m81 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m82 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m83 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m84 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m85 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m86 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m87 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m88 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m89 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m90 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m91 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m92 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m93 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m94 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m95 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m96 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m97 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m98 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); - m99 = float2x2(0.0f, 0.0f, 0.0f, 0.0f); + m00 = float2x2((0.0f).xx, (0.0f).xx); + m01 = float2x2((0.0f).xx, (0.0f).xx); + m02 = float2x2((0.0f).xx, (0.0f).xx); + m03 = float2x2((0.0f).xx, (0.0f).xx); + m04 = float2x2((0.0f).xx, (0.0f).xx); + m05 = float2x2((0.0f).xx, (0.0f).xx); + m06 = float2x2((0.0f).xx, (0.0f).xx); + m07 = float2x2((0.0f).xx, (0.0f).xx); + m08 = float2x2((0.0f).xx, (0.0f).xx); + m09 = float2x2((0.0f).xx, (0.0f).xx); + m10 = float2x2((0.0f).xx, (0.0f).xx); + m11 = float2x2((0.0f).xx, (0.0f).xx); + m12 = float2x2((0.0f).xx, (0.0f).xx); + m13 = float2x2((0.0f).xx, (0.0f).xx); + m14 = float2x2((0.0f).xx, (0.0f).xx); + m15 = float2x2((0.0f).xx, (0.0f).xx); + m16 = float2x2((0.0f).xx, (0.0f).xx); + m17 = float2x2((0.0f).xx, (0.0f).xx); + m18 = float2x2((0.0f).xx, (0.0f).xx); + m19 = float2x2((0.0f).xx, (0.0f).xx); + m20 = float2x2((0.0f).xx, (0.0f).xx); + m21 = float2x2((0.0f).xx, (0.0f).xx); + m22 = float2x2((0.0f).xx, (0.0f).xx); + m23 = float2x2((0.0f).xx, (0.0f).xx); + m24 = float2x2((0.0f).xx, (0.0f).xx); + m25 = float2x2((0.0f).xx, (0.0f).xx); + m26 = float2x2((0.0f).xx, (0.0f).xx); + m27 = float2x2((0.0f).xx, (0.0f).xx); + m28 = float2x2((0.0f).xx, (0.0f).xx); + m29 = float2x2((0.0f).xx, (0.0f).xx); + m30 = float2x2((0.0f).xx, (0.0f).xx); + m31 = float2x2((0.0f).xx, (0.0f).xx); + m32 = float2x2((0.0f).xx, (0.0f).xx); + m33 = float2x2((0.0f).xx, (0.0f).xx); + m34 = float2x2((0.0f).xx, (0.0f).xx); + m35 = float2x2((0.0f).xx, (0.0f).xx); + m36 = float2x2((0.0f).xx, (0.0f).xx); + m37 = float2x2((0.0f).xx, (0.0f).xx); + m38 = float2x2((0.0f).xx, (0.0f).xx); + m39 = float2x2((0.0f).xx, (0.0f).xx); + m40 = float2x2((0.0f).xx, (0.0f).xx); + m41 = float2x2((0.0f).xx, (0.0f).xx); + m42 = float2x2((0.0f).xx, (0.0f).xx); + m43 = float2x2((0.0f).xx, (0.0f).xx); + m44 = float2x2((0.0f).xx, (0.0f).xx); + m45 = float2x2((0.0f).xx, (0.0f).xx); + m46 = float2x2((0.0f).xx, (0.0f).xx); + m47 = float2x2((0.0f).xx, (0.0f).xx); + m48 = float2x2((0.0f).xx, (0.0f).xx); + m49 = float2x2((0.0f).xx, (0.0f).xx); + m50 = float2x2((0.0f).xx, (0.0f).xx); + m51 = float2x2((0.0f).xx, (0.0f).xx); + m52 = float2x2((0.0f).xx, (0.0f).xx); + m53 = float2x2((0.0f).xx, (0.0f).xx); + m54 = float2x2((0.0f).xx, (0.0f).xx); + m55 = float2x2((0.0f).xx, (0.0f).xx); + m56 = float2x2((0.0f).xx, (0.0f).xx); + m57 = float2x2((0.0f).xx, (0.0f).xx); + m58 = float2x2((0.0f).xx, (0.0f).xx); + m59 = float2x2((0.0f).xx, (0.0f).xx); + m60 = float2x2((0.0f).xx, (0.0f).xx); + m61 = float2x2((0.0f).xx, (0.0f).xx); + m62 = float2x2((0.0f).xx, (0.0f).xx); + m63 = float2x2((0.0f).xx, (0.0f).xx); + m64 = float2x2((0.0f).xx, (0.0f).xx); + m65 = float2x2((0.0f).xx, (0.0f).xx); + m66 = float2x2((0.0f).xx, (0.0f).xx); + m67 = float2x2((0.0f).xx, (0.0f).xx); + m68 = float2x2((0.0f).xx, (0.0f).xx); + m69 = float2x2((0.0f).xx, (0.0f).xx); + m70 = float2x2((0.0f).xx, (0.0f).xx); + m71 = float2x2((0.0f).xx, (0.0f).xx); + m72 = float2x2((0.0f).xx, (0.0f).xx); + m73 = float2x2((0.0f).xx, (0.0f).xx); + m74 = float2x2((0.0f).xx, (0.0f).xx); + m75 = float2x2((0.0f).xx, (0.0f).xx); + m76 = float2x2((0.0f).xx, (0.0f).xx); + m77 = float2x2((0.0f).xx, (0.0f).xx); + m78 = float2x2((0.0f).xx, (0.0f).xx); + m79 = float2x2((0.0f).xx, (0.0f).xx); + m80 = float2x2((0.0f).xx, (0.0f).xx); + m81 = float2x2((0.0f).xx, (0.0f).xx); + m82 = float2x2((0.0f).xx, (0.0f).xx); + m83 = float2x2((0.0f).xx, (0.0f).xx); + m84 = float2x2((0.0f).xx, (0.0f).xx); + m85 = float2x2((0.0f).xx, (0.0f).xx); + m86 = float2x2((0.0f).xx, (0.0f).xx); + m87 = float2x2((0.0f).xx, (0.0f).xx); + m88 = float2x2((0.0f).xx, (0.0f).xx); + m89 = float2x2((0.0f).xx, (0.0f).xx); + m90 = float2x2((0.0f).xx, (0.0f).xx); + m91 = float2x2((0.0f).xx, (0.0f).xx); + m92 = float2x2((0.0f).xx, (0.0f).xx); + m93 = float2x2((0.0f).xx, (0.0f).xx); + m94 = float2x2((0.0f).xx, (0.0f).xx); + m95 = float2x2((0.0f).xx, (0.0f).xx); + m96 = float2x2((0.0f).xx, (0.0f).xx); + m97 = float2x2((0.0f).xx, (0.0f).xx); + m98 = float2x2((0.0f).xx, (0.0f).xx); + m99 = float2x2((0.0f).xx, (0.0f).xx); } GroupMemoryBarrierWithGroupSync(); m00[0][0] = 1.0f;